AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/greengrassv2/GreengrassV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/greengrassv2/model/DeploymentIoTJobConfiguration.h>
12#include <aws/greengrassv2/model/DeploymentPolicies.h>
13#include <aws/greengrassv2/model/ComponentDeploymentSpecification.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace GreengrassV2
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_GREENGRASSV2_API CreateDeploymentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
36
37 AWS_GREENGRASSV2_API Aws::String SerializePayload() const override;
38
39
41
47 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
48 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
49 template<typename TargetArnT = Aws::String>
50 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
51 template<typename TargetArnT = Aws::String>
52 CreateDeploymentRequest& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
60 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
61 template<typename DeploymentNameT = Aws::String>
62 void SetDeploymentName(DeploymentNameT&& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = std::forward<DeploymentNameT>(value); }
63 template<typename DeploymentNameT = Aws::String>
64 CreateDeploymentRequest& WithDeploymentName(DeploymentNameT&& value) { SetDeploymentName(std::forward<DeploymentNameT>(value)); return *this;}
66
68
73 inline const Aws::Map<Aws::String, ComponentDeploymentSpecification>& GetComponents() const { return m_components; }
74 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
75 template<typename ComponentsT = Aws::Map<Aws::String, ComponentDeploymentSpecification>>
76 void SetComponents(ComponentsT&& value) { m_componentsHasBeenSet = true; m_components = std::forward<ComponentsT>(value); }
77 template<typename ComponentsT = Aws::Map<Aws::String, ComponentDeploymentSpecification>>
78 CreateDeploymentRequest& WithComponents(ComponentsT&& value) { SetComponents(std::forward<ComponentsT>(value)); return *this;}
79 template<typename ComponentsKeyT = Aws::String, typename ComponentsValueT = ComponentDeploymentSpecification>
80 CreateDeploymentRequest& AddComponents(ComponentsKeyT&& key, ComponentsValueT&& value) {
81 m_componentsHasBeenSet = true; m_components.emplace(std::forward<ComponentsKeyT>(key), std::forward<ComponentsValueT>(value)); return *this;
82 }
84
86
91 inline const DeploymentIoTJobConfiguration& GetIotJobConfiguration() const { return m_iotJobConfiguration; }
92 inline bool IotJobConfigurationHasBeenSet() const { return m_iotJobConfigurationHasBeenSet; }
93 template<typename IotJobConfigurationT = DeploymentIoTJobConfiguration>
94 void SetIotJobConfiguration(IotJobConfigurationT&& value) { m_iotJobConfigurationHasBeenSet = true; m_iotJobConfiguration = std::forward<IotJobConfigurationT>(value); }
95 template<typename IotJobConfigurationT = DeploymentIoTJobConfiguration>
96 CreateDeploymentRequest& WithIotJobConfiguration(IotJobConfigurationT&& value) { SetIotJobConfiguration(std::forward<IotJobConfigurationT>(value)); return *this;}
98
100
104 inline const DeploymentPolicies& GetDeploymentPolicies() const { return m_deploymentPolicies; }
105 inline bool DeploymentPoliciesHasBeenSet() const { return m_deploymentPoliciesHasBeenSet; }
106 template<typename DeploymentPoliciesT = DeploymentPolicies>
107 void SetDeploymentPolicies(DeploymentPoliciesT&& value) { m_deploymentPoliciesHasBeenSet = true; m_deploymentPolicies = std::forward<DeploymentPoliciesT>(value); }
108 template<typename DeploymentPoliciesT = DeploymentPolicies>
109 CreateDeploymentRequest& WithDeploymentPolicies(DeploymentPoliciesT&& value) { SetDeploymentPolicies(std::forward<DeploymentPoliciesT>(value)); return *this;}
111
113
118 inline const Aws::String& GetParentTargetArn() const { return m_parentTargetArn; }
119 inline bool ParentTargetArnHasBeenSet() const { return m_parentTargetArnHasBeenSet; }
120 template<typename ParentTargetArnT = Aws::String>
121 void SetParentTargetArn(ParentTargetArnT&& value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn = std::forward<ParentTargetArnT>(value); }
122 template<typename ParentTargetArnT = Aws::String>
123 CreateDeploymentRequest& WithParentTargetArn(ParentTargetArnT&& value) { SetParentTargetArn(std::forward<ParentTargetArnT>(value)); return *this;}
125
127
133 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
137 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 CreateDeploymentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
139 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
140 CreateDeploymentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
141 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
142 }
144
146
155 inline const Aws::String& GetClientToken() const { return m_clientToken; }
156 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
157 template<typename ClientTokenT = Aws::String>
158 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
159 template<typename ClientTokenT = Aws::String>
160 CreateDeploymentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
162 private:
163
164 Aws::String m_targetArn;
165 bool m_targetArnHasBeenSet = false;
166
167 Aws::String m_deploymentName;
168 bool m_deploymentNameHasBeenSet = false;
169
171 bool m_componentsHasBeenSet = false;
172
173 DeploymentIoTJobConfiguration m_iotJobConfiguration;
174 bool m_iotJobConfigurationHasBeenSet = false;
175
176 DeploymentPolicies m_deploymentPolicies;
177 bool m_deploymentPoliciesHasBeenSet = false;
178
179 Aws::String m_parentTargetArn;
180 bool m_parentTargetArnHasBeenSet = false;
181
183 bool m_tagsHasBeenSet = false;
184
186 bool m_clientTokenHasBeenSet = true;
187 };
188
189} // namespace Model
190} // namespace GreengrassV2
191} // 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