AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateBillingViewRequest.h
1
6#pragma once
7#include <aws/billing/BillingRequest.h>
8#include <aws/billing/Billing_EXPORTS.h>
9#include <aws/billing/model/Expression.h>
10#include <aws/billing/model/ResourceTag.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Billing {
19namespace Model {
20
24 public:
25 AWS_BILLING_API CreateBillingViewRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateBillingView"; }
32
33 AWS_BILLING_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<Aws::String>& GetSourceViews() const { return m_sourceViews; }
79 inline bool SourceViewsHasBeenSet() const { return m_sourceViewsHasBeenSet; }
80 template <typename SourceViewsT = Aws::Vector<Aws::String>>
81 void SetSourceViews(SourceViewsT&& value) {
82 m_sourceViewsHasBeenSet = true;
83 m_sourceViews = std::forward<SourceViewsT>(value);
84 }
85 template <typename SourceViewsT = Aws::Vector<Aws::String>>
87 SetSourceViews(std::forward<SourceViewsT>(value));
88 return *this;
89 }
90 template <typename SourceViewsT = Aws::String>
92 m_sourceViewsHasBeenSet = true;
93 m_sourceViews.emplace_back(std::forward<SourceViewsT>(value));
94 return *this;
95 }
97
99
105 inline const Expression& GetDataFilterExpression() const { return m_dataFilterExpression; }
106 inline bool DataFilterExpressionHasBeenSet() const { return m_dataFilterExpressionHasBeenSet; }
107 template <typename DataFilterExpressionT = Expression>
108 void SetDataFilterExpression(DataFilterExpressionT&& value) {
109 m_dataFilterExpressionHasBeenSet = true;
110 m_dataFilterExpression = std::forward<DataFilterExpressionT>(value);
111 }
112 template <typename DataFilterExpressionT = Expression>
113 CreateBillingViewRequest& WithDataFilterExpression(DataFilterExpressionT&& value) {
114 SetDataFilterExpression(std::forward<DataFilterExpressionT>(value));
115 return *this;
116 }
118
120
127 inline const Aws::String& GetClientToken() const { return m_clientToken; }
128 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
129 template <typename ClientTokenT = Aws::String>
130 void SetClientToken(ClientTokenT&& value) {
131 m_clientTokenHasBeenSet = true;
132 m_clientToken = std::forward<ClientTokenT>(value);
133 }
134 template <typename ClientTokenT = Aws::String>
136 SetClientToken(std::forward<ClientTokenT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
147 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
148 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
149 void SetResourceTags(ResourceTagsT&& value) {
150 m_resourceTagsHasBeenSet = true;
151 m_resourceTags = std::forward<ResourceTagsT>(value);
152 }
153 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
155 SetResourceTags(std::forward<ResourceTagsT>(value));
156 return *this;
157 }
158 template <typename ResourceTagsT = ResourceTag>
160 m_resourceTagsHasBeenSet = true;
161 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_name;
167
168 Aws::String m_description;
169
170 Aws::Vector<Aws::String> m_sourceViews;
171
172 Expression m_dataFilterExpression;
173
175
176 Aws::Vector<ResourceTag> m_resourceTags;
177 bool m_nameHasBeenSet = false;
178 bool m_descriptionHasBeenSet = false;
179 bool m_sourceViewsHasBeenSet = false;
180 bool m_dataFilterExpressionHasBeenSet = false;
181 bool m_clientTokenHasBeenSet = true;
182 bool m_resourceTagsHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace Billing
187} // namespace Aws
const Aws::Vector< ResourceTag > & GetResourceTags() const
CreateBillingViewRequest & WithResourceTags(ResourceTagsT &&value)
CreateBillingViewRequest & WithName(NameT &&value)
CreateBillingViewRequest & AddResourceTags(ResourceTagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateBillingViewRequest & AddSourceViews(SourceViewsT &&value)
CreateBillingViewRequest & WithDescription(DescriptionT &&value)
AWS_BILLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBillingViewRequest & WithSourceViews(SourceViewsT &&value)
CreateBillingViewRequest & WithDataFilterExpression(DataFilterExpressionT &&value)
void SetDataFilterExpression(DataFilterExpressionT &&value)
const Aws::Vector< Aws::String > & GetSourceViews() const
AWS_BILLING_API Aws::String SerializePayload() const override
CreateBillingViewRequest & WithClientToken(ClientTokenT &&value)
AWS_BILLING_API CreateBillingViewRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
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