AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetSavingsPlansUtilizationRequest.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/Granularity.h>
11#include <aws/ce/model/Expression.h>
12#include <aws/ce/model/SortDefinition.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CostExplorer
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_COSTEXPLORER_API GetSavingsPlansUtilizationRequest() = default;
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_COSTEXPLORER_API Aws::String SerializePayload() const override;
36
37 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
47 inline const DateInterval& GetTimePeriod() const { return m_timePeriod; }
48 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
49 template<typename TimePeriodT = DateInterval>
50 void SetTimePeriod(TimePeriodT&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::forward<TimePeriodT>(value); }
51 template<typename TimePeriodT = DateInterval>
52 GetSavingsPlansUtilizationRequest& WithTimePeriod(TimePeriodT&& value) { SetTimePeriod(std::forward<TimePeriodT>(value)); return *this;}
54
56
61 inline Granularity GetGranularity() const { return m_granularity; }
62 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
63 inline void SetGranularity(Granularity value) { m_granularityHasBeenSet = true; m_granularity = value; }
66
68
80 inline const Expression& GetFilter() const { return m_filter; }
81 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
82 template<typename FilterT = Expression>
83 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
84 template<typename FilterT = Expression>
85 GetSavingsPlansUtilizationRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
87
89
99 inline const SortDefinition& GetSortBy() const { return m_sortBy; }
100 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
101 template<typename SortByT = SortDefinition>
102 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
103 template<typename SortByT = SortDefinition>
104 GetSavingsPlansUtilizationRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
106 private:
107
108 DateInterval m_timePeriod;
109 bool m_timePeriodHasBeenSet = false;
110
111 Granularity m_granularity{Granularity::NOT_SET};
112 bool m_granularityHasBeenSet = false;
113
114 Expression m_filter;
115 bool m_filterHasBeenSet = false;
116
117 SortDefinition m_sortBy;
118 bool m_sortByHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CostExplorer
123} // namespace Aws
AWS_COSTEXPLORER_API GetSavingsPlansUtilizationRequest()=default
GetSavingsPlansUtilizationRequest & WithTimePeriod(TimePeriodT &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetSavingsPlansUtilizationRequest & WithFilter(FilterT &&value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetSavingsPlansUtilizationRequest & WithSortBy(SortByT &&value)
GetSavingsPlansUtilizationRequest & WithGranularity(Granularity value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String