AWS SDK for C++  1.9.106
AWS SDK for C++
CreateDeploymentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace OpsWorks
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetStackId() const{ return m_stackId; }
43 
47  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
48 
52  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
53 
57  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
58 
62  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
63 
67  inline CreateDeploymentRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
68 
72  inline CreateDeploymentRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
73 
77  inline CreateDeploymentRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
78 
79 
84  inline const Aws::String& GetAppId() const{ return m_appId; }
85 
90  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
91 
96  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
97 
102  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
103 
108  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
109 
114  inline CreateDeploymentRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
115 
120  inline CreateDeploymentRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
121 
126  inline CreateDeploymentRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
127 
128 
132  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
133 
137  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
138 
142  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
143 
147  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
148 
152  inline CreateDeploymentRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
153 
157  inline CreateDeploymentRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
158 
162  inline CreateDeploymentRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
163 
167  inline CreateDeploymentRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
168 
172  inline CreateDeploymentRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
173 
174 
178  inline const Aws::Vector<Aws::String>& GetLayerIds() const{ return m_layerIds; }
179 
183  inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; }
184 
188  inline void SetLayerIds(const Aws::Vector<Aws::String>& value) { m_layerIdsHasBeenSet = true; m_layerIds = value; }
189 
193  inline void SetLayerIds(Aws::Vector<Aws::String>&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::move(value); }
194 
198  inline CreateDeploymentRequest& WithLayerIds(const Aws::Vector<Aws::String>& value) { SetLayerIds(value); return *this;}
199 
203  inline CreateDeploymentRequest& WithLayerIds(Aws::Vector<Aws::String>&& value) { SetLayerIds(std::move(value)); return *this;}
204 
208  inline CreateDeploymentRequest& AddLayerIds(const Aws::String& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
209 
213  inline CreateDeploymentRequest& AddLayerIds(Aws::String&& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(std::move(value)); return *this; }
214 
218  inline CreateDeploymentRequest& AddLayerIds(const char* value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
219 
220 
225  inline const DeploymentCommand& GetCommand() const{ return m_command; }
226 
231  inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
232 
237  inline void SetCommand(const DeploymentCommand& value) { m_commandHasBeenSet = true; m_command = value; }
238 
243  inline void SetCommand(DeploymentCommand&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
244 
249  inline CreateDeploymentRequest& WithCommand(const DeploymentCommand& value) { SetCommand(value); return *this;}
250 
255  inline CreateDeploymentRequest& WithCommand(DeploymentCommand&& value) { SetCommand(std::move(value)); return *this;}
256 
257 
261  inline const Aws::String& GetComment() const{ return m_comment; }
262 
266  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
267 
271  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
272 
276  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
277 
281  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
282 
286  inline CreateDeploymentRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
287 
291  inline CreateDeploymentRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
292 
296  inline CreateDeploymentRequest& WithComment(const char* value) { SetComment(value); return *this;}
297 
298 
310  inline const Aws::String& GetCustomJson() const{ return m_customJson; }
311 
323  inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
324 
336  inline void SetCustomJson(const Aws::String& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
337 
349  inline void SetCustomJson(Aws::String&& value) { m_customJsonHasBeenSet = true; m_customJson = std::move(value); }
350 
362  inline void SetCustomJson(const char* value) { m_customJsonHasBeenSet = true; m_customJson.assign(value); }
363 
375  inline CreateDeploymentRequest& WithCustomJson(const Aws::String& value) { SetCustomJson(value); return *this;}
376 
388  inline CreateDeploymentRequest& WithCustomJson(Aws::String&& value) { SetCustomJson(std::move(value)); return *this;}
389 
401  inline CreateDeploymentRequest& WithCustomJson(const char* value) { SetCustomJson(value); return *this;}
402 
403  private:
404 
405  Aws::String m_stackId;
406  bool m_stackIdHasBeenSet;
407 
408  Aws::String m_appId;
409  bool m_appIdHasBeenSet;
410 
411  Aws::Vector<Aws::String> m_instanceIds;
412  bool m_instanceIdsHasBeenSet;
413 
414  Aws::Vector<Aws::String> m_layerIds;
415  bool m_layerIdsHasBeenSet;
416 
417  DeploymentCommand m_command;
418  bool m_commandHasBeenSet;
419 
420  Aws::String m_comment;
421  bool m_commentHasBeenSet;
422 
423  Aws::String m_customJson;
424  bool m_customJsonHasBeenSet;
425  };
426 
427 } // namespace Model
428 } // namespace OpsWorks
429 } // namespace Aws
Aws::OpsWorks::Model::CreateDeploymentRequest::GetStackId
const Aws::String & GetStackId() const
Definition: CreateDeploymentRequest.h:42
Aws::OpsWorks::Model::CreateDeploymentRequest::WithCustomJson
CreateDeploymentRequest & WithCustomJson(Aws::String &&value)
Definition: CreateDeploymentRequest.h:388
Aws::OpsWorks::Model::CreateDeploymentRequest::SetStackId
void SetStackId(Aws::String &&value)
Definition: CreateDeploymentRequest.h:57
Aws::OpsWorks::Model::CreateDeploymentRequest::WithAppId
CreateDeploymentRequest & WithAppId(Aws::String &&value)
Definition: CreateDeploymentRequest.h:120
Aws::OpsWorks::Model::CreateDeploymentRequest::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDeploymentRequest.h:142
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::CreateDeploymentRequest::SetCustomJson
void SetCustomJson(const Aws::String &value)
Definition: CreateDeploymentRequest.h:336
Aws::OpsWorks::Model::CreateDeploymentRequest
Definition: CreateDeploymentRequest.h:24
Aws::OpsWorks::Model::CreateDeploymentRequest::WithLayerIds
CreateDeploymentRequest & WithLayerIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDeploymentRequest.h:203
Aws::OpsWorks::Model::CreateDeploymentRequest::SetStackId
void SetStackId(const Aws::String &value)
Definition: CreateDeploymentRequest.h:52
Aws::OpsWorks::Model::CreateDeploymentRequest::GetAppId
const Aws::String & GetAppId() const
Definition: CreateDeploymentRequest.h:84
Aws::OpsWorks::Model::CreateDeploymentRequest::AddInstanceIds
CreateDeploymentRequest & AddInstanceIds(Aws::String &&value)
Definition: CreateDeploymentRequest.h:167
DeploymentCommand.h
Aws::OpsWorks::Model::CreateDeploymentRequest::SetComment
void SetComment(const char *value)
Definition: CreateDeploymentRequest.h:281
Aws::OpsWorks::Model::CreateDeploymentRequest::CommandHasBeenSet
bool CommandHasBeenSet() const
Definition: CreateDeploymentRequest.h:231
Aws::OpsWorks::Model::CreateDeploymentRequest::GetComment
const Aws::String & GetComment() const
Definition: CreateDeploymentRequest.h:261
Aws::OpsWorks::Model::CreateDeploymentRequest::WithCommand
CreateDeploymentRequest & WithCommand(const DeploymentCommand &value)
Definition: CreateDeploymentRequest.h:249
Aws::OpsWorks::Model::CreateDeploymentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::CreateDeploymentRequest::GetCommand
const DeploymentCommand & GetCommand() const
Definition: CreateDeploymentRequest.h:225
Aws::OpsWorks::Model::CreateDeploymentRequest::SetComment
void SetComment(const Aws::String &value)
Definition: CreateDeploymentRequest.h:271
Aws::OpsWorks::Model::CreateDeploymentRequest::WithAppId
CreateDeploymentRequest & WithAppId(const Aws::String &value)
Definition: CreateDeploymentRequest.h:114
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::OpsWorks::Model::CreateDeploymentRequest::WithStackId
CreateDeploymentRequest & WithStackId(Aws::String &&value)
Definition: CreateDeploymentRequest.h:72
Aws::OpsWorks::Model::CreateDeploymentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDeploymentRequest.h:32
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::CreateDeploymentRequest::AddInstanceIds
CreateDeploymentRequest & AddInstanceIds(const Aws::String &value)
Definition: CreateDeploymentRequest.h:162
Aws::OpsWorks::Model::CreateDeploymentRequest::SetCommand
void SetCommand(DeploymentCommand &&value)
Definition: CreateDeploymentRequest.h:243
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::CreateDeploymentRequest::WithInstanceIds
CreateDeploymentRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDeploymentRequest.h:157
Aws::OpsWorks::Model::CreateDeploymentRequest::AddLayerIds
CreateDeploymentRequest & AddLayerIds(const char *value)
Definition: CreateDeploymentRequest.h:218
Aws::OpsWorks::Model::CreateDeploymentRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: CreateDeploymentRequest.h:90
OpsWorksRequest.h
Aws::OpsWorks::Model::CreateDeploymentRequest::SetStackId
void SetStackId(const char *value)
Definition: CreateDeploymentRequest.h:62
Aws::OpsWorks::Model::CreateDeploymentRequest::CreateDeploymentRequest
CreateDeploymentRequest()
Aws::OpsWorks::Model::CreateDeploymentRequest::SetCommand
void SetCommand(const DeploymentCommand &value)
Definition: CreateDeploymentRequest.h:237
Aws::OpsWorks::Model::CreateDeploymentRequest::WithCustomJson
CreateDeploymentRequest & WithCustomJson(const Aws::String &value)
Definition: CreateDeploymentRequest.h:375
Aws::OpsWorks::Model::CreateDeploymentRequest::SetCustomJson
void SetCustomJson(Aws::String &&value)
Definition: CreateDeploymentRequest.h:349
Aws::OpsWorks::Model::CreateDeploymentRequest::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: CreateDeploymentRequest.h:137
AWSString.h
Aws::OpsWorks::Model::CreateDeploymentRequest::WithCustomJson
CreateDeploymentRequest & WithCustomJson(const char *value)
Definition: CreateDeploymentRequest.h:401
Aws::OpsWorks::Model::CreateDeploymentRequest::GetLayerIds
const Aws::Vector< Aws::String > & GetLayerIds() const
Definition: CreateDeploymentRequest.h:178
Aws::OpsWorks::Model::CreateDeploymentRequest::LayerIdsHasBeenSet
bool LayerIdsHasBeenSet() const
Definition: CreateDeploymentRequest.h:183
Aws::OpsWorks::Model::CreateDeploymentRequest::WithStackId
CreateDeploymentRequest & WithStackId(const char *value)
Definition: CreateDeploymentRequest.h:77
Aws::OpsWorks::Model::CreateDeploymentRequest::SetLayerIds
void SetLayerIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDeploymentRequest.h:193
Aws::OpsWorks::Model::CreateDeploymentRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: CreateDeploymentRequest.h:102
Aws::OpsWorks::Model::CreateDeploymentRequest::SetCustomJson
void SetCustomJson(const char *value)
Definition: CreateDeploymentRequest.h:362
Aws::OpsWorks::Model::CreateDeploymentRequest::WithStackId
CreateDeploymentRequest & WithStackId(const Aws::String &value)
Definition: CreateDeploymentRequest.h:67
Aws::OpsWorks::Model::CreateDeploymentRequest::CommentHasBeenSet
bool CommentHasBeenSet() const
Definition: CreateDeploymentRequest.h:266
Aws::OpsWorks::Model::CreateDeploymentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::CreateDeploymentRequest::SetComment
void SetComment(Aws::String &&value)
Definition: CreateDeploymentRequest.h:276
Aws::OpsWorks::Model::CreateDeploymentRequest::AddLayerIds
CreateDeploymentRequest & AddLayerIds(Aws::String &&value)
Definition: CreateDeploymentRequest.h:213
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::CreateDeploymentRequest::SetLayerIds
void SetLayerIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDeploymentRequest.h:188
Aws::OpsWorks::Model::CreateDeploymentRequest::AddLayerIds
CreateDeploymentRequest & AddLayerIds(const Aws::String &value)
Definition: CreateDeploymentRequest.h:208
Aws::OpsWorks::Model::CreateDeploymentRequest::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: CreateDeploymentRequest.h:47
Aws::OpsWorks::Model::CreateDeploymentRequest::WithComment
CreateDeploymentRequest & WithComment(const Aws::String &value)
Definition: CreateDeploymentRequest.h:286
Aws::OpsWorks::Model::CreateDeploymentRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: CreateDeploymentRequest.h:96
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::CreateDeploymentRequest::GetCustomJson
const Aws::String & GetCustomJson() const
Definition: CreateDeploymentRequest.h:310
Aws::OpsWorks::Model::DeploymentCommand
Definition: DeploymentCommand.h:35
Aws::OpsWorks::Model::CreateDeploymentRequest::WithComment
CreateDeploymentRequest & WithComment(const char *value)
Definition: CreateDeploymentRequest.h:296
Aws::OpsWorks::Model::CreateDeploymentRequest::SetAppId
void SetAppId(const char *value)
Definition: CreateDeploymentRequest.h:108
Aws::OpsWorks::Model::CreateDeploymentRequest::WithComment
CreateDeploymentRequest & WithComment(Aws::String &&value)
Definition: CreateDeploymentRequest.h:291
Aws::OpsWorks::Model::CreateDeploymentRequest::WithAppId
CreateDeploymentRequest & WithAppId(const char *value)
Definition: CreateDeploymentRequest.h:126
Aws::OpsWorks::Model::CreateDeploymentRequest::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: CreateDeploymentRequest.h:132
Aws::OpsWorks::Model::CreateDeploymentRequest::AddInstanceIds
CreateDeploymentRequest & AddInstanceIds(const char *value)
Definition: CreateDeploymentRequest.h:172
Aws::OpsWorks::Model::CreateDeploymentRequest::WithInstanceIds
CreateDeploymentRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDeploymentRequest.h:152
Aws::OpsWorks::Model::CreateDeploymentRequest::WithCommand
CreateDeploymentRequest & WithCommand(DeploymentCommand &&value)
Definition: CreateDeploymentRequest.h:255
Aws::OpsWorks::Model::CreateDeploymentRequest::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDeploymentRequest.h:147
Aws::OpsWorks::Model::CreateDeploymentRequest::CustomJsonHasBeenSet
bool CustomJsonHasBeenSet() const
Definition: CreateDeploymentRequest.h:323
Aws::OpsWorks::Model::CreateDeploymentRequest::WithLayerIds
CreateDeploymentRequest & WithLayerIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDeploymentRequest.h:198