AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
52 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
54 inline GetSavingsPlansUtilizationDetailsRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
56
58
70 inline const Expression& GetFilter() const{ return m_filter; }
71 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
72 inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
73 inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
74 inline GetSavingsPlansUtilizationDetailsRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
75 inline GetSavingsPlansUtilizationDetailsRequest& WithFilter(Expression&& value) { SetFilter(std::move(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 inline void SetDataType(const Aws::Vector<SavingsPlansDataType>& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
85 inline void SetDataType(Aws::Vector<SavingsPlansDataType>&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
88 inline GetSavingsPlansUtilizationDetailsRequest& AddDataType(const SavingsPlansDataType& value) { m_dataTypeHasBeenSet = true; m_dataType.push_back(value); return *this; }
89 inline GetSavingsPlansUtilizationDetailsRequest& AddDataType(SavingsPlansDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType.push_back(std::move(value)); return *this; }
91
93
98 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
101 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
102 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
104 inline GetSavingsPlansUtilizationDetailsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
105 inline GetSavingsPlansUtilizationDetailsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107
109
113 inline int GetMaxResults() const{ return m_maxResults; }
114 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
115 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
118
120
132 inline const SortDefinition& GetSortBy() const{ return m_sortBy; }
133 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
134 inline void SetSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
135 inline void SetSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
137 inline GetSavingsPlansUtilizationDetailsRequest& WithSortBy(SortDefinition&& value) { SetSortBy(std::move(value)); return *this;}
139 private:
140
141 DateInterval m_timePeriod;
142 bool m_timePeriodHasBeenSet = false;
143
144 Expression m_filter;
145 bool m_filterHasBeenSet = false;
146
148 bool m_dataTypeHasBeenSet = false;
149
150 Aws::String m_nextToken;
151 bool m_nextTokenHasBeenSet = false;
152
153 int m_maxResults;
154 bool m_maxResultsHasBeenSet = false;
155
156 SortDefinition m_sortBy;
157 bool m_sortByHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace CostExplorer
162} // namespace Aws
GetSavingsPlansUtilizationDetailsRequest & WithTimePeriod(const DateInterval &value)
GetSavingsPlansUtilizationDetailsRequest & WithNextToken(const Aws::String &value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetSavingsPlansUtilizationDetailsRequest & WithNextToken(const char *value)
GetSavingsPlansUtilizationDetailsRequest & WithNextToken(Aws::String &&value)
GetSavingsPlansUtilizationDetailsRequest & WithSortBy(SortDefinition &&value)
GetSavingsPlansUtilizationDetailsRequest & WithTimePeriod(DateInterval &&value)
GetSavingsPlansUtilizationDetailsRequest & WithSortBy(const SortDefinition &value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetSavingsPlansUtilizationDetailsRequest & WithDataType(Aws::Vector< SavingsPlansDataType > &&value)
GetSavingsPlansUtilizationDetailsRequest & AddDataType(const SavingsPlansDataType &value)
GetSavingsPlansUtilizationDetailsRequest & AddDataType(SavingsPlansDataType &&value)
GetSavingsPlansUtilizationDetailsRequest & WithDataType(const Aws::Vector< SavingsPlansDataType > &value)
GetSavingsPlansUtilizationDetailsRequest & WithFilter(Expression &&value)
GetSavingsPlansUtilizationDetailsRequest & WithFilter(const Expression &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