AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateDeploymentRequest.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/greengrassv2/GreengrassV2Request.h>
11#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
12#include <aws/greengrassv2/model/ComponentDeploymentSpecification.h>
13#include <aws/greengrassv2/model/DeploymentIoTJobConfiguration.h>
14#include <aws/greengrassv2/model/DeploymentPolicies.h>
15
16#include <utility>
17
18namespace Aws {
19namespace GreengrassV2 {
20namespace Model {
21
25 public:
26 AWS_GREENGRASSV2_API CreateDeploymentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
33
34 AWS_GREENGRASSV2_API Aws::String SerializePayload() const override;
35
37
43 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
44 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
45 template <typename TargetArnT = Aws::String>
46 void SetTargetArn(TargetArnT&& value) {
47 m_targetArnHasBeenSet = true;
48 m_targetArn = std::forward<TargetArnT>(value);
49 }
50 template <typename TargetArnT = Aws::String>
52 SetTargetArn(std::forward<TargetArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
62 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
63 template <typename DeploymentNameT = Aws::String>
64 void SetDeploymentName(DeploymentNameT&& value) {
65 m_deploymentNameHasBeenSet = true;
66 m_deploymentName = std::forward<DeploymentNameT>(value);
67 }
68 template <typename DeploymentNameT = Aws::String>
69 CreateDeploymentRequest& WithDeploymentName(DeploymentNameT&& value) {
70 SetDeploymentName(std::forward<DeploymentNameT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::Map<Aws::String, ComponentDeploymentSpecification>& GetComponents() const { return m_components; }
82 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
83 template <typename ComponentsT = Aws::Map<Aws::String, ComponentDeploymentSpecification>>
84 void SetComponents(ComponentsT&& value) {
85 m_componentsHasBeenSet = true;
86 m_components = std::forward<ComponentsT>(value);
87 }
88 template <typename ComponentsT = Aws::Map<Aws::String, ComponentDeploymentSpecification>>
90 SetComponents(std::forward<ComponentsT>(value));
91 return *this;
92 }
93 template <typename ComponentsKeyT = Aws::String, typename ComponentsValueT = ComponentDeploymentSpecification>
94 CreateDeploymentRequest& AddComponents(ComponentsKeyT&& key, ComponentsValueT&& value) {
95 m_componentsHasBeenSet = true;
96 m_components.emplace(std::forward<ComponentsKeyT>(key), std::forward<ComponentsValueT>(value));
97 return *this;
98 }
100
102
107 inline const DeploymentIoTJobConfiguration& GetIotJobConfiguration() const { return m_iotJobConfiguration; }
108 inline bool IotJobConfigurationHasBeenSet() const { return m_iotJobConfigurationHasBeenSet; }
109 template <typename IotJobConfigurationT = DeploymentIoTJobConfiguration>
110 void SetIotJobConfiguration(IotJobConfigurationT&& value) {
111 m_iotJobConfigurationHasBeenSet = true;
112 m_iotJobConfiguration = std::forward<IotJobConfigurationT>(value);
113 }
114 template <typename IotJobConfigurationT = DeploymentIoTJobConfiguration>
115 CreateDeploymentRequest& WithIotJobConfiguration(IotJobConfigurationT&& value) {
116 SetIotJobConfiguration(std::forward<IotJobConfigurationT>(value));
117 return *this;
118 }
120
122
126 inline const DeploymentPolicies& GetDeploymentPolicies() const { return m_deploymentPolicies; }
127 inline bool DeploymentPoliciesHasBeenSet() const { return m_deploymentPoliciesHasBeenSet; }
128 template <typename DeploymentPoliciesT = DeploymentPolicies>
129 void SetDeploymentPolicies(DeploymentPoliciesT&& value) {
130 m_deploymentPoliciesHasBeenSet = true;
131 m_deploymentPolicies = std::forward<DeploymentPoliciesT>(value);
132 }
133 template <typename DeploymentPoliciesT = DeploymentPolicies>
134 CreateDeploymentRequest& WithDeploymentPolicies(DeploymentPoliciesT&& value) {
135 SetDeploymentPolicies(std::forward<DeploymentPoliciesT>(value));
136 return *this;
137 }
139
141
146 inline const Aws::String& GetParentTargetArn() const { return m_parentTargetArn; }
147 inline bool ParentTargetArnHasBeenSet() const { return m_parentTargetArnHasBeenSet; }
148 template <typename ParentTargetArnT = Aws::String>
149 void SetParentTargetArn(ParentTargetArnT&& value) {
150 m_parentTargetArnHasBeenSet = true;
151 m_parentTargetArn = std::forward<ParentTargetArnT>(value);
152 }
153 template <typename ParentTargetArnT = Aws::String>
154 CreateDeploymentRequest& WithParentTargetArn(ParentTargetArnT&& value) {
155 SetParentTargetArn(std::forward<ParentTargetArnT>(value));
156 return *this;
157 }
159
161
167 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 void SetTags(TagsT&& value) {
171 m_tagsHasBeenSet = true;
172 m_tags = std::forward<TagsT>(value);
173 }
174 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 SetTags(std::forward<TagsT>(value));
177 return *this;
178 }
179 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
180 CreateDeploymentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
181 m_tagsHasBeenSet = true;
182 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
183 return *this;
184 }
186
188
197 inline const Aws::String& GetClientToken() const { return m_clientToken; }
198 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
199 template <typename ClientTokenT = Aws::String>
200 void SetClientToken(ClientTokenT&& value) {
201 m_clientTokenHasBeenSet = true;
202 m_clientToken = std::forward<ClientTokenT>(value);
203 }
204 template <typename ClientTokenT = Aws::String>
206 SetClientToken(std::forward<ClientTokenT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_targetArn;
212
213 Aws::String m_deploymentName;
214
216
217 DeploymentIoTJobConfiguration m_iotJobConfiguration;
218
219 DeploymentPolicies m_deploymentPolicies;
220
221 Aws::String m_parentTargetArn;
222
224
226 bool m_targetArnHasBeenSet = false;
227 bool m_deploymentNameHasBeenSet = false;
228 bool m_componentsHasBeenSet = false;
229 bool m_iotJobConfigurationHasBeenSet = false;
230 bool m_deploymentPoliciesHasBeenSet = false;
231 bool m_parentTargetArnHasBeenSet = false;
232 bool m_tagsHasBeenSet = false;
233 bool m_clientTokenHasBeenSet = true;
234};
235
236} // namespace Model
237} // namespace GreengrassV2
238} // namespace Aws
CreateDeploymentRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, ComponentDeploymentSpecification > & GetComponents() const
CreateDeploymentRequest & WithTargetArn(TargetArnT &&value)
AWS_GREENGRASSV2_API CreateDeploymentRequest()=default
CreateDeploymentRequest & WithIotJobConfiguration(IotJobConfigurationT &&value)
const DeploymentIoTJobConfiguration & GetIotJobConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDeploymentRequest & WithParentTargetArn(ParentTargetArnT &&value)
CreateDeploymentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDeploymentRequest & WithComponents(ComponentsT &&value)
CreateDeploymentRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateDeploymentRequest & WithDeploymentPolicies(DeploymentPoliciesT &&value)
void SetIotJobConfiguration(IotJobConfigurationT &&value)
CreateDeploymentRequest & AddComponents(ComponentsKeyT &&key, ComponentsValueT &&value)
CreateDeploymentRequest & WithDeploymentName(DeploymentNameT &&value)
AWS_GREENGRASSV2_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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