AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
50 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
51 inline GetSavingsPlansUtilizationRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
52 inline GetSavingsPlansUtilizationRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
54
56
61 inline const Granularity& GetGranularity() const{ return m_granularity; }
62 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
63 inline void SetGranularity(const Granularity& value) { m_granularityHasBeenSet = true; m_granularity = value; }
64 inline void SetGranularity(Granularity&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
65 inline GetSavingsPlansUtilizationRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;}
66 inline GetSavingsPlansUtilizationRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;}
68
70
82 inline const Expression& GetFilter() const{ return m_filter; }
83 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
84 inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
85 inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
86 inline GetSavingsPlansUtilizationRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
87 inline GetSavingsPlansUtilizationRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
89
91
101 inline const SortDefinition& GetSortBy() const{ return m_sortBy; }
102 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
103 inline void SetSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
104 inline void SetSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
105 inline GetSavingsPlansUtilizationRequest& WithSortBy(const SortDefinition& value) { SetSortBy(value); return *this;}
106 inline GetSavingsPlansUtilizationRequest& WithSortBy(SortDefinition&& value) { SetSortBy(std::move(value)); return *this;}
108 private:
109
110 DateInterval m_timePeriod;
111 bool m_timePeriodHasBeenSet = false;
112
113 Granularity m_granularity;
114 bool m_granularityHasBeenSet = false;
115
116 Expression m_filter;
117 bool m_filterHasBeenSet = false;
118
119 SortDefinition m_sortBy;
120 bool m_sortByHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace CostExplorer
125} // namespace Aws
GetSavingsPlansUtilizationRequest & WithTimePeriod(const DateInterval &value)
GetSavingsPlansUtilizationRequest & WithTimePeriod(DateInterval &&value)
GetSavingsPlansUtilizationRequest & WithGranularity(const Granularity &value)
GetSavingsPlansUtilizationRequest & WithGranularity(Granularity &&value)
GetSavingsPlansUtilizationRequest & WithFilter(Expression &&value)
GetSavingsPlansUtilizationRequest & WithSortBy(SortDefinition &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetSavingsPlansUtilizationRequest & WithFilter(const Expression &value)
GetSavingsPlansUtilizationRequest & WithSortBy(const SortDefinition &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String