AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
CreateDistributionConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/imagebuilder/ImagebuilderRequest.h>
12#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
13#include <aws/imagebuilder/model/Distribution.h>
14
15#include <utility>
16
17namespace Aws {
18namespace imagebuilder {
19namespace Model {
20
24 public:
25 AWS_IMAGEBUILDER_API CreateDistributionConfigurationRequest() = 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 "CreateDistributionConfiguration"; }
32
33 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
34
36
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::Vector<Distribution>& GetDistributions() const { return m_distributions; }
82 inline bool DistributionsHasBeenSet() const { return m_distributionsHasBeenSet; }
83 template <typename DistributionsT = Aws::Vector<Distribution>>
84 void SetDistributions(DistributionsT&& value) {
85 m_distributionsHasBeenSet = true;
86 m_distributions = std::forward<DistributionsT>(value);
87 }
88 template <typename DistributionsT = Aws::Vector<Distribution>>
90 SetDistributions(std::forward<DistributionsT>(value));
91 return *this;
92 }
93 template <typename DistributionsT = Distribution>
95 m_distributionsHasBeenSet = true;
96 m_distributions.emplace_back(std::forward<DistributionsT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags = std::forward<TagsT>(value);
111 }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
114 SetTags(std::forward<TagsT>(value));
115 return *this;
116 }
117 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
118 CreateDistributionConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
121 return *this;
122 }
124
126
134 inline const Aws::String& GetClientToken() const { return m_clientToken; }
135 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
136 template <typename ClientTokenT = Aws::String>
137 void SetClientToken(ClientTokenT&& value) {
138 m_clientTokenHasBeenSet = true;
139 m_clientToken = std::forward<ClientTokenT>(value);
140 }
141 template <typename ClientTokenT = Aws::String>
143 SetClientToken(std::forward<ClientTokenT>(value));
144 return *this;
145 }
147
149
154 inline bool GetDryRun() const { return m_dryRun; }
155 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
156 inline void SetDryRun(bool value) {
157 m_dryRunHasBeenSet = true;
158 m_dryRun = value;
159 }
161 SetDryRun(value);
162 return *this;
163 }
165 private:
166 Aws::String m_name;
167
168 Aws::String m_description;
169
170 Aws::Vector<Distribution> m_distributions;
171
173
175
176 bool m_dryRun{false};
177 bool m_nameHasBeenSet = false;
178 bool m_descriptionHasBeenSet = false;
179 bool m_distributionsHasBeenSet = false;
180 bool m_tagsHasBeenSet = false;
181 bool m_clientTokenHasBeenSet = true;
182 bool m_dryRunHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace imagebuilder
187} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateDistributionConfigurationRequest & AddDistributions(DistributionsT &&value)
CreateDistributionConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
CreateDistributionConfigurationRequest & WithClientToken(ClientTokenT &&value)
CreateDistributionConfigurationRequest & WithDistributions(DistributionsT &&value)
CreateDistributionConfigurationRequest & WithDescription(DescriptionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector