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/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/opsworks/model/DeploymentCommand.h>
12#include <utility>
13
14namespace Aws
15{
16namespace OpsWorks
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_OPSWORKS_API CreateDeploymentRequest();
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_OPSWORKS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetStackId() const{ return m_stackId; }
44 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
45 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
46 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
47 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
48 inline CreateDeploymentRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
49 inline CreateDeploymentRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
50 inline CreateDeploymentRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
52
54
58 inline const Aws::String& GetAppId() const{ return m_appId; }
59 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
60 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
61 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
62 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
63 inline CreateDeploymentRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
64 inline CreateDeploymentRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
65 inline CreateDeploymentRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
67
69
72 inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
73 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
74 inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
75 inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
77 inline CreateDeploymentRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
78 inline CreateDeploymentRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
79 inline CreateDeploymentRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
80 inline CreateDeploymentRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
82
84
87 inline const Aws::Vector<Aws::String>& GetLayerIds() const{ return m_layerIds; }
88 inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; }
89 inline void SetLayerIds(const Aws::Vector<Aws::String>& value) { m_layerIdsHasBeenSet = true; m_layerIds = value; }
90 inline void SetLayerIds(Aws::Vector<Aws::String>&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::move(value); }
91 inline CreateDeploymentRequest& WithLayerIds(const Aws::Vector<Aws::String>& value) { SetLayerIds(value); return *this;}
92 inline CreateDeploymentRequest& WithLayerIds(Aws::Vector<Aws::String>&& value) { SetLayerIds(std::move(value)); return *this;}
93 inline CreateDeploymentRequest& AddLayerIds(const Aws::String& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
94 inline CreateDeploymentRequest& AddLayerIds(Aws::String&& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(std::move(value)); return *this; }
95 inline CreateDeploymentRequest& AddLayerIds(const char* value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
97
99
103 inline const DeploymentCommand& GetCommand() const{ return m_command; }
104 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
105 inline void SetCommand(const DeploymentCommand& value) { m_commandHasBeenSet = true; m_command = value; }
106 inline void SetCommand(DeploymentCommand&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
107 inline CreateDeploymentRequest& WithCommand(const DeploymentCommand& value) { SetCommand(value); return *this;}
108 inline CreateDeploymentRequest& WithCommand(DeploymentCommand&& value) { SetCommand(std::move(value)); return *this;}
110
112
115 inline const Aws::String& GetComment() const{ return m_comment; }
116 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
117 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
118 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
119 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
120 inline CreateDeploymentRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
121 inline CreateDeploymentRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
122 inline CreateDeploymentRequest& WithComment(const char* value) { SetComment(value); return *this;}
124
126
137 inline const Aws::String& GetCustomJson() const{ return m_customJson; }
138 inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
139 inline void SetCustomJson(const Aws::String& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
140 inline void SetCustomJson(Aws::String&& value) { m_customJsonHasBeenSet = true; m_customJson = std::move(value); }
141 inline void SetCustomJson(const char* value) { m_customJsonHasBeenSet = true; m_customJson.assign(value); }
142 inline CreateDeploymentRequest& WithCustomJson(const Aws::String& value) { SetCustomJson(value); return *this;}
143 inline CreateDeploymentRequest& WithCustomJson(Aws::String&& value) { SetCustomJson(std::move(value)); return *this;}
144 inline CreateDeploymentRequest& WithCustomJson(const char* value) { SetCustomJson(value); return *this;}
146 private:
147
148 Aws::String m_stackId;
149 bool m_stackIdHasBeenSet = false;
150
151 Aws::String m_appId;
152 bool m_appIdHasBeenSet = false;
153
154 Aws::Vector<Aws::String> m_instanceIds;
155 bool m_instanceIdsHasBeenSet = false;
156
157 Aws::Vector<Aws::String> m_layerIds;
158 bool m_layerIdsHasBeenSet = false;
159
160 DeploymentCommand m_command;
161 bool m_commandHasBeenSet = false;
162
163 Aws::String m_comment;
164 bool m_commentHasBeenSet = false;
165
166 Aws::String m_customJson;
167 bool m_customJsonHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace OpsWorks
172} // namespace Aws
CreateDeploymentRequest & AddLayerIds(const char *value)
CreateDeploymentRequest & AddInstanceIds(Aws::String &&value)
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
CreateDeploymentRequest & WithCommand(DeploymentCommand &&value)
CreateDeploymentRequest & WithLayerIds(Aws::Vector< Aws::String > &&value)
CreateDeploymentRequest & WithComment(const Aws::String &value)
CreateDeploymentRequest & WithCustomJson(Aws::String &&value)
CreateDeploymentRequest & WithStackId(Aws::String &&value)
CreateDeploymentRequest & AddInstanceIds(const Aws::String &value)
CreateDeploymentRequest & AddLayerIds(Aws::String &&value)
CreateDeploymentRequest & WithAppId(const Aws::String &value)
CreateDeploymentRequest & AddLayerIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
CreateDeploymentRequest & WithCustomJson(const char *value)
void SetLayerIds(const Aws::Vector< Aws::String > &value)
CreateDeploymentRequest & AddInstanceIds(const char *value)
CreateDeploymentRequest & WithComment(const char *value)
CreateDeploymentRequest & WithCommand(const DeploymentCommand &value)
const Aws::Vector< Aws::String > & GetLayerIds() const
CreateDeploymentRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
CreateDeploymentRequest & WithCustomJson(const Aws::String &value)
CreateDeploymentRequest & WithAppId(const char *value)
CreateDeploymentRequest & WithAppId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateDeploymentRequest & WithStackId(const Aws::String &value)
CreateDeploymentRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
CreateDeploymentRequest & WithStackId(const char *value)
CreateDeploymentRequest & WithComment(Aws::String &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCommand(const DeploymentCommand &value)
CreateDeploymentRequest & WithLayerIds(const Aws::Vector< Aws::String > &value)
void SetLayerIds(Aws::Vector< Aws::String > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector