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,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/awstransfer/Transfer_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 Transfer
{
namespace Model
{
class AWS_TRANSFER_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 ID of the file transfer protocol-enabled server that the user is attached
* to.</p>
*/
inline const Aws::String& GetServerId() const{ return m_serverId; }
/**
* <p>The ID of the file transfer protocol-enabled server that the user is attached
* to.</p>
*/
inline void SetServerId(const Aws::String& value) { m_serverId = value; }
/**
* <p>The ID of the file transfer protocol-enabled server that the user is attached
* to.</p>
*/
inline void SetServerId(Aws::String&& value) { m_serverId = std::move(value); }
/**
* <p>The ID of the file transfer protocol-enabled server that the user is attached
* to.</p>
*/
inline void SetServerId(const char* value) { m_serverId.assign(value); }
/**
* <p>The ID of the file transfer protocol-enabled server that the user is attached
* to.</p>
*/
inline CreateUserResult& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
/**
* <p>The ID of the file transfer protocol-enabled server that the user is attached
* to.</p>
*/
inline CreateUserResult& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
/**
* <p>The ID of the file transfer protocol-enabled server that the user is attached
* to.</p>
*/
inline CreateUserResult& WithServerId(const char* value) { SetServerId(value); return *this;}
/**
* <p>A unique string that identifies a user account associated with a file
* transfer protocol-enabled server.</p>
*/
inline const Aws::String& GetUserName() const{ return m_userName; }
/**
* <p>A unique string that identifies a user account associated with a file
* transfer protocol-enabled server.</p>
*/
inline void SetUserName(const Aws::String& value) { m_userName = value; }
/**
* <p>A unique string that identifies a user account associated with a file
* transfer protocol-enabled server.</p>
*/
inline void SetUserName(Aws::String&& value) { m_userName = std::move(value); }
/**
* <p>A unique string that identifies a user account associated with a file
* transfer protocol-enabled server.</p>
*/
inline void SetUserName(const char* value) { m_userName.assign(value); }
/**
* <p>A unique string that identifies a user account associated with a file
* transfer protocol-enabled server.</p>
*/
inline CreateUserResult& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
/**
* <p>A unique string that identifies a user account associated with a file
* transfer protocol-enabled server.</p>
*/
inline CreateUserResult& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
/**
* <p>A unique string that identifies a user account associated with a file
* transfer protocol-enabled server.</p>
*/
inline CreateUserResult& WithUserName(const char* value) { SetUserName(value); return *this;}
private:
Aws::String m_serverId;
Aws::String m_userName;
};
} // namespace Model
} // namespace Transfer
} // namespace Aws