AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
DescribeSavingsPlansRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/savingsplans/SavingsPlansRequest.h>
10#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
11#include <aws/savingsplans/model/SavingsPlanFilter.h>
12#include <aws/savingsplans/model/SavingsPlanState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SavingsPlans {
18namespace Model {
19
23 public:
24 AWS_SAVINGSPLANS_API DescribeSavingsPlansRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DescribeSavingsPlans"; }
31
32 AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::Vector<Aws::String>& GetSavingsPlanArns() const { return m_savingsPlanArns; }
39 inline bool SavingsPlanArnsHasBeenSet() const { return m_savingsPlanArnsHasBeenSet; }
40 template <typename SavingsPlanArnsT = Aws::Vector<Aws::String>>
41 void SetSavingsPlanArns(SavingsPlanArnsT&& value) {
42 m_savingsPlanArnsHasBeenSet = true;
43 m_savingsPlanArns = std::forward<SavingsPlanArnsT>(value);
44 }
45 template <typename SavingsPlanArnsT = Aws::Vector<Aws::String>>
47 SetSavingsPlanArns(std::forward<SavingsPlanArnsT>(value));
48 return *this;
49 }
50 template <typename SavingsPlanArnsT = Aws::String>
52 m_savingsPlanArnsHasBeenSet = true;
53 m_savingsPlanArns.emplace_back(std::forward<SavingsPlanArnsT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<Aws::String>& GetSavingsPlanIds() const { return m_savingsPlanIds; }
63 inline bool SavingsPlanIdsHasBeenSet() const { return m_savingsPlanIdsHasBeenSet; }
64 template <typename SavingsPlanIdsT = Aws::Vector<Aws::String>>
65 void SetSavingsPlanIds(SavingsPlanIdsT&& value) {
66 m_savingsPlanIdsHasBeenSet = true;
67 m_savingsPlanIds = std::forward<SavingsPlanIdsT>(value);
68 }
69 template <typename SavingsPlanIdsT = Aws::Vector<Aws::String>>
71 SetSavingsPlanIds(std::forward<SavingsPlanIdsT>(value));
72 return *this;
73 }
74 template <typename SavingsPlanIdsT = Aws::String>
76 m_savingsPlanIdsHasBeenSet = true;
77 m_savingsPlanIds.emplace_back(std::forward<SavingsPlanIdsT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetNextToken() const { return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 template <typename NextTokenT = Aws::String>
89 void SetNextToken(NextTokenT&& value) {
90 m_nextTokenHasBeenSet = true;
91 m_nextToken = std::forward<NextTokenT>(value);
92 }
93 template <typename NextTokenT = Aws::String>
95 SetNextToken(std::forward<NextTokenT>(value));
96 return *this;
97 }
99
101
105 inline int GetMaxResults() const { return m_maxResults; }
106 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 inline void SetMaxResults(int value) {
108 m_maxResultsHasBeenSet = true;
109 m_maxResults = value;
110 }
112 SetMaxResults(value);
113 return *this;
114 }
116
118
121 inline const Aws::Vector<SavingsPlanState>& GetStates() const { return m_states; }
122 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
123 template <typename StatesT = Aws::Vector<SavingsPlanState>>
124 void SetStates(StatesT&& value) {
125 m_statesHasBeenSet = true;
126 m_states = std::forward<StatesT>(value);
127 }
128 template <typename StatesT = Aws::Vector<SavingsPlanState>>
130 SetStates(std::forward<StatesT>(value));
131 return *this;
132 }
134 m_statesHasBeenSet = true;
135 m_states.push_back(value);
136 return *this;
137 }
139
141
144 inline const Aws::Vector<SavingsPlanFilter>& GetFilters() const { return m_filters; }
145 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
146 template <typename FiltersT = Aws::Vector<SavingsPlanFilter>>
147 void SetFilters(FiltersT&& value) {
148 m_filtersHasBeenSet = true;
149 m_filters = std::forward<FiltersT>(value);
150 }
151 template <typename FiltersT = Aws::Vector<SavingsPlanFilter>>
153 SetFilters(std::forward<FiltersT>(value));
154 return *this;
155 }
156 template <typename FiltersT = SavingsPlanFilter>
158 m_filtersHasBeenSet = true;
159 m_filters.emplace_back(std::forward<FiltersT>(value));
160 return *this;
161 }
163 private:
164 Aws::Vector<Aws::String> m_savingsPlanArns;
165 bool m_savingsPlanArnsHasBeenSet = false;
166
167 Aws::Vector<Aws::String> m_savingsPlanIds;
168 bool m_savingsPlanIdsHasBeenSet = false;
169
170 Aws::String m_nextToken;
171 bool m_nextTokenHasBeenSet = false;
172
173 int m_maxResults{0};
174 bool m_maxResultsHasBeenSet = false;
175
177 bool m_statesHasBeenSet = false;
178
180 bool m_filtersHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace SavingsPlans
185} // namespace Aws
const Aws::Vector< Aws::String > & GetSavingsPlanArns() const
DescribeSavingsPlansRequest & AddSavingsPlanArns(SavingsPlanArnsT &&value)
DescribeSavingsPlansRequest & AddSavingsPlanIds(SavingsPlanIdsT &&value)
DescribeSavingsPlansRequest & WithSavingsPlanIds(SavingsPlanIdsT &&value)
DescribeSavingsPlansRequest & WithFilters(FiltersT &&value)
DescribeSavingsPlansRequest & WithSavingsPlanArns(SavingsPlanArnsT &&value)
const Aws::Vector< SavingsPlanFilter > & GetFilters() const
DescribeSavingsPlansRequest & WithStates(StatesT &&value)
AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override
const Aws::Vector< SavingsPlanState > & GetStates() const
const Aws::Vector< Aws::String > & GetSavingsPlanIds() const
DescribeSavingsPlansRequest & AddFilters(FiltersT &&value)
AWS_SAVINGSPLANS_API DescribeSavingsPlansRequest()=default
DescribeSavingsPlansRequest & AddStates(SavingsPlanState value)
DescribeSavingsPlansRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector