AWS SDK for C++  1.9.1
AWS SDK for C++
GetSavingsPlansUtilizationDetailsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace CostExplorer
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "GetSavingsPlansUtilizationDetails"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
48  inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
49 
56  inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
57 
64  inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
65 
72  inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
73 
80  inline GetSavingsPlansUtilizationDetailsRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
81 
88  inline GetSavingsPlansUtilizationDetailsRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
89 
90 
103  inline const Expression& GetFilter() const{ return m_filter; }
104 
117  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
118 
131  inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
132 
145  inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
146 
159  inline GetSavingsPlansUtilizationDetailsRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
160 
173  inline GetSavingsPlansUtilizationDetailsRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
174 
175 
179  inline const Aws::Vector<SavingsPlansDataType>& GetDataType() const{ return m_dataType; }
180 
184  inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
185 
189  inline void SetDataType(const Aws::Vector<SavingsPlansDataType>& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
190 
194  inline void SetDataType(Aws::Vector<SavingsPlansDataType>&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
195 
199  inline GetSavingsPlansUtilizationDetailsRequest& WithDataType(const Aws::Vector<SavingsPlansDataType>& value) { SetDataType(value); return *this;}
200 
204  inline GetSavingsPlansUtilizationDetailsRequest& WithDataType(Aws::Vector<SavingsPlansDataType>&& value) { SetDataType(std::move(value)); return *this;}
205 
209  inline GetSavingsPlansUtilizationDetailsRequest& AddDataType(const SavingsPlansDataType& value) { m_dataTypeHasBeenSet = true; m_dataType.push_back(value); return *this; }
210 
214  inline GetSavingsPlansUtilizationDetailsRequest& AddDataType(SavingsPlansDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType.push_back(std::move(value)); return *this; }
215 
216 
222  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
223 
229  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
230 
236  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
237 
243  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
244 
250  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
251 
257  inline GetSavingsPlansUtilizationDetailsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
258 
264  inline GetSavingsPlansUtilizationDetailsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
265 
271  inline GetSavingsPlansUtilizationDetailsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
272 
273 
278  inline int GetMaxResults() const{ return m_maxResults; }
279 
284  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
285 
290  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
291 
296  inline GetSavingsPlansUtilizationDetailsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
297 
298 
311  inline const SortDefinition& GetSortBy() const{ return m_sortBy; }
312 
325  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
326 
339  inline void SetSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
340 
353  inline void SetSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
354 
367  inline GetSavingsPlansUtilizationDetailsRequest& WithSortBy(const SortDefinition& value) { SetSortBy(value); return *this;}
368 
381  inline GetSavingsPlansUtilizationDetailsRequest& WithSortBy(SortDefinition&& value) { SetSortBy(std::move(value)); return *this;}
382 
383  private:
384 
385  DateInterval m_timePeriod;
386  bool m_timePeriodHasBeenSet;
387 
388  Expression m_filter;
389  bool m_filterHasBeenSet;
390 
392  bool m_dataTypeHasBeenSet;
393 
394  Aws::String m_nextToken;
395  bool m_nextTokenHasBeenSet;
396 
397  int m_maxResults;
398  bool m_maxResultsHasBeenSet;
399 
400  SortDefinition m_sortBy;
401  bool m_sortByHasBeenSet;
402  };
403 
404 } // namespace Model
405 } // namespace CostExplorer
406 } // namespace Aws
Aws::CostExplorer::Model::SavingsPlansDataType
SavingsPlansDataType
Definition: SavingsPlansDataType.h:17
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::GetMaxResults
int GetMaxResults() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:278
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetTimePeriod
void SetTimePeriod(DateInterval &&value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:72
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::DateInterval
Definition: DateInterval.h:32
SavingsPlansDataType.h
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::TimePeriodHasBeenSet
bool TimePeriodHasBeenSet() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:56
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithNextToken
GetSavingsPlansUtilizationDetailsRequest & WithNextToken(const char *value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:271
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetSortBy
void SetSortBy(SortDefinition &&value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:353
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:250
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithMaxResults
GetSavingsPlansUtilizationDetailsRequest & WithMaxResults(int value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:296
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithNextToken
GetSavingsPlansUtilizationDetailsRequest & WithNextToken(const Aws::String &value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:257
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithNextToken
GetSavingsPlansUtilizationDetailsRequest & WithNextToken(Aws::String &&value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:264
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:117
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::DataTypeHasBeenSet
bool DataTypeHasBeenSet() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:184
CostExplorerRequest.h
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::GetTimePeriod
const DateInterval & GetTimePeriod() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:48
DateInterval.h
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::Expression
Definition: Expression.h:69
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:325
AWSVector.h
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithSortBy
GetSavingsPlansUtilizationDetailsRequest & WithSortBy(SortDefinition &&value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:381
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithSortBy
GetSavingsPlansUtilizationDetailsRequest & WithSortBy(const SortDefinition &value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:367
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSavingsPlansUtilizationDetailsRequest.h:35
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetTimePeriod
void SetTimePeriod(const DateInterval &value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:64
SortDefinition.h
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::GetDataType
const Aws::Vector< SavingsPlansDataType > & GetDataType() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:179
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:243
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::GetFilter
const Expression & GetFilter() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:103
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::GetSortBy
const SortDefinition & GetSortBy() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:311
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:290
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetSortBy
void SetSortBy(const SortDefinition &value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:339
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:229
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithDataType
GetSavingsPlansUtilizationDetailsRequest & WithDataType(Aws::Vector< SavingsPlansDataType > &&value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:204
AWSString.h
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithTimePeriod
GetSavingsPlansUtilizationDetailsRequest & WithTimePeriod(const DateInterval &value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:80
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:284
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::AddDataType
GetSavingsPlansUtilizationDetailsRequest & AddDataType(const SavingsPlansDataType &value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:209
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithDataType
GetSavingsPlansUtilizationDetailsRequest & WithDataType(const Aws::Vector< SavingsPlansDataType > &value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:199
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::GetSavingsPlansUtilizationDetailsRequest
GetSavingsPlansUtilizationDetailsRequest()
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:236
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetDataType
void SetDataType(const Aws::Vector< SavingsPlansDataType > &value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:189
Aws::CostExplorer::Model::SortDefinition
Definition: SortDefinition.h:33
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetSavingsPlansUtilizationDetailsRequest.h:222
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithFilter
GetSavingsPlansUtilizationDetailsRequest & WithFilter(Expression &&value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:173
Expression.h
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetFilter
void SetFilter(const Expression &value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:131
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetFilter
void SetFilter(Expression &&value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:145
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::SetDataType
void SetDataType(Aws::Vector< SavingsPlansDataType > &&value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:194
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithTimePeriod
GetSavingsPlansUtilizationDetailsRequest & WithTimePeriod(DateInterval &&value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:88
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest
Definition: GetSavingsPlansUtilizationDetailsRequest.h:27
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::AddDataType
GetSavingsPlansUtilizationDetailsRequest & AddDataType(SavingsPlansDataType &&value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:214
Aws::CostExplorer::Model::GetSavingsPlansUtilizationDetailsRequest::WithFilter
GetSavingsPlansUtilizationDetailsRequest & WithFilter(const Expression &value)
Definition: GetSavingsPlansUtilizationDetailsRequest.h:159