AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBillingViewRequest.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/BillingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/billing/model/Expression.h>
12#include <aws/billing/model/ResourceTag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Billing
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BILLING_API CreateBillingViewRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateBillingView"; }
35
36 AWS_BILLING_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateBillingViewRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 CreateBillingViewRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
70 inline const Aws::Vector<Aws::String>& GetSourceViews() const { return m_sourceViews; }
71 inline bool SourceViewsHasBeenSet() const { return m_sourceViewsHasBeenSet; }
72 template<typename SourceViewsT = Aws::Vector<Aws::String>>
73 void SetSourceViews(SourceViewsT&& value) { m_sourceViewsHasBeenSet = true; m_sourceViews = std::forward<SourceViewsT>(value); }
74 template<typename SourceViewsT = Aws::Vector<Aws::String>>
75 CreateBillingViewRequest& WithSourceViews(SourceViewsT&& value) { SetSourceViews(std::forward<SourceViewsT>(value)); return *this;}
76 template<typename SourceViewsT = Aws::String>
77 CreateBillingViewRequest& AddSourceViews(SourceViewsT&& value) { m_sourceViewsHasBeenSet = true; m_sourceViews.emplace_back(std::forward<SourceViewsT>(value)); return *this; }
79
81
87 inline const Expression& GetDataFilterExpression() const { return m_dataFilterExpression; }
88 inline bool DataFilterExpressionHasBeenSet() const { return m_dataFilterExpressionHasBeenSet; }
89 template<typename DataFilterExpressionT = Expression>
90 void SetDataFilterExpression(DataFilterExpressionT&& value) { m_dataFilterExpressionHasBeenSet = true; m_dataFilterExpression = std::forward<DataFilterExpressionT>(value); }
91 template<typename DataFilterExpressionT = Expression>
92 CreateBillingViewRequest& WithDataFilterExpression(DataFilterExpressionT&& value) { SetDataFilterExpression(std::forward<DataFilterExpressionT>(value)); return *this;}
94
96
103 inline const Aws::String& GetClientToken() const { return m_clientToken; }
104 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
105 template<typename ClientTokenT = Aws::String>
106 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
107 template<typename ClientTokenT = Aws::String>
108 CreateBillingViewRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
110
112
116 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
117 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
118 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
119 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
120 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
121 CreateBillingViewRequest& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
122 template<typename ResourceTagsT = ResourceTag>
123 CreateBillingViewRequest& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
125 private:
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_sourceViews;
134 bool m_sourceViewsHasBeenSet = false;
135
136 Expression m_dataFilterExpression;
137 bool m_dataFilterExpressionHasBeenSet = false;
138
140 bool m_clientTokenHasBeenSet = true;
141
142 Aws::Vector<ResourceTag> m_resourceTags;
143 bool m_resourceTagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace Billing
148} // 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