/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CostExplorer { namespace Model { class GetSavingsPlansCoverageResult { public: AWS_COSTEXPLORER_API GetSavingsPlansCoverageResult(); AWS_COSTEXPLORER_API GetSavingsPlansCoverageResult(const Aws::AmazonWebServiceResult& result); AWS_COSTEXPLORER_API GetSavingsPlansCoverageResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The amount of spend that your Savings Plans covered.

*/ inline const Aws::Vector& GetSavingsPlansCoverages() const{ return m_savingsPlansCoverages; } /** *

The amount of spend that your Savings Plans covered.

*/ inline void SetSavingsPlansCoverages(const Aws::Vector& value) { m_savingsPlansCoverages = value; } /** *

The amount of spend that your Savings Plans covered.

*/ inline void SetSavingsPlansCoverages(Aws::Vector&& value) { m_savingsPlansCoverages = std::move(value); } /** *

The amount of spend that your Savings Plans covered.

*/ inline GetSavingsPlansCoverageResult& WithSavingsPlansCoverages(const Aws::Vector& value) { SetSavingsPlansCoverages(value); return *this;} /** *

The amount of spend that your Savings Plans covered.

*/ inline GetSavingsPlansCoverageResult& WithSavingsPlansCoverages(Aws::Vector&& value) { SetSavingsPlansCoverages(std::move(value)); return *this;} /** *

The amount of spend that your Savings Plans covered.

*/ inline GetSavingsPlansCoverageResult& AddSavingsPlansCoverages(const SavingsPlansCoverage& value) { m_savingsPlansCoverages.push_back(value); return *this; } /** *

The amount of spend that your Savings Plans covered.

*/ inline GetSavingsPlansCoverageResult& AddSavingsPlansCoverages(SavingsPlansCoverage&& value) { m_savingsPlansCoverages.push_back(std::move(value)); return *this; } /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline GetSavingsPlansCoverageResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline GetSavingsPlansCoverageResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline GetSavingsPlansCoverageResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSavingsPlansCoverageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSavingsPlansCoverageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSavingsPlansCoverageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_savingsPlansCoverages; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace CostExplorer } // namespace Aws