AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Deployment.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opsworks/model/DeploymentCommand.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpsWorks
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_OPSWORKS_API Deployment();
37 AWS_OPSWORKS_API Deployment(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPSWORKS_API Deployment& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
47 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
48 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
49 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
50 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
51 inline Deployment& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
52 inline Deployment& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
53 inline Deployment& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
55
57
60 inline const Aws::String& GetStackId() const{ return m_stackId; }
61 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
62 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
63 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
64 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
65 inline Deployment& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
66 inline Deployment& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
67 inline Deployment& WithStackId(const char* value) { SetStackId(value); return *this;}
69
71
74 inline const Aws::String& GetAppId() const{ return m_appId; }
75 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
76 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
77 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
78 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
79 inline Deployment& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
80 inline Deployment& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
81 inline Deployment& WithAppId(const char* value) { SetAppId(value); return *this;}
83
85
88 inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
89 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
90 inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
91 inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
92 inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
93 inline Deployment& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
94 inline Deployment& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
95 inline Deployment& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
97
99
102 inline const Aws::String& GetCompletedAt() const{ return m_completedAt; }
103 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
104 inline void SetCompletedAt(const Aws::String& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
105 inline void SetCompletedAt(Aws::String&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::move(value); }
106 inline void SetCompletedAt(const char* value) { m_completedAtHasBeenSet = true; m_completedAt.assign(value); }
107 inline Deployment& WithCompletedAt(const Aws::String& value) { SetCompletedAt(value); return *this;}
108 inline Deployment& WithCompletedAt(Aws::String&& value) { SetCompletedAt(std::move(value)); return *this;}
109 inline Deployment& WithCompletedAt(const char* value) { SetCompletedAt(value); return *this;}
111
113
116 inline int GetDuration() const{ return m_duration; }
117 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
118 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
119 inline Deployment& WithDuration(int value) { SetDuration(value); return *this;}
121
123
126 inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
127 inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
128 inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
129 inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); }
130 inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
131 inline Deployment& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
132 inline Deployment& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
133 inline Deployment& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
135
137
140 inline const Aws::String& GetComment() const{ return m_comment; }
141 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
142 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
143 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
144 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
145 inline Deployment& WithComment(const Aws::String& value) { SetComment(value); return *this;}
146 inline Deployment& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
147 inline Deployment& WithComment(const char* value) { SetComment(value); return *this;}
149
151
154 inline const DeploymentCommand& GetCommand() const{ return m_command; }
155 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
156 inline void SetCommand(const DeploymentCommand& value) { m_commandHasBeenSet = true; m_command = value; }
157 inline void SetCommand(DeploymentCommand&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
158 inline Deployment& WithCommand(const DeploymentCommand& value) { SetCommand(value); return *this;}
159 inline Deployment& WithCommand(DeploymentCommand&& value) { SetCommand(std::move(value)); return *this;}
161
163
167 inline const Aws::String& GetStatus() const{ return m_status; }
168 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
169 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
170 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
171 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
172 inline Deployment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
173 inline Deployment& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
174 inline Deployment& WithStatus(const char* value) { SetStatus(value); return *this;}
176
178
187 inline const Aws::String& GetCustomJson() const{ return m_customJson; }
188 inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
189 inline void SetCustomJson(const Aws::String& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
190 inline void SetCustomJson(Aws::String&& value) { m_customJsonHasBeenSet = true; m_customJson = std::move(value); }
191 inline void SetCustomJson(const char* value) { m_customJsonHasBeenSet = true; m_customJson.assign(value); }
192 inline Deployment& WithCustomJson(const Aws::String& value) { SetCustomJson(value); return *this;}
193 inline Deployment& WithCustomJson(Aws::String&& value) { SetCustomJson(std::move(value)); return *this;}
194 inline Deployment& WithCustomJson(const char* value) { SetCustomJson(value); return *this;}
196
198
201 inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
202 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
203 inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
204 inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
205 inline Deployment& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
206 inline Deployment& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
207 inline Deployment& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
208 inline Deployment& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
209 inline Deployment& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
211 private:
212
213 Aws::String m_deploymentId;
214 bool m_deploymentIdHasBeenSet = false;
215
216 Aws::String m_stackId;
217 bool m_stackIdHasBeenSet = false;
218
219 Aws::String m_appId;
220 bool m_appIdHasBeenSet = false;
221
222 Aws::String m_createdAt;
223 bool m_createdAtHasBeenSet = false;
224
225 Aws::String m_completedAt;
226 bool m_completedAtHasBeenSet = false;
227
228 int m_duration;
229 bool m_durationHasBeenSet = false;
230
231 Aws::String m_iamUserArn;
232 bool m_iamUserArnHasBeenSet = false;
233
234 Aws::String m_comment;
235 bool m_commentHasBeenSet = false;
236
237 DeploymentCommand m_command;
238 bool m_commandHasBeenSet = false;
239
240 Aws::String m_status;
241 bool m_statusHasBeenSet = false;
242
243 Aws::String m_customJson;
244 bool m_customJsonHasBeenSet = false;
245
246 Aws::Vector<Aws::String> m_instanceIds;
247 bool m_instanceIdsHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace OpsWorks
252} // namespace Aws
Deployment & WithCreatedAt(Aws::String &&value)
Definition Deployment.h:94
Deployment & WithCreatedAt(const char *value)
Definition Deployment.h:95
void SetAppId(const Aws::String &value)
Definition Deployment.h:76
Deployment & WithDuration(int value)
Definition Deployment.h:119
void SetComment(const char *value)
Definition Deployment.h:144
void SetCommand(DeploymentCommand &&value)
Definition Deployment.h:157
void SetCommand(const DeploymentCommand &value)
Definition Deployment.h:156
void SetStackId(const Aws::String &value)
Definition Deployment.h:62
Deployment & WithCreatedAt(const Aws::String &value)
Definition Deployment.h:93
const Aws::String & GetAppId() const
Definition Deployment.h:74
Deployment & WithStatus(const char *value)
Definition Deployment.h:174
Deployment & WithIamUserArn(const char *value)
Definition Deployment.h:133
Deployment & WithAppId(const char *value)
Definition Deployment.h:81
void SetDeploymentId(Aws::String &&value)
Definition Deployment.h:49
const Aws::String & GetCustomJson() const
Definition Deployment.h:187
Deployment & WithCustomJson(const char *value)
Definition Deployment.h:194
Deployment & WithAppId(const Aws::String &value)
Definition Deployment.h:79
Deployment & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition Deployment.h:205
Deployment & WithIamUserArn(Aws::String &&value)
Definition Deployment.h:132
void SetCompletedAt(Aws::String &&value)
Definition Deployment.h:105
Deployment & WithCustomJson(const Aws::String &value)
Definition Deployment.h:192
void SetCreatedAt(const Aws::String &value)
Definition Deployment.h:90
const Aws::String & GetIamUserArn() const
Definition Deployment.h:126
Deployment & WithDeploymentId(const Aws::String &value)
Definition Deployment.h:51
const DeploymentCommand & GetCommand() const
Definition Deployment.h:154
Deployment & WithStackId(const char *value)
Definition Deployment.h:67
void SetStatus(const Aws::String &value)
Definition Deployment.h:169
AWS_OPSWORKS_API Deployment(Aws::Utils::Json::JsonView jsonValue)
void SetCompletedAt(const Aws::String &value)
Definition Deployment.h:104
void SetCreatedAt(const char *value)
Definition Deployment.h:92
Deployment & WithComment(const char *value)
Definition Deployment.h:147
Deployment & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition Deployment.h:206
Deployment & WithStatus(Aws::String &&value)
Definition Deployment.h:173
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition Deployment.h:203
void SetDeploymentId(const Aws::String &value)
Definition Deployment.h:48
void SetComment(Aws::String &&value)
Definition Deployment.h:143
Deployment & WithStackId(const Aws::String &value)
Definition Deployment.h:65
Deployment & WithAppId(Aws::String &&value)
Definition Deployment.h:80
Deployment & WithCompletedAt(Aws::String &&value)
Definition Deployment.h:108
const Aws::String & GetStatus() const
Definition Deployment.h:167
void SetCreatedAt(Aws::String &&value)
Definition Deployment.h:91
Deployment & WithStatus(const Aws::String &value)
Definition Deployment.h:172
Deployment & WithComment(const Aws::String &value)
Definition Deployment.h:145
Deployment & AddInstanceIds(const Aws::String &value)
Definition Deployment.h:207
void SetAppId(const char *value)
Definition Deployment.h:78
void SetCustomJson(const Aws::String &value)
Definition Deployment.h:189
const Aws::String & GetDeploymentId() const
Definition Deployment.h:46
Deployment & WithCustomJson(Aws::String &&value)
Definition Deployment.h:193
const Aws::String & GetCompletedAt() const
Definition Deployment.h:102
Deployment & AddInstanceIds(Aws::String &&value)
Definition Deployment.h:208
void SetIamUserArn(const Aws::String &value)
Definition Deployment.h:128
Deployment & WithComment(Aws::String &&value)
Definition Deployment.h:146
Deployment & WithCommand(DeploymentCommand &&value)
Definition Deployment.h:159
void SetCustomJson(Aws::String &&value)
Definition Deployment.h:190
Deployment & WithCommand(const DeploymentCommand &value)
Definition Deployment.h:158
AWS_OPSWORKS_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(Aws::String &&value)
Definition Deployment.h:170
const Aws::String & GetStackId() const
Definition Deployment.h:60
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition Deployment.h:201
Deployment & WithCompletedAt(const Aws::String &value)
Definition Deployment.h:107
void SetIamUserArn(const char *value)
Definition Deployment.h:130
void SetCompletedAt(const char *value)
Definition Deployment.h:106
Deployment & WithDeploymentId(const char *value)
Definition Deployment.h:53
void SetStatus(const char *value)
Definition Deployment.h:171
void SetStackId(Aws::String &&value)
Definition Deployment.h:63
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition Deployment.h:204
void SetIamUserArn(Aws::String &&value)
Definition Deployment.h:129
Deployment & WithCompletedAt(const char *value)
Definition Deployment.h:109
const Aws::String & GetCreatedAt() const
Definition Deployment.h:88
const Aws::String & GetComment() const
Definition Deployment.h:140
void SetDeploymentId(const char *value)
Definition Deployment.h:50
void SetComment(const Aws::String &value)
Definition Deployment.h:142
Deployment & WithDeploymentId(Aws::String &&value)
Definition Deployment.h:52
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
Deployment & WithStackId(Aws::String &&value)
Definition Deployment.h:66
Deployment & AddInstanceIds(const char *value)
Definition Deployment.h:209
void SetAppId(Aws::String &&value)
Definition Deployment.h:77
void SetStackId(const char *value)
Definition Deployment.h:64
void SetCustomJson(const char *value)
Definition Deployment.h:191
Deployment & WithIamUserArn(const Aws::String &value)
Definition Deployment.h:131
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue