AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetReservationUtilizationRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/CostExplorerRequest.h>
9#include <aws/ce/model/DateInterval.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ce/model/Granularity.h>
12#include <aws/ce/model/Expression.h>
13#include <aws/ce/model/SortDefinition.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/ce/model/GroupDefinition.h>
16#include <utility>
17
18namespace Aws
19{
20namespace CostExplorer
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_COSTEXPLORER_API GetReservationUtilizationRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "GetReservationUtilization"; }
37
38 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
39
40 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
52 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
53 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
54 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
55 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
56 inline GetReservationUtilizationRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
57 inline GetReservationUtilizationRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
59
61
64 inline const Aws::Vector<GroupDefinition>& GetGroupBy() const{ return m_groupBy; }
65 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
66 inline void SetGroupBy(const Aws::Vector<GroupDefinition>& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
67 inline void SetGroupBy(Aws::Vector<GroupDefinition>&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
69 inline GetReservationUtilizationRequest& WithGroupBy(Aws::Vector<GroupDefinition>&& value) { SetGroupBy(std::move(value)); return *this;}
70 inline GetReservationUtilizationRequest& AddGroupBy(const GroupDefinition& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(value); return *this; }
71 inline GetReservationUtilizationRequest& AddGroupBy(GroupDefinition&& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(std::move(value)); return *this; }
73
75
84 inline const Granularity& GetGranularity() const{ return m_granularity; }
85 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
86 inline void SetGranularity(const Granularity& value) { m_granularityHasBeenSet = true; m_granularity = value; }
87 inline void SetGranularity(Granularity&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
88 inline GetReservationUtilizationRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;}
89 inline GetReservationUtilizationRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;}
91
93
106 inline const Expression& GetFilter() const{ return m_filter; }
107 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
108 inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
109 inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
110 inline GetReservationUtilizationRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
111 inline GetReservationUtilizationRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
113
115
135 inline const SortDefinition& GetSortBy() const{ return m_sortBy; }
136 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
137 inline void SetSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
138 inline void SetSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
139 inline GetReservationUtilizationRequest& WithSortBy(const SortDefinition& value) { SetSortBy(value); return *this;}
140 inline GetReservationUtilizationRequest& WithSortBy(SortDefinition&& value) { SetSortBy(std::move(value)); return *this;}
142
144
149 inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
150 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
151 inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
152 inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
153 inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
155 inline GetReservationUtilizationRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
156 inline GetReservationUtilizationRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
158
160
166 inline int GetMaxResults() const{ return m_maxResults; }
167 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
168 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
169 inline GetReservationUtilizationRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
171 private:
172
173 DateInterval m_timePeriod;
174 bool m_timePeriodHasBeenSet = false;
175
177 bool m_groupByHasBeenSet = false;
178
179 Granularity m_granularity;
180 bool m_granularityHasBeenSet = false;
181
182 Expression m_filter;
183 bool m_filterHasBeenSet = false;
184
185 SortDefinition m_sortBy;
186 bool m_sortByHasBeenSet = false;
187
188 Aws::String m_nextPageToken;
189 bool m_nextPageTokenHasBeenSet = false;
190
191 int m_maxResults;
192 bool m_maxResultsHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace CostExplorer
197} // namespace Aws
GetReservationUtilizationRequest & WithNextPageToken(Aws::String &&value)
GetReservationUtilizationRequest & WithTimePeriod(DateInterval &&value)
GetReservationUtilizationRequest & WithNextPageToken(const Aws::String &value)
GetReservationUtilizationRequest & WithTimePeriod(const DateInterval &value)
GetReservationUtilizationRequest & WithGranularity(Granularity &&value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetReservationUtilizationRequest & WithNextPageToken(const char *value)
GetReservationUtilizationRequest & WithGroupBy(const Aws::Vector< GroupDefinition > &value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetReservationUtilizationRequest & AddGroupBy(const GroupDefinition &value)
GetReservationUtilizationRequest & WithGroupBy(Aws::Vector< GroupDefinition > &&value)
GetReservationUtilizationRequest & WithFilter(const Expression &value)
GetReservationUtilizationRequest & WithFilter(Expression &&value)
GetReservationUtilizationRequest & AddGroupBy(GroupDefinition &&value)
GetReservationUtilizationRequest & WithSortBy(const SortDefinition &value)
GetReservationUtilizationRequest & WithGranularity(const Granularity &value)
GetReservationUtilizationRequest & WithSortBy(SortDefinition &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector