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,160 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ce/CostExplorer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ce/model/Coverage.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ce/model/CoverageByTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CostExplorer
{
namespace Model
{
class AWS_COSTEXPLORER_API GetReservationCoverageResult
{
public:
GetReservationCoverageResult();
GetReservationCoverageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetReservationCoverageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The amount of time that your reservations covered.</p>
*/
inline const Aws::Vector<CoverageByTime>& GetCoveragesByTime() const{ return m_coveragesByTime; }
/**
* <p>The amount of time that your reservations covered.</p>
*/
inline void SetCoveragesByTime(const Aws::Vector<CoverageByTime>& value) { m_coveragesByTime = value; }
/**
* <p>The amount of time that your reservations covered.</p>
*/
inline void SetCoveragesByTime(Aws::Vector<CoverageByTime>&& value) { m_coveragesByTime = std::move(value); }
/**
* <p>The amount of time that your reservations covered.</p>
*/
inline GetReservationCoverageResult& WithCoveragesByTime(const Aws::Vector<CoverageByTime>& value) { SetCoveragesByTime(value); return *this;}
/**
* <p>The amount of time that your reservations covered.</p>
*/
inline GetReservationCoverageResult& WithCoveragesByTime(Aws::Vector<CoverageByTime>&& value) { SetCoveragesByTime(std::move(value)); return *this;}
/**
* <p>The amount of time that your reservations covered.</p>
*/
inline GetReservationCoverageResult& AddCoveragesByTime(const CoverageByTime& value) { m_coveragesByTime.push_back(value); return *this; }
/**
* <p>The amount of time that your reservations covered.</p>
*/
inline GetReservationCoverageResult& AddCoveragesByTime(CoverageByTime&& value) { m_coveragesByTime.push_back(std::move(value)); return *this; }
/**
* <p>The total amount of instance usage that a reservation covered.</p>
*/
inline const Coverage& GetTotal() const{ return m_total; }
/**
* <p>The total amount of instance usage that a reservation covered.</p>
*/
inline void SetTotal(const Coverage& value) { m_total = value; }
/**
* <p>The total amount of instance usage that a reservation covered.</p>
*/
inline void SetTotal(Coverage&& value) { m_total = std::move(value); }
/**
* <p>The total amount of instance usage that a reservation covered.</p>
*/
inline GetReservationCoverageResult& WithTotal(const Coverage& value) { SetTotal(value); return *this;}
/**
* <p>The total amount of instance usage that a reservation covered.</p>
*/
inline GetReservationCoverageResult& WithTotal(Coverage&& value) { SetTotal(std::move(value)); return *this;}
/**
* <p>The token for the next set of retrievable results. AWS provides the token
* when the response from a previous call has more results than the maximum page
* size.</p>
*/
inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
/**
* <p>The token for the next set of retrievable results. AWS provides the token
* when the response from a previous call has more results than the maximum page
* size.</p>
*/
inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
/**
* <p>The token for the next set of retrievable results. AWS provides the token
* when the response from a previous call has more results than the maximum page
* size.</p>
*/
inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
/**
* <p>The token for the next set of retrievable results. AWS provides the token
* when the response from a previous call has more results than the maximum page
* size.</p>
*/
inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
/**
* <p>The token for the next set of retrievable results. AWS provides the token
* when the response from a previous call has more results than the maximum page
* size.</p>
*/
inline GetReservationCoverageResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
/**
* <p>The token for the next set of retrievable results. AWS provides the token
* when the response from a previous call has more results than the maximum page
* size.</p>
*/
inline GetReservationCoverageResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of retrievable results. AWS provides the token
* when the response from a previous call has more results than the maximum page
* size.</p>
*/
inline GetReservationCoverageResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
private:
Aws::Vector<CoverageByTime> m_coveragesByTime;
Coverage m_total;
Aws::String m_nextPageToken;
};
} // namespace Model
} // namespace CostExplorer
} // namespace Aws