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,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/guardduty/GuardDuty_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 GuardDuty
{
namespace Model
{
/**
* <p>Contains information about the domain.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DomainDetails">AWS
* API Reference</a></p>
*/
class AWS_GUARDDUTY_API DomainDetails
{
public:
DomainDetails();
DomainDetails(Aws::Utils::Json::JsonView jsonValue);
DomainDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The domain information for the AWS API call.</p>
*/
inline const Aws::String& GetDomain() const{ return m_domain; }
/**
* <p>The domain information for the AWS API call.</p>
*/
inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
/**
* <p>The domain information for the AWS API call.</p>
*/
inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
/**
* <p>The domain information for the AWS API call.</p>
*/
inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
/**
* <p>The domain information for the AWS API call.</p>
*/
inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
/**
* <p>The domain information for the AWS API call.</p>
*/
inline DomainDetails& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
/**
* <p>The domain information for the AWS API call.</p>
*/
inline DomainDetails& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
/**
* <p>The domain information for the AWS API call.</p>
*/
inline DomainDetails& WithDomain(const char* value) { SetDomain(value); return *this;}
private:
Aws::String m_domain;
bool m_domainHasBeenSet;
};
} // namespace Model
} // namespace GuardDuty
} // namespace Aws