AWS SDK for C++  1.9.1
AWS SDK for C++
GetSavingsPlansUtilizationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace CostExplorer
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetSavingsPlansUtilization"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
46  inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
47 
54  inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
55 
62  inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
63 
70  inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
71 
78  inline GetSavingsPlansUtilizationRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
79 
86  inline GetSavingsPlansUtilizationRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
87 
88 
94  inline const Granularity& GetGranularity() const{ return m_granularity; }
95 
101  inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
102 
108  inline void SetGranularity(const Granularity& value) { m_granularityHasBeenSet = true; m_granularity = value; }
109 
115  inline void SetGranularity(Granularity&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
116 
122  inline GetSavingsPlansUtilizationRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;}
123 
129  inline GetSavingsPlansUtilizationRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;}
130 
131 
144  inline const Expression& GetFilter() const{ return m_filter; }
145 
158  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
159 
172  inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
173 
186  inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
187 
200  inline GetSavingsPlansUtilizationRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
201 
214  inline GetSavingsPlansUtilizationRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
215 
216 
227  inline const SortDefinition& GetSortBy() const{ return m_sortBy; }
228 
239  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
240 
251  inline void SetSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
252 
263  inline void SetSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
264 
275  inline GetSavingsPlansUtilizationRequest& WithSortBy(const SortDefinition& value) { SetSortBy(value); return *this;}
276 
287  inline GetSavingsPlansUtilizationRequest& WithSortBy(SortDefinition&& value) { SetSortBy(std::move(value)); return *this;}
288 
289  private:
290 
291  DateInterval m_timePeriod;
292  bool m_timePeriodHasBeenSet;
293 
294  Granularity m_granularity;
295  bool m_granularityHasBeenSet;
296 
297  Expression m_filter;
298  bool m_filterHasBeenSet;
299 
300  SortDefinition m_sortBy;
301  bool m_sortByHasBeenSet;
302  };
303 
304 } // namespace Model
305 } // namespace CostExplorer
306 } // namespace Aws
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::DateInterval
Definition: DateInterval.h:32
Aws::CostExplorer::Model::Granularity
Granularity
Definition: Granularity.h:17
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: GetSavingsPlansUtilizationRequest.h:239
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::SetGranularity
void SetGranularity(const Granularity &value)
Definition: GetSavingsPlansUtilizationRequest.h:108
CostExplorerRequest.h
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::TimePeriodHasBeenSet
bool TimePeriodHasBeenSet() const
Definition: GetSavingsPlansUtilizationRequest.h:54
DateInterval.h
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::SetSortBy
void SetSortBy(const SortDefinition &value)
Definition: GetSavingsPlansUtilizationRequest.h:251
Aws::CostExplorer::Model::Expression
Definition: Expression.h:69
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::GranularityHasBeenSet
bool GranularityHasBeenSet() const
Definition: GetSavingsPlansUtilizationRequest.h:101
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::GetTimePeriod
const DateInterval & GetTimePeriod() const
Definition: GetSavingsPlansUtilizationRequest.h:46
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::SetSortBy
void SetSortBy(SortDefinition &&value)
Definition: GetSavingsPlansUtilizationRequest.h:263
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::SetFilter
void SetFilter(Expression &&value)
Definition: GetSavingsPlansUtilizationRequest.h:186
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::WithSortBy
GetSavingsPlansUtilizationRequest & WithSortBy(const SortDefinition &value)
Definition: GetSavingsPlansUtilizationRequest.h:275
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::SetGranularity
void SetGranularity(Granularity &&value)
Definition: GetSavingsPlansUtilizationRequest.h:115
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::GetSavingsPlansUtilizationRequest
GetSavingsPlansUtilizationRequest()
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::SetTimePeriod
void SetTimePeriod(DateInterval &&value)
Definition: GetSavingsPlansUtilizationRequest.h:70
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::GetSortBy
const SortDefinition & GetSortBy() const
Definition: GetSavingsPlansUtilizationRequest.h:227
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::GetFilter
const Expression & GetFilter() const
Definition: GetSavingsPlansUtilizationRequest.h:144
SortDefinition.h
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::SetFilter
void SetFilter(const Expression &value)
Definition: GetSavingsPlansUtilizationRequest.h:172
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::WithTimePeriod
GetSavingsPlansUtilizationRequest & WithTimePeriod(DateInterval &&value)
Definition: GetSavingsPlansUtilizationRequest.h:86
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::WithGranularity
GetSavingsPlansUtilizationRequest & WithGranularity(Granularity &&value)
Definition: GetSavingsPlansUtilizationRequest.h:129
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest
Definition: GetSavingsPlansUtilizationRequest.h:25
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::WithGranularity
GetSavingsPlansUtilizationRequest & WithGranularity(const Granularity &value)
Definition: GetSavingsPlansUtilizationRequest.h:122
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::WithSortBy
GetSavingsPlansUtilizationRequest & WithSortBy(SortDefinition &&value)
Definition: GetSavingsPlansUtilizationRequest.h:287
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::WithFilter
GetSavingsPlansUtilizationRequest & WithFilter(const Expression &value)
Definition: GetSavingsPlansUtilizationRequest.h:200
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSavingsPlansUtilizationRequest.h:33
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::WithFilter
GetSavingsPlansUtilizationRequest & WithFilter(Expression &&value)
Definition: GetSavingsPlansUtilizationRequest.h:214
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetSavingsPlansUtilizationRequest.h:158
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::WithTimePeriod
GetSavingsPlansUtilizationRequest & WithTimePeriod(const DateInterval &value)
Definition: GetSavingsPlansUtilizationRequest.h:78
Aws::CostExplorer::Model::SortDefinition
Definition: SortDefinition.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::SetTimePeriod
void SetTimePeriod(const DateInterval &value)
Definition: GetSavingsPlansUtilizationRequest.h:62
Expression.h
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::GetGranularity
const Granularity & GetGranularity() const
Definition: GetSavingsPlansUtilizationRequest.h:94
Aws::CostExplorer::Model::GetSavingsPlansUtilizationRequest::SerializePayload
Aws::String SerializePayload() const override
Granularity.h