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,115 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/connect/Connect_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Connect
{
namespace Model
{
class AWS_CONNECT_API CreateUserResult
{
public:
CreateUserResult();
CreateUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier of the user account.</p>
*/
inline const Aws::String& GetUserId() const{ return m_userId; }
/**
* <p>The identifier of the user account.</p>
*/
inline void SetUserId(const Aws::String& value) { m_userId = value; }
/**
* <p>The identifier of the user account.</p>
*/
inline void SetUserId(Aws::String&& value) { m_userId = std::move(value); }
/**
* <p>The identifier of the user account.</p>
*/
inline void SetUserId(const char* value) { m_userId.assign(value); }
/**
* <p>The identifier of the user account.</p>
*/
inline CreateUserResult& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
/**
* <p>The identifier of the user account.</p>
*/
inline CreateUserResult& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
/**
* <p>The identifier of the user account.</p>
*/
inline CreateUserResult& WithUserId(const char* value) { SetUserId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user account.</p>
*/
inline const Aws::String& GetUserArn() const{ return m_userArn; }
/**
* <p>The Amazon Resource Name (ARN) of the user account.</p>
*/
inline void SetUserArn(const Aws::String& value) { m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the user account.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user account.</p>
*/
inline void SetUserArn(const char* value) { m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user account.</p>
*/
inline CreateUserResult& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user account.</p>
*/
inline CreateUserResult& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user account.</p>
*/
inline CreateUserResult& WithUserArn(const char* value) { SetUserArn(value); return *this;}
private:
Aws::String m_userId;
Aws::String m_userArn;
};
} // namespace Model
} // namespace Connect
} // namespace Aws