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,173 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/acm/ACM_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 ACM
{
namespace Model
{
/**
* <p>This structure is returned in the response object of <a>ListCertificates</a>
* action. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/CertificateSummary">AWS
* API Reference</a></p>
*/
class AWS_ACM_API CertificateSummary
{
public:
CertificateSummary();
CertificateSummary(Aws::Utils::Json::JsonView jsonValue);
CertificateSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Amazon Resource Name (ARN) of the certificate. This is of the form:</p> <p>
* <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
* </p> <p>For more information about ARNs, see <a
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon
* Resource Names (ARNs) and AWS Service Namespaces</a>. </p>
*/
inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
/**
* <p>Amazon Resource Name (ARN) of the certificate. This is of the form:</p> <p>
* <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
* </p> <p>For more information about ARNs, see <a
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon
* Resource Names (ARNs) and AWS Service Namespaces</a>. </p>
*/
inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
/**
* <p>Amazon Resource Name (ARN) of the certificate. This is of the form:</p> <p>
* <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
* </p> <p>For more information about ARNs, see <a
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon
* Resource Names (ARNs) and AWS Service Namespaces</a>. </p>
*/
inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
/**
* <p>Amazon Resource Name (ARN) of the certificate. This is of the form:</p> <p>
* <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
* </p> <p>For more information about ARNs, see <a
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon
* Resource Names (ARNs) and AWS Service Namespaces</a>. </p>
*/
inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
/**
* <p>Amazon Resource Name (ARN) of the certificate. This is of the form:</p> <p>
* <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
* </p> <p>For more information about ARNs, see <a
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon
* Resource Names (ARNs) and AWS Service Namespaces</a>. </p>
*/
inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
/**
* <p>Amazon Resource Name (ARN) of the certificate. This is of the form:</p> <p>
* <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
* </p> <p>For more information about ARNs, see <a
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon
* Resource Names (ARNs) and AWS Service Namespaces</a>. </p>
*/
inline CertificateSummary& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
/**
* <p>Amazon Resource Name (ARN) of the certificate. This is of the form:</p> <p>
* <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
* </p> <p>For more information about ARNs, see <a
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon
* Resource Names (ARNs) and AWS Service Namespaces</a>. </p>
*/
inline CertificateSummary& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
/**
* <p>Amazon Resource Name (ARN) of the certificate. This is of the form:</p> <p>
* <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code>
* </p> <p>For more information about ARNs, see <a
* href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon
* Resource Names (ARNs) and AWS Service Namespaces</a>. </p>
*/
inline CertificateSummary& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
/**
* <p>Fully qualified domain name (FQDN), such as www.example.com or example.com,
* for the certificate.</p>
*/
inline const Aws::String& GetDomainName() const{ return m_domainName; }
/**
* <p>Fully qualified domain name (FQDN), such as www.example.com or example.com,
* for the certificate.</p>
*/
inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
/**
* <p>Fully qualified domain name (FQDN), such as www.example.com or example.com,
* for the certificate.</p>
*/
inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
/**
* <p>Fully qualified domain name (FQDN), such as www.example.com or example.com,
* for the certificate.</p>
*/
inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
/**
* <p>Fully qualified domain name (FQDN), such as www.example.com or example.com,
* for the certificate.</p>
*/
inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
/**
* <p>Fully qualified domain name (FQDN), such as www.example.com or example.com,
* for the certificate.</p>
*/
inline CertificateSummary& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
/**
* <p>Fully qualified domain name (FQDN), such as www.example.com or example.com,
* for the certificate.</p>
*/
inline CertificateSummary& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
/**
* <p>Fully qualified domain name (FQDN), such as www.example.com or example.com,
* for the certificate.</p>
*/
inline CertificateSummary& WithDomainName(const char* value) { SetDomainName(value); return *this;}
private:
Aws::String m_certificateArn;
bool m_certificateArnHasBeenSet;
Aws::String m_domainName;
bool m_domainNameHasBeenSet;
};
} // namespace Model
} // namespace ACM
} // namespace Aws