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,146 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/AppSummary.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ServerGroup.h>
#include <aws/sms/model/Tag.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API CreateAppResult
{
public:
CreateAppResult();
CreateAppResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateAppResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A summary description of the application.</p>
*/
inline const AppSummary& GetAppSummary() const{ return m_appSummary; }
/**
* <p>A summary description of the application.</p>
*/
inline void SetAppSummary(const AppSummary& value) { m_appSummary = value; }
/**
* <p>A summary description of the application.</p>
*/
inline void SetAppSummary(AppSummary&& value) { m_appSummary = std::move(value); }
/**
* <p>A summary description of the application.</p>
*/
inline CreateAppResult& WithAppSummary(const AppSummary& value) { SetAppSummary(value); return *this;}
/**
* <p>A summary description of the application.</p>
*/
inline CreateAppResult& WithAppSummary(AppSummary&& value) { SetAppSummary(std::move(value)); return *this;}
/**
* <p>The server groups included in the application.</p>
*/
inline const Aws::Vector<ServerGroup>& GetServerGroups() const{ return m_serverGroups; }
/**
* <p>The server groups included in the application.</p>
*/
inline void SetServerGroups(const Aws::Vector<ServerGroup>& value) { m_serverGroups = value; }
/**
* <p>The server groups included in the application.</p>
*/
inline void SetServerGroups(Aws::Vector<ServerGroup>&& value) { m_serverGroups = std::move(value); }
/**
* <p>The server groups included in the application.</p>
*/
inline CreateAppResult& WithServerGroups(const Aws::Vector<ServerGroup>& value) { SetServerGroups(value); return *this;}
/**
* <p>The server groups included in the application.</p>
*/
inline CreateAppResult& WithServerGroups(Aws::Vector<ServerGroup>&& value) { SetServerGroups(std::move(value)); return *this;}
/**
* <p>The server groups included in the application.</p>
*/
inline CreateAppResult& AddServerGroups(const ServerGroup& value) { m_serverGroups.push_back(value); return *this; }
/**
* <p>The server groups included in the application.</p>
*/
inline CreateAppResult& AddServerGroups(ServerGroup&& value) { m_serverGroups.push_back(std::move(value)); return *this; }
/**
* <p>The tags associated with the application.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags associated with the application.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
/**
* <p>The tags associated with the application.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
/**
* <p>The tags associated with the application.</p>
*/
inline CreateAppResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags associated with the application.</p>
*/
inline CreateAppResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags associated with the application.</p>
*/
inline CreateAppResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
/**
* <p>The tags associated with the application.</p>
*/
inline CreateAppResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
private:
AppSummary m_appSummary;
Aws::Vector<ServerGroup> m_serverGroups;
Aws::Vector<Tag> m_tags;
};
} // namespace Model
} // namespace SMS
} // namespace Aws