125 lines
4.4 KiB
C++
125 lines
4.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/savingsplans/model/SavingsPlanOfferingRate.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SavingsPlans
|
|
{
|
|
namespace Model
|
|
{
|
|
class AWS_SAVINGSPLANS_API DescribeSavingsPlansOfferingRatesResult
|
|
{
|
|
public:
|
|
DescribeSavingsPlansOfferingRatesResult();
|
|
DescribeSavingsPlansOfferingRatesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
DescribeSavingsPlansOfferingRatesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>Information about the Savings Plans offering rates.</p>
|
|
*/
|
|
inline const Aws::Vector<SavingsPlanOfferingRate>& GetSearchResults() const{ return m_searchResults; }
|
|
|
|
/**
|
|
* <p>Information about the Savings Plans offering rates.</p>
|
|
*/
|
|
inline void SetSearchResults(const Aws::Vector<SavingsPlanOfferingRate>& value) { m_searchResults = value; }
|
|
|
|
/**
|
|
* <p>Information about the Savings Plans offering rates.</p>
|
|
*/
|
|
inline void SetSearchResults(Aws::Vector<SavingsPlanOfferingRate>&& value) { m_searchResults = std::move(value); }
|
|
|
|
/**
|
|
* <p>Information about the Savings Plans offering rates.</p>
|
|
*/
|
|
inline DescribeSavingsPlansOfferingRatesResult& WithSearchResults(const Aws::Vector<SavingsPlanOfferingRate>& value) { SetSearchResults(value); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the Savings Plans offering rates.</p>
|
|
*/
|
|
inline DescribeSavingsPlansOfferingRatesResult& WithSearchResults(Aws::Vector<SavingsPlanOfferingRate>&& value) { SetSearchResults(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the Savings Plans offering rates.</p>
|
|
*/
|
|
inline DescribeSavingsPlansOfferingRatesResult& AddSearchResults(const SavingsPlanOfferingRate& value) { m_searchResults.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Information about the Savings Plans offering rates.</p>
|
|
*/
|
|
inline DescribeSavingsPlansOfferingRatesResult& AddSearchResults(SavingsPlanOfferingRate&& value) { m_searchResults.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is null
|
|
* when there are no more results to return.</p>
|
|
*/
|
|
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is null
|
|
* when there are no more results to return.</p>
|
|
*/
|
|
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is null
|
|
* when there are no more results to return.</p>
|
|
*/
|
|
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is null
|
|
* when there are no more results to return.</p>
|
|
*/
|
|
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is null
|
|
* when there are no more results to return.</p>
|
|
*/
|
|
inline DescribeSavingsPlansOfferingRatesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is null
|
|
* when there are no more results to return.</p>
|
|
*/
|
|
inline DescribeSavingsPlansOfferingRatesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The token to use to retrieve the next page of results. This value is null
|
|
* when there are no more results to return.</p>
|
|
*/
|
|
inline DescribeSavingsPlansOfferingRatesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::Vector<SavingsPlanOfferingRate> m_searchResults;
|
|
|
|
Aws::String m_nextToken;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SavingsPlans
|
|
} // namespace Aws
|