AWS SDK for C++

AWS SDK for C++ Version 1.11.847

Loading...
Searching...
No Matches
GetBillingPreferencesRequest.h
1
6#pragma once
7#include <aws/billing/BillingRequest.h>
8#include <aws/billing/Billing_EXPORTS.h>
9#include <aws/billing/model/BillingFeature.h>
10#include <aws/billing/model/BillingFeatureFilter.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Billing {
18namespace Model {
19
23 public:
24 AWS_BILLING_API GetBillingPreferencesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetBillingPreferences"; }
31
32 AWS_BILLING_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetNextToken() const { return m_nextToken; }
42 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
43 template <typename NextTokenT = Aws::String>
44 void SetNextToken(NextTokenT&& value) {
45 m_nextTokenHasBeenSet = true;
46 m_nextToken = std::forward<NextTokenT>(value);
47 }
48 template <typename NextTokenT = Aws::String>
50 SetNextToken(std::forward<NextTokenT>(value));
51 return *this;
52 }
54
56
60 inline int GetMaxResults() const { return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) {
63 m_maxResultsHasBeenSet = true;
64 m_maxResults = value;
65 }
67 SetMaxResults(value);
68 return *this;
69 }
71
73
80 inline const Aws::Vector<BillingFeature>& GetFeatures() const { return m_features; }
81 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
82 template <typename FeaturesT = Aws::Vector<BillingFeature>>
83 void SetFeatures(FeaturesT&& value) {
84 m_featuresHasBeenSet = true;
85 m_features = std::forward<FeaturesT>(value);
86 }
87 template <typename FeaturesT = Aws::Vector<BillingFeature>>
89 SetFeatures(std::forward<FeaturesT>(value));
90 return *this;
91 }
93 m_featuresHasBeenSet = true;
94 m_features.push_back(value);
95 return *this;
96 }
98
100
105 inline const Aws::Vector<BillingFeatureFilter>& GetFilters() const { return m_filters; }
106 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
107 template <typename FiltersT = Aws::Vector<BillingFeatureFilter>>
108 void SetFilters(FiltersT&& value) {
109 m_filtersHasBeenSet = true;
110 m_filters = std::forward<FiltersT>(value);
111 }
112 template <typename FiltersT = Aws::Vector<BillingFeatureFilter>>
114 SetFilters(std::forward<FiltersT>(value));
115 return *this;
116 }
117 template <typename FiltersT = BillingFeatureFilter>
119 m_filtersHasBeenSet = true;
120 m_filters.emplace_back(std::forward<FiltersT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_nextToken;
126
127 int m_maxResults{0};
128
130
132 bool m_nextTokenHasBeenSet = false;
133 bool m_maxResultsHasBeenSet = false;
134 bool m_featuresHasBeenSet = false;
135 bool m_filtersHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace Billing
140} // namespace Aws
GetBillingPreferencesRequest & WithFeatures(FeaturesT &&value)
const Aws::Vector< BillingFeatureFilter > & GetFilters() const
const Aws::Vector< BillingFeature > & GetFeatures() const
AWS_BILLING_API GetBillingPreferencesRequest()=default
AWS_BILLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetBillingPreferencesRequest & WithNextToken(NextTokenT &&value)
GetBillingPreferencesRequest & AddFeatures(BillingFeature value)
GetBillingPreferencesRequest & AddFilters(FiltersT &&value)
GetBillingPreferencesRequest & WithFilters(FiltersT &&value)
GetBillingPreferencesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
AWS_BILLING_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