AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetSavingsPlansUtilizationDetailsRequest.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/ce/model/Expression.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/ce/model/SortDefinition.h>
14#include <aws/ce/model/SavingsPlansDataType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CostExplorer
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_COSTEXPLORER_API GetSavingsPlansUtilizationDetailsRequest() = default;
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_COSTEXPLORER_API Aws::String SerializePayload() const override;
38
39 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
49 inline const DateInterval& GetTimePeriod() const { return m_timePeriod; }
50 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
51 template<typename TimePeriodT = DateInterval>
52 void SetTimePeriod(TimePeriodT&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::forward<TimePeriodT>(value); }
53 template<typename TimePeriodT = DateInterval>
54 GetSavingsPlansUtilizationDetailsRequest& WithTimePeriod(TimePeriodT&& value) { SetTimePeriod(std::forward<TimePeriodT>(value)); return *this;}
56
58
70 inline const Expression& GetFilter() const { return m_filter; }
71 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
72 template<typename FilterT = Expression>
73 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
74 template<typename FilterT = Expression>
75 GetSavingsPlansUtilizationDetailsRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
77
79
82 inline const Aws::Vector<SavingsPlansDataType>& GetDataType() const { return m_dataType; }
83 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
84 template<typename DataTypeT = Aws::Vector<SavingsPlansDataType>>
85 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
86 template<typename DataTypeT = Aws::Vector<SavingsPlansDataType>>
87 GetSavingsPlansUtilizationDetailsRequest& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
88 inline GetSavingsPlansUtilizationDetailsRequest& AddDataType(SavingsPlansDataType value) { m_dataTypeHasBeenSet = true; m_dataType.push_back(value); return *this; }
90
92
97 inline const Aws::String& GetNextToken() const { return m_nextToken; }
98 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
99 template<typename NextTokenT = Aws::String>
100 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
101 template<typename NextTokenT = Aws::String>
102 GetSavingsPlansUtilizationDetailsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
104
106
110 inline int GetMaxResults() const { return m_maxResults; }
111 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
112 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
115
117
129 inline const SortDefinition& GetSortBy() const { return m_sortBy; }
130 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
131 template<typename SortByT = SortDefinition>
132 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
133 template<typename SortByT = SortDefinition>
134 GetSavingsPlansUtilizationDetailsRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
136 private:
137
138 DateInterval m_timePeriod;
139 bool m_timePeriodHasBeenSet = false;
140
141 Expression m_filter;
142 bool m_filterHasBeenSet = false;
143
145 bool m_dataTypeHasBeenSet = false;
146
147 Aws::String m_nextToken;
148 bool m_nextTokenHasBeenSet = false;
149
150 int m_maxResults{0};
151 bool m_maxResultsHasBeenSet = false;
152
153 SortDefinition m_sortBy;
154 bool m_sortByHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace CostExplorer
159} // namespace Aws
GetSavingsPlansUtilizationDetailsRequest & WithDataType(DataTypeT &&value)
GetSavingsPlansUtilizationDetailsRequest & AddDataType(SavingsPlansDataType value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetSavingsPlansUtilizationDetailsRequest & WithNextToken(NextTokenT &&value)
GetSavingsPlansUtilizationDetailsRequest & WithTimePeriod(TimePeriodT &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
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