AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
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) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Distribution>& GetDistributions() const { return m_distributions; }
76 inline bool DistributionsHasBeenSet() const { return m_distributionsHasBeenSet; }
77 template <typename DistributionsT = Aws::Vector<Distribution>>
78 void SetDistributions(DistributionsT&& value) {
79 m_distributionsHasBeenSet = true;
80 m_distributions = std::forward<DistributionsT>(value);
81 }
82 template <typename DistributionsT = Aws::Vector<Distribution>>
84 SetDistributions(std::forward<DistributionsT>(value));
85 return *this;
86 }
87 template <typename DistributionsT = Distribution>
89 m_distributionsHasBeenSet = true;
90 m_distributions.emplace_back(std::forward<DistributionsT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 void SetTags(TagsT&& value) {
103 m_tagsHasBeenSet = true;
104 m_tags = std::forward<TagsT>(value);
105 }
106 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 SetTags(std::forward<TagsT>(value));
109 return *this;
110 }
111 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
112 CreateDistributionConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
113 m_tagsHasBeenSet = true;
114 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
115 return *this;
116 }
118
120
126 inline const Aws::String& GetClientToken() const { return m_clientToken; }
127 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
128 template <typename ClientTokenT = Aws::String>
129 void SetClientToken(ClientTokenT&& value) {
130 m_clientTokenHasBeenSet = true;
131 m_clientToken = std::forward<ClientTokenT>(value);
132 }
133 template <typename ClientTokenT = Aws::String>
135 SetClientToken(std::forward<ClientTokenT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_name;
141
142 Aws::String m_description;
143
144 Aws::Vector<Distribution> m_distributions;
145
147
149 bool m_nameHasBeenSet = false;
150 bool m_descriptionHasBeenSet = false;
151 bool m_distributionsHasBeenSet = false;
152 bool m_tagsHasBeenSet = false;
153 bool m_clientTokenHasBeenSet = true;
154};
155
156} // namespace Model
157} // namespace imagebuilder
158} // 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