feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,160 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/qldb/QLDB_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace QLDB
{
namespace Model
{
/**
* <p>The specified resource already exists.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/ResourceAlreadyExistsException">AWS
* API Reference</a></p>
*/
class AWS_QLDB_API ResourceAlreadyExistsException
{
public:
ResourceAlreadyExistsException();
ResourceAlreadyExistsException(Aws::Utils::Json::JsonView jsonValue);
ResourceAlreadyExistsException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetMessage() const{ return m_message; }
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
inline ResourceAlreadyExistsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline ResourceAlreadyExistsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline ResourceAlreadyExistsException& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The type of resource.</p>
*/
inline const Aws::String& GetResourceType() const{ return m_resourceType; }
/**
* <p>The type of resource.</p>
*/
inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
/**
* <p>The type of resource.</p>
*/
inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
/**
* <p>The type of resource.</p>
*/
inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
/**
* <p>The type of resource.</p>
*/
inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
/**
* <p>The type of resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
/**
* <p>The type of resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
/**
* <p>The type of resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
/**
* <p>The name of the resource.</p>
*/
inline const Aws::String& GetResourceName() const{ return m_resourceName; }
/**
* <p>The name of the resource.</p>
*/
inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
/**
* <p>The name of the resource.</p>
*/
inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
/**
* <p>The name of the resource.</p>
*/
inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
/**
* <p>The name of the resource.</p>
*/
inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
/**
* <p>The name of the resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
/**
* <p>The name of the resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
/**
* <p>The name of the resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceName(const char* value) { SetResourceName(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_resourceType;
bool m_resourceTypeHasBeenSet;
Aws::String m_resourceName;
bool m_resourceNameHasBeenSet;
};
} // namespace Model
} // namespace QLDB
} // namespace Aws