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,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/macie2/Macie2_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 Macie2
{
namespace Model
{
/**
* <p>Specifies details for an account to associate with an Amazon Macie master
* account.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AccountDetail">AWS
* API Reference</a></p>
*/
class AWS_MACIE2_API AccountDetail
{
public:
AccountDetail();
AccountDetail(Aws::Utils::Json::JsonView jsonValue);
AccountDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The AWS account ID for the account.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The AWS account ID for the account.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The AWS account ID for the account.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The AWS account ID for the account.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The AWS account ID for the account.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The AWS account ID for the account.</p>
*/
inline AccountDetail& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The AWS account ID for the account.</p>
*/
inline AccountDetail& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The AWS account ID for the account.</p>
*/
inline AccountDetail& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The email address for the account.</p>
*/
inline const Aws::String& GetEmail() const{ return m_email; }
/**
* <p>The email address for the account.</p>
*/
inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
/**
* <p>The email address for the account.</p>
*/
inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
/**
* <p>The email address for the account.</p>
*/
inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
/**
* <p>The email address for the account.</p>
*/
inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
/**
* <p>The email address for the account.</p>
*/
inline AccountDetail& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
/**
* <p>The email address for the account.</p>
*/
inline AccountDetail& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
/**
* <p>The email address for the account.</p>
*/
inline AccountDetail& WithEmail(const char* value) { SetEmail(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_email;
bool m_emailHasBeenSet;
};
} // namespace Model
} // namespace Macie2
} // namespace Aws