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,198 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codestar/CodeStar_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 CodeStar
{
namespace Model
{
class AWS_CODESTAR_API CreateProjectResult
{
public:
CreateProjectResult();
CreateProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the project.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The ID of the project.</p>
*/
inline CreateProjectResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline CreateProjectResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline CreateProjectResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline CreateProjectResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline CreateProjectResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline CreateProjectResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestToken = value; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestToken = std::move(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestToken.assign(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline CreateProjectResult& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline CreateProjectResult& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline CreateProjectResult& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline const Aws::String& GetProjectTemplateId() const{ return m_projectTemplateId; }
/**
* <p>Reserved for future use.</p>
*/
inline void SetProjectTemplateId(const Aws::String& value) { m_projectTemplateId = value; }
/**
* <p>Reserved for future use.</p>
*/
inline void SetProjectTemplateId(Aws::String&& value) { m_projectTemplateId = std::move(value); }
/**
* <p>Reserved for future use.</p>
*/
inline void SetProjectTemplateId(const char* value) { m_projectTemplateId.assign(value); }
/**
* <p>Reserved for future use.</p>
*/
inline CreateProjectResult& WithProjectTemplateId(const Aws::String& value) { SetProjectTemplateId(value); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline CreateProjectResult& WithProjectTemplateId(Aws::String&& value) { SetProjectTemplateId(std::move(value)); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline CreateProjectResult& WithProjectTemplateId(const char* value) { SetProjectTemplateId(value); return *this;}
private:
Aws::String m_id;
Aws::String m_arn;
Aws::String m_clientRequestToken;
Aws::String m_projectTemplateId;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws