AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
50 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
51 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
52 inline CreateDeploymentRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
53 inline CreateDeploymentRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
54 inline CreateDeploymentRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
56
58
61 inline const Aws::String& GetDeploymentName() const{ return m_deploymentName; }
62 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
63 inline void SetDeploymentName(const Aws::String& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = value; }
64 inline void SetDeploymentName(Aws::String&& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = std::move(value); }
65 inline void SetDeploymentName(const char* value) { m_deploymentNameHasBeenSet = true; m_deploymentName.assign(value); }
66 inline CreateDeploymentRequest& WithDeploymentName(const Aws::String& value) { SetDeploymentName(value); return *this;}
67 inline CreateDeploymentRequest& WithDeploymentName(Aws::String&& value) { SetDeploymentName(std::move(value)); return *this;}
68 inline CreateDeploymentRequest& WithDeploymentName(const char* value) { SetDeploymentName(value); return *this;}
70
72
77 inline const Aws::Map<Aws::String, ComponentDeploymentSpecification>& GetComponents() const{ return m_components; }
78 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
79 inline void SetComponents(const Aws::Map<Aws::String, ComponentDeploymentSpecification>& value) { m_componentsHasBeenSet = true; m_components = value; }
80 inline void SetComponents(Aws::Map<Aws::String, ComponentDeploymentSpecification>&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); }
83 inline CreateDeploymentRequest& AddComponents(const Aws::String& key, const ComponentDeploymentSpecification& value) { m_componentsHasBeenSet = true; m_components.emplace(key, value); return *this; }
84 inline CreateDeploymentRequest& AddComponents(Aws::String&& key, const ComponentDeploymentSpecification& value) { m_componentsHasBeenSet = true; m_components.emplace(std::move(key), value); return *this; }
85 inline CreateDeploymentRequest& AddComponents(const Aws::String& key, ComponentDeploymentSpecification&& value) { m_componentsHasBeenSet = true; m_components.emplace(key, std::move(value)); return *this; }
86 inline CreateDeploymentRequest& AddComponents(Aws::String&& key, ComponentDeploymentSpecification&& value) { m_componentsHasBeenSet = true; m_components.emplace(std::move(key), std::move(value)); return *this; }
87 inline CreateDeploymentRequest& AddComponents(const char* key, ComponentDeploymentSpecification&& value) { m_componentsHasBeenSet = true; m_components.emplace(key, std::move(value)); return *this; }
88 inline CreateDeploymentRequest& AddComponents(const char* key, const ComponentDeploymentSpecification& value) { m_componentsHasBeenSet = true; m_components.emplace(key, value); return *this; }
90
92
97 inline const DeploymentIoTJobConfiguration& GetIotJobConfiguration() const{ return m_iotJobConfiguration; }
98 inline bool IotJobConfigurationHasBeenSet() const { return m_iotJobConfigurationHasBeenSet; }
99 inline void SetIotJobConfiguration(const DeploymentIoTJobConfiguration& value) { m_iotJobConfigurationHasBeenSet = true; m_iotJobConfiguration = value; }
100 inline void SetIotJobConfiguration(DeploymentIoTJobConfiguration&& value) { m_iotJobConfigurationHasBeenSet = true; m_iotJobConfiguration = std::move(value); }
104
106
110 inline const DeploymentPolicies& GetDeploymentPolicies() const{ return m_deploymentPolicies; }
111 inline bool DeploymentPoliciesHasBeenSet() const { return m_deploymentPoliciesHasBeenSet; }
112 inline void SetDeploymentPolicies(const DeploymentPolicies& value) { m_deploymentPoliciesHasBeenSet = true; m_deploymentPolicies = value; }
113 inline void SetDeploymentPolicies(DeploymentPolicies&& value) { m_deploymentPoliciesHasBeenSet = true; m_deploymentPolicies = std::move(value); }
117
119
124 inline const Aws::String& GetParentTargetArn() const{ return m_parentTargetArn; }
125 inline bool ParentTargetArnHasBeenSet() const { return m_parentTargetArnHasBeenSet; }
126 inline void SetParentTargetArn(const Aws::String& value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn = value; }
127 inline void SetParentTargetArn(Aws::String&& value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn = std::move(value); }
128 inline void SetParentTargetArn(const char* value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn.assign(value); }
129 inline CreateDeploymentRequest& WithParentTargetArn(const Aws::String& value) { SetParentTargetArn(value); return *this;}
130 inline CreateDeploymentRequest& WithParentTargetArn(Aws::String&& value) { SetParentTargetArn(std::move(value)); return *this;}
131 inline CreateDeploymentRequest& WithParentTargetArn(const char* value) { SetParentTargetArn(value); return *this;}
133
135
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
144 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
145 inline CreateDeploymentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
146 inline CreateDeploymentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
147 inline CreateDeploymentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
148 inline CreateDeploymentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
149 inline CreateDeploymentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
150 inline CreateDeploymentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
151 inline CreateDeploymentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
152 inline CreateDeploymentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
153 inline CreateDeploymentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
155
157
166 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
167 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
168 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
169 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
170 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
171 inline CreateDeploymentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
172 inline CreateDeploymentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
173 inline CreateDeploymentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
175 private:
176
177 Aws::String m_targetArn;
178 bool m_targetArnHasBeenSet = false;
179
180 Aws::String m_deploymentName;
181 bool m_deploymentNameHasBeenSet = false;
182
184 bool m_componentsHasBeenSet = false;
185
186 DeploymentIoTJobConfiguration m_iotJobConfiguration;
187 bool m_iotJobConfigurationHasBeenSet = false;
188
189 DeploymentPolicies m_deploymentPolicies;
190 bool m_deploymentPoliciesHasBeenSet = false;
191
192 Aws::String m_parentTargetArn;
193 bool m_parentTargetArnHasBeenSet = false;
194
196 bool m_tagsHasBeenSet = false;
197
198 Aws::String m_clientToken;
199 bool m_clientTokenHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace GreengrassV2
204} // namespace Aws
CreateDeploymentRequest & WithDeploymentName(const char *value)
CreateDeploymentRequest & WithIotJobConfiguration(const DeploymentIoTJobConfiguration &value)
CreateDeploymentRequest & WithClientToken(Aws::String &&value)
CreateDeploymentRequest & WithComponents(Aws::Map< Aws::String, ComponentDeploymentSpecification > &&value)
CreateDeploymentRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateDeploymentRequest & WithDeploymentPolicies(const DeploymentPolicies &value)
void SetIotJobConfiguration(const DeploymentIoTJobConfiguration &value)
const Aws::Map< Aws::String, ComponentDeploymentSpecification > & GetComponents() const
CreateDeploymentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDeploymentRequest & AddComponents(const char *key, const ComponentDeploymentSpecification &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDeploymentRequest & WithClientToken(const Aws::String &value)
CreateDeploymentRequest & WithTargetArn(const char *value)
CreateDeploymentRequest & WithParentTargetArn(const char *value)
void SetIotJobConfiguration(DeploymentIoTJobConfiguration &&value)
CreateDeploymentRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetDeploymentPolicies(const DeploymentPolicies &value)
void SetComponents(const Aws::Map< Aws::String, ComponentDeploymentSpecification > &value)
CreateDeploymentRequest & WithIotJobConfiguration(DeploymentIoTJobConfiguration &&value)
CreateDeploymentRequest & WithClientToken(const char *value)
CreateDeploymentRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateDeploymentRequest & WithComponents(const Aws::Map< Aws::String, ComponentDeploymentSpecification > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDeploymentRequest & WithParentTargetArn(const Aws::String &value)
const DeploymentIoTJobConfiguration & GetIotJobConfiguration() const
CreateDeploymentRequest & WithDeploymentPolicies(DeploymentPolicies &&value)
CreateDeploymentRequest & AddTags(Aws::String &&key, const char *value)
CreateDeploymentRequest & WithDeploymentName(Aws::String &&value)
CreateDeploymentRequest & WithDeploymentName(const Aws::String &value)
CreateDeploymentRequest & AddComponents(const char *key, ComponentDeploymentSpecification &&value)
CreateDeploymentRequest & AddComponents(const Aws::String &key, const ComponentDeploymentSpecification &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetComponents(Aws::Map< Aws::String, ComponentDeploymentSpecification > &&value)
CreateDeploymentRequest & WithTargetArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateDeploymentRequest & AddTags(const char *key, Aws::String &&value)
CreateDeploymentRequest & AddComponents(const Aws::String &key, ComponentDeploymentSpecification &&value)
CreateDeploymentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDeploymentRequest & WithTargetArn(Aws::String &&value)
CreateDeploymentRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateDeploymentRequest & WithParentTargetArn(Aws::String &&value)
CreateDeploymentRequest & AddComponents(Aws::String &&key, const ComponentDeploymentSpecification &value)
CreateDeploymentRequest & AddTags(const char *key, const char *value)
AWS_GREENGRASSV2_API Aws::String SerializePayload() const override
CreateDeploymentRequest & AddComponents(Aws::String &&key, ComponentDeploymentSpecification &&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