AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename DeploymentIdT = Aws::String>
49 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
50 template<typename DeploymentIdT = Aws::String>
51 Deployment& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetStackId() const { return m_stackId; }
59 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
60 template<typename StackIdT = Aws::String>
61 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
62 template<typename StackIdT = Aws::String>
63 Deployment& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetAppId() const { return m_appId; }
71 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
72 template<typename AppIdT = Aws::String>
73 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
74 template<typename AppIdT = Aws::String>
75 Deployment& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
83 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
84 template<typename CreatedAtT = Aws::String>
85 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
86 template<typename CreatedAtT = Aws::String>
87 Deployment& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
89
91
94 inline const Aws::String& GetCompletedAt() const { return m_completedAt; }
95 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
96 template<typename CompletedAtT = Aws::String>
97 void SetCompletedAt(CompletedAtT&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::forward<CompletedAtT>(value); }
98 template<typename CompletedAtT = Aws::String>
99 Deployment& WithCompletedAt(CompletedAtT&& value) { SetCompletedAt(std::forward<CompletedAtT>(value)); return *this;}
101
103
106 inline int GetDuration() const { return m_duration; }
107 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
108 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
109 inline Deployment& WithDuration(int value) { SetDuration(value); return *this;}
111
113
116 inline const Aws::String& GetIamUserArn() const { return m_iamUserArn; }
117 inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
118 template<typename IamUserArnT = Aws::String>
119 void SetIamUserArn(IamUserArnT&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::forward<IamUserArnT>(value); }
120 template<typename IamUserArnT = Aws::String>
121 Deployment& WithIamUserArn(IamUserArnT&& value) { SetIamUserArn(std::forward<IamUserArnT>(value)); return *this;}
123
125
128 inline const Aws::String& GetComment() const { return m_comment; }
129 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
130 template<typename CommentT = Aws::String>
131 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
132 template<typename CommentT = Aws::String>
133 Deployment& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
135
137
140 inline const DeploymentCommand& GetCommand() const { return m_command; }
141 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
142 template<typename CommandT = DeploymentCommand>
143 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
144 template<typename CommandT = DeploymentCommand>
145 Deployment& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
147
149
153 inline const Aws::String& GetStatus() const { return m_status; }
154 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
155 template<typename StatusT = Aws::String>
156 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
157 template<typename StatusT = Aws::String>
158 Deployment& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
160
162
171 inline const Aws::String& GetCustomJson() const { return m_customJson; }
172 inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
173 template<typename CustomJsonT = Aws::String>
174 void SetCustomJson(CustomJsonT&& value) { m_customJsonHasBeenSet = true; m_customJson = std::forward<CustomJsonT>(value); }
175 template<typename CustomJsonT = Aws::String>
176 Deployment& WithCustomJson(CustomJsonT&& value) { SetCustomJson(std::forward<CustomJsonT>(value)); return *this;}
178
180
183 inline const Aws::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
184 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
185 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
186 void SetInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::forward<InstanceIdsT>(value); }
187 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
188 Deployment& WithInstanceIds(InstanceIdsT&& value) { SetInstanceIds(std::forward<InstanceIdsT>(value)); return *this;}
189 template<typename InstanceIdsT = Aws::String>
190 Deployment& AddInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value)); return *this; }
192 private:
193
194 Aws::String m_deploymentId;
195 bool m_deploymentIdHasBeenSet = false;
196
197 Aws::String m_stackId;
198 bool m_stackIdHasBeenSet = false;
199
200 Aws::String m_appId;
201 bool m_appIdHasBeenSet = false;
202
203 Aws::String m_createdAt;
204 bool m_createdAtHasBeenSet = false;
205
206 Aws::String m_completedAt;
207 bool m_completedAtHasBeenSet = false;
208
209 int m_duration{0};
210 bool m_durationHasBeenSet = false;
211
212 Aws::String m_iamUserArn;
213 bool m_iamUserArnHasBeenSet = false;
214
215 Aws::String m_comment;
216 bool m_commentHasBeenSet = false;
217
218 DeploymentCommand m_command;
219 bool m_commandHasBeenSet = false;
220
221 Aws::String m_status;
222 bool m_statusHasBeenSet = false;
223
224 Aws::String m_customJson;
225 bool m_customJsonHasBeenSet = false;
226
227 Aws::Vector<Aws::String> m_instanceIds;
228 bool m_instanceIdsHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace OpsWorks
233} // namespace Aws
void SetIamUserArn(IamUserArnT &&value)
Definition Deployment.h:119
void SetCommand(CommandT &&value)
Definition Deployment.h:143
Deployment & WithDuration(int value)
Definition Deployment.h:109
void SetInstanceIds(InstanceIdsT &&value)
Definition Deployment.h:186
const Aws::String & GetAppId() const
Definition Deployment.h:70
const Aws::String & GetCustomJson() const
Definition Deployment.h:171
AWS_OPSWORKS_API Deployment()=default
void SetComment(CommentT &&value)
Definition Deployment.h:131
const Aws::String & GetIamUserArn() const
Definition Deployment.h:116
const DeploymentCommand & GetCommand() const
Definition Deployment.h:140
Deployment & WithStackId(StackIdT &&value)
Definition Deployment.h:63
AWS_OPSWORKS_API Deployment(Aws::Utils::Json::JsonView jsonValue)
Deployment & WithCommand(CommandT &&value)
Definition Deployment.h:145
Deployment & WithCompletedAt(CompletedAtT &&value)
Definition Deployment.h:99
void SetAppId(AppIdT &&value)
Definition Deployment.h:73
void SetCompletedAt(CompletedAtT &&value)
Definition Deployment.h:97
Deployment & WithComment(CommentT &&value)
Definition Deployment.h:133
const Aws::String & GetStatus() const
Definition Deployment.h:153
Deployment & WithCustomJson(CustomJsonT &&value)
Definition Deployment.h:176
void SetDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:49
Deployment & WithIamUserArn(IamUserArnT &&value)
Definition Deployment.h:121
const Aws::String & GetDeploymentId() const
Definition Deployment.h:46
const Aws::String & GetCompletedAt() const
Definition Deployment.h:94
AWS_OPSWORKS_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStackId() const
Definition Deployment.h:58
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition Deployment.h:183
void SetCreatedAt(CreatedAtT &&value)
Definition Deployment.h:85
Deployment & WithAppId(AppIdT &&value)
Definition Deployment.h:75
Deployment & WithInstanceIds(InstanceIdsT &&value)
Definition Deployment.h:188
const Aws::String & GetCreatedAt() const
Definition Deployment.h:82
const Aws::String & GetComment() const
Definition Deployment.h:128
void SetStackId(StackIdT &&value)
Definition Deployment.h:61
void SetStatus(StatusT &&value)
Definition Deployment.h:156
void SetCustomJson(CustomJsonT &&value)
Definition Deployment.h:174
Deployment & WithDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:51
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
Deployment & AddInstanceIds(InstanceIdsT &&value)
Definition Deployment.h:190
Deployment & WithStatus(StatusT &&value)
Definition Deployment.h:158
Deployment & WithCreatedAt(CreatedAtT &&value)
Definition Deployment.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue