/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace SavingsPlans { namespace Model { /** */ class DescribeSavingsPlansRequest : public SavingsPlansRequest { public: AWS_SAVINGSPLANS_API DescribeSavingsPlansRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeSavingsPlans"; } AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Names (ARN) of the Savings Plans.

*/ inline const Aws::Vector& GetSavingsPlanArns() const{ return m_savingsPlanArns; } /** *

The Amazon Resource Names (ARN) of the Savings Plans.

*/ inline bool SavingsPlanArnsHasBeenSet() const { return m_savingsPlanArnsHasBeenSet; } /** *

The Amazon Resource Names (ARN) of the Savings Plans.

*/ inline void SetSavingsPlanArns(const Aws::Vector& value) { m_savingsPlanArnsHasBeenSet = true; m_savingsPlanArns = value; } /** *

The Amazon Resource Names (ARN) of the Savings Plans.

*/ inline void SetSavingsPlanArns(Aws::Vector&& value) { m_savingsPlanArnsHasBeenSet = true; m_savingsPlanArns = std::move(value); } /** *

The Amazon Resource Names (ARN) of the Savings Plans.

*/ inline DescribeSavingsPlansRequest& WithSavingsPlanArns(const Aws::Vector& value) { SetSavingsPlanArns(value); return *this;} /** *

The Amazon Resource Names (ARN) of the Savings Plans.

*/ inline DescribeSavingsPlansRequest& WithSavingsPlanArns(Aws::Vector&& value) { SetSavingsPlanArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARN) of the Savings Plans.

*/ inline DescribeSavingsPlansRequest& AddSavingsPlanArns(const Aws::String& value) { m_savingsPlanArnsHasBeenSet = true; m_savingsPlanArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARN) of the Savings Plans.

*/ inline DescribeSavingsPlansRequest& AddSavingsPlanArns(Aws::String&& value) { m_savingsPlanArnsHasBeenSet = true; m_savingsPlanArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARN) of the Savings Plans.

*/ inline DescribeSavingsPlansRequest& AddSavingsPlanArns(const char* value) { m_savingsPlanArnsHasBeenSet = true; m_savingsPlanArns.push_back(value); return *this; } /** *

The IDs of the Savings Plans.

*/ inline const Aws::Vector& GetSavingsPlanIds() const{ return m_savingsPlanIds; } /** *

The IDs of the Savings Plans.

*/ inline bool SavingsPlanIdsHasBeenSet() const { return m_savingsPlanIdsHasBeenSet; } /** *

The IDs of the Savings Plans.

*/ inline void SetSavingsPlanIds(const Aws::Vector& value) { m_savingsPlanIdsHasBeenSet = true; m_savingsPlanIds = value; } /** *

The IDs of the Savings Plans.

*/ inline void SetSavingsPlanIds(Aws::Vector&& value) { m_savingsPlanIdsHasBeenSet = true; m_savingsPlanIds = std::move(value); } /** *

The IDs of the Savings Plans.

*/ inline DescribeSavingsPlansRequest& WithSavingsPlanIds(const Aws::Vector& value) { SetSavingsPlanIds(value); return *this;} /** *

The IDs of the Savings Plans.

*/ inline DescribeSavingsPlansRequest& WithSavingsPlanIds(Aws::Vector&& value) { SetSavingsPlanIds(std::move(value)); return *this;} /** *

The IDs of the Savings Plans.

*/ inline DescribeSavingsPlansRequest& AddSavingsPlanIds(const Aws::String& value) { m_savingsPlanIdsHasBeenSet = true; m_savingsPlanIds.push_back(value); return *this; } /** *

The IDs of the Savings Plans.

*/ inline DescribeSavingsPlansRequest& AddSavingsPlanIds(Aws::String&& value) { m_savingsPlanIdsHasBeenSet = true; m_savingsPlanIds.push_back(std::move(value)); return *this; } /** *

The IDs of the Savings Plans.

*/ inline DescribeSavingsPlansRequest& AddSavingsPlanIds(const char* value) { m_savingsPlanIdsHasBeenSet = true; m_savingsPlanIds.push_back(value); return *this; } /** *

The token for the next page of results.

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

The token for the next page of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

*/ inline DescribeSavingsPlansRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of results to return with a single call. To retrieve * additional results, make another call with the returned token value.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return with a single call. To retrieve * additional results, make another call with the returned token value.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return with a single call. To retrieve * additional results, make another call with the returned token value.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return with a single call. To retrieve * additional results, make another call with the returned token value.

*/ inline DescribeSavingsPlansRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The states.

*/ inline const Aws::Vector& GetStates() const{ return m_states; } /** *

The states.

*/ inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; } /** *

The states.

*/ inline void SetStates(const Aws::Vector& value) { m_statesHasBeenSet = true; m_states = value; } /** *

The states.

*/ inline void SetStates(Aws::Vector&& value) { m_statesHasBeenSet = true; m_states = std::move(value); } /** *

The states.

*/ inline DescribeSavingsPlansRequest& WithStates(const Aws::Vector& value) { SetStates(value); return *this;} /** *

The states.

*/ inline DescribeSavingsPlansRequest& WithStates(Aws::Vector&& value) { SetStates(std::move(value)); return *this;} /** *

The states.

*/ inline DescribeSavingsPlansRequest& AddStates(const SavingsPlanState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; } /** *

The states.

*/ inline DescribeSavingsPlansRequest& AddStates(SavingsPlanState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; } /** *

The filters.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

The filters.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

The filters.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

The filters.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

The filters.

*/ inline DescribeSavingsPlansRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

The filters.

*/ inline DescribeSavingsPlansRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

The filters.

*/ inline DescribeSavingsPlansRequest& AddFilters(const SavingsPlanFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

The filters.

*/ inline DescribeSavingsPlansRequest& AddFilters(SavingsPlanFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } private: Aws::Vector m_savingsPlanArns; bool m_savingsPlanArnsHasBeenSet = false; Aws::Vector m_savingsPlanIds; bool m_savingsPlanIdsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::Vector m_states; bool m_statesHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; }; } // namespace Model } // namespace SavingsPlans } // namespace Aws