AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeSavingsPlanRatesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/savingsplans/SavingsPlansRequest.h>
10#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
11#include <aws/savingsplans/model/SavingsPlanRateFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SavingsPlans {
17namespace Model {
18
22 public:
23 AWS_SAVINGSPLANS_API DescribeSavingsPlanRatesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeSavingsPlanRates"; }
30
31 AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetSavingsPlanId() const { return m_savingsPlanId; }
38 inline bool SavingsPlanIdHasBeenSet() const { return m_savingsPlanIdHasBeenSet; }
39 template <typename SavingsPlanIdT = Aws::String>
40 void SetSavingsPlanId(SavingsPlanIdT&& value) {
41 m_savingsPlanIdHasBeenSet = true;
42 m_savingsPlanId = std::forward<SavingsPlanIdT>(value);
43 }
44 template <typename SavingsPlanIdT = Aws::String>
46 SetSavingsPlanId(std::forward<SavingsPlanIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<SavingsPlanRateFilter>& GetFilters() const { return m_filters; }
56 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
57 template <typename FiltersT = Aws::Vector<SavingsPlanRateFilter>>
58 void SetFilters(FiltersT&& value) {
59 m_filtersHasBeenSet = true;
60 m_filters = std::forward<FiltersT>(value);
61 }
62 template <typename FiltersT = Aws::Vector<SavingsPlanRateFilter>>
64 SetFilters(std::forward<FiltersT>(value));
65 return *this;
66 }
67 template <typename FiltersT = SavingsPlanRateFilter>
69 m_filtersHasBeenSet = true;
70 m_filters.emplace_back(std::forward<FiltersT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 template <typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) {
83 m_nextTokenHasBeenSet = true;
84 m_nextToken = std::forward<NextTokenT>(value);
85 }
86 template <typename NextTokenT = Aws::String>
88 SetNextToken(std::forward<NextTokenT>(value));
89 return *this;
90 }
92
94
98 inline int GetMaxResults() const { return m_maxResults; }
99 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
100 inline void SetMaxResults(int value) {
101 m_maxResultsHasBeenSet = true;
102 m_maxResults = value;
103 }
105 SetMaxResults(value);
106 return *this;
107 }
109 private:
110 Aws::String m_savingsPlanId;
111
113
114 Aws::String m_nextToken;
115
116 int m_maxResults{0};
117 bool m_savingsPlanIdHasBeenSet = false;
118 bool m_filtersHasBeenSet = false;
119 bool m_nextTokenHasBeenSet = false;
120 bool m_maxResultsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace SavingsPlans
125} // namespace Aws
AWS_SAVINGSPLANS_API DescribeSavingsPlanRatesRequest()=default
DescribeSavingsPlanRatesRequest & WithSavingsPlanId(SavingsPlanIdT &&value)
DescribeSavingsPlanRatesRequest & WithNextToken(NextTokenT &&value)
DescribeSavingsPlanRatesRequest & WithFilters(FiltersT &&value)
AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override
const Aws::Vector< SavingsPlanRateFilter > & GetFilters() const
DescribeSavingsPlanRatesRequest & AddFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector