AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Deployment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
10#include <aws/greengrassv2/model/DeploymentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GreengrassV2 {
22namespace Model {
23
30 public:
31 AWS_GREENGRASSV2_API Deployment() = default;
32 AWS_GREENGRASSV2_API Deployment(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GREENGRASSV2_API Deployment& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
44 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
45 template <typename TargetArnT = Aws::String>
46 void SetTargetArn(TargetArnT&& value) {
47 m_targetArnHasBeenSet = true;
48 m_targetArn = std::forward<TargetArnT>(value);
49 }
50 template <typename TargetArnT = Aws::String>
51 Deployment& WithTargetArn(TargetArnT&& value) {
52 SetTargetArn(std::forward<TargetArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
62 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
63 template <typename RevisionIdT = Aws::String>
64 void SetRevisionId(RevisionIdT&& value) {
65 m_revisionIdHasBeenSet = true;
66 m_revisionId = std::forward<RevisionIdT>(value);
67 }
68 template <typename RevisionIdT = Aws::String>
69 Deployment& WithRevisionId(RevisionIdT&& value) {
70 SetRevisionId(std::forward<RevisionIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
80 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
81 template <typename DeploymentIdT = Aws::String>
82 void SetDeploymentId(DeploymentIdT&& value) {
83 m_deploymentIdHasBeenSet = true;
84 m_deploymentId = std::forward<DeploymentIdT>(value);
85 }
86 template <typename DeploymentIdT = Aws::String>
87 Deployment& WithDeploymentId(DeploymentIdT&& value) {
88 SetDeploymentId(std::forward<DeploymentIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
98 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
99 template <typename DeploymentNameT = Aws::String>
100 void SetDeploymentName(DeploymentNameT&& value) {
101 m_deploymentNameHasBeenSet = true;
102 m_deploymentName = std::forward<DeploymentNameT>(value);
103 }
104 template <typename DeploymentNameT = Aws::String>
105 Deployment& WithDeploymentName(DeploymentNameT&& value) {
106 SetDeploymentName(std::forward<DeploymentNameT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
117 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
118 template <typename CreationTimestampT = Aws::Utils::DateTime>
119 void SetCreationTimestamp(CreationTimestampT&& value) {
120 m_creationTimestampHasBeenSet = true;
121 m_creationTimestamp = std::forward<CreationTimestampT>(value);
122 }
123 template <typename CreationTimestampT = Aws::Utils::DateTime>
124 Deployment& WithCreationTimestamp(CreationTimestampT&& value) {
125 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
126 return *this;
127 }
129
131
134 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
135 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
137 m_deploymentStatusHasBeenSet = true;
138 m_deploymentStatus = value;
139 }
141 SetDeploymentStatus(value);
142 return *this;
143 }
145
147
150 inline bool GetIsLatestForTarget() const { return m_isLatestForTarget; }
151 inline bool IsLatestForTargetHasBeenSet() const { return m_isLatestForTargetHasBeenSet; }
152 inline void SetIsLatestForTarget(bool value) {
153 m_isLatestForTargetHasBeenSet = true;
154 m_isLatestForTarget = value;
155 }
156 inline Deployment& WithIsLatestForTarget(bool value) {
158 return *this;
159 }
161
163
168 inline const Aws::String& GetParentTargetArn() const { return m_parentTargetArn; }
169 inline bool ParentTargetArnHasBeenSet() const { return m_parentTargetArnHasBeenSet; }
170 template <typename ParentTargetArnT = Aws::String>
171 void SetParentTargetArn(ParentTargetArnT&& value) {
172 m_parentTargetArnHasBeenSet = true;
173 m_parentTargetArn = std::forward<ParentTargetArnT>(value);
174 }
175 template <typename ParentTargetArnT = Aws::String>
176 Deployment& WithParentTargetArn(ParentTargetArnT&& value) {
177 SetParentTargetArn(std::forward<ParentTargetArnT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_targetArn;
183
184 Aws::String m_revisionId;
185
186 Aws::String m_deploymentId;
187
188 Aws::String m_deploymentName;
189
190 Aws::Utils::DateTime m_creationTimestamp{};
191
193
194 bool m_isLatestForTarget{false};
195
196 Aws::String m_parentTargetArn;
197 bool m_targetArnHasBeenSet = false;
198 bool m_revisionIdHasBeenSet = false;
199 bool m_deploymentIdHasBeenSet = false;
200 bool m_deploymentNameHasBeenSet = false;
201 bool m_creationTimestampHasBeenSet = false;
202 bool m_deploymentStatusHasBeenSet = false;
203 bool m_isLatestForTargetHasBeenSet = false;
204 bool m_parentTargetArnHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace GreengrassV2
209} // namespace Aws
Deployment & WithDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:140
const Aws::String & GetDeploymentId() const
Definition Deployment.h:79
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
Deployment & WithIsLatestForTarget(bool value)
Definition Deployment.h:156
Deployment & WithParentTargetArn(ParentTargetArnT &&value)
Definition Deployment.h:176
const Aws::String & GetTargetArn() const
Definition Deployment.h:43
const Aws::String & GetParentTargetArn() const
Definition Deployment.h:168
void SetDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:136
AWS_GREENGRASSV2_API Deployment()=default
void SetCreationTimestamp(CreationTimestampT &&value)
Definition Deployment.h:119
void SetDeploymentName(DeploymentNameT &&value)
Definition Deployment.h:100
Deployment & WithDeploymentName(DeploymentNameT &&value)
Definition Deployment.h:105
Deployment & WithRevisionId(RevisionIdT &&value)
Definition Deployment.h:69
Deployment & WithDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:87
DeploymentStatus GetDeploymentStatus() const
Definition Deployment.h:134
void SetRevisionId(RevisionIdT &&value)
Definition Deployment.h:64
AWS_GREENGRASSV2_API Deployment(Aws::Utils::Json::JsonView jsonValue)
Deployment & WithCreationTimestamp(CreationTimestampT &&value)
Definition Deployment.h:124
void SetTargetArn(TargetArnT &&value)
Definition Deployment.h:46
Deployment & WithTargetArn(TargetArnT &&value)
Definition Deployment.h:51
const Aws::String & GetDeploymentName() const
Definition Deployment.h:97
const Aws::Utils::DateTime & GetCreationTimestamp() const
Definition Deployment.h:116
const Aws::String & GetRevisionId() const
Definition Deployment.h:61
void SetParentTargetArn(ParentTargetArnT &&value)
Definition Deployment.h:171
AWS_GREENGRASSV2_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue