AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
BulkDeploymentResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/greengrass/Greengrass_EXPORTS.h>
10#include <aws/greengrass/model/DeploymentType.h>
11#include <aws/greengrass/model/ErrorDetail.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Greengrass {
23namespace Model {
24
32 public:
33 AWS_GREENGRASS_API BulkDeploymentResult() = default;
34 AWS_GREENGRASS_API BulkDeploymentResult(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
43 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
44 template <typename CreatedAtT = Aws::String>
45 void SetCreatedAt(CreatedAtT&& value) {
46 m_createdAtHasBeenSet = true;
47 m_createdAt = std::forward<CreatedAtT>(value);
48 }
49 template <typename CreatedAtT = Aws::String>
50 BulkDeploymentResult& WithCreatedAt(CreatedAtT&& value) {
51 SetCreatedAt(std::forward<CreatedAtT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDeploymentArn() const { return m_deploymentArn; }
61 inline bool DeploymentArnHasBeenSet() const { return m_deploymentArnHasBeenSet; }
62 template <typename DeploymentArnT = Aws::String>
63 void SetDeploymentArn(DeploymentArnT&& value) {
64 m_deploymentArnHasBeenSet = true;
65 m_deploymentArn = std::forward<DeploymentArnT>(value);
66 }
67 template <typename DeploymentArnT = Aws::String>
68 BulkDeploymentResult& WithDeploymentArn(DeploymentArnT&& value) {
69 SetDeploymentArn(std::forward<DeploymentArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
79 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
80 template <typename DeploymentIdT = Aws::String>
81 void SetDeploymentId(DeploymentIdT&& value) {
82 m_deploymentIdHasBeenSet = true;
83 m_deploymentId = std::forward<DeploymentIdT>(value);
84 }
85 template <typename DeploymentIdT = Aws::String>
86 BulkDeploymentResult& WithDeploymentId(DeploymentIdT&& value) {
87 SetDeploymentId(std::forward<DeploymentIdT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetDeploymentStatus() const { return m_deploymentStatus; }
98 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
99 template <typename DeploymentStatusT = Aws::String>
100 void SetDeploymentStatus(DeploymentStatusT&& value) {
101 m_deploymentStatusHasBeenSet = true;
102 m_deploymentStatus = std::forward<DeploymentStatusT>(value);
103 }
104 template <typename DeploymentStatusT = Aws::String>
105 BulkDeploymentResult& WithDeploymentStatus(DeploymentStatusT&& value) {
106 SetDeploymentStatus(std::forward<DeploymentStatusT>(value));
107 return *this;
108 }
110
112
115 inline DeploymentType GetDeploymentType() const { return m_deploymentType; }
116 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
118 m_deploymentTypeHasBeenSet = true;
119 m_deploymentType = value;
120 }
122 SetDeploymentType(value);
123 return *this;
124 }
126
128
131 inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const { return m_errorDetails; }
132 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
133 template <typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
134 void SetErrorDetails(ErrorDetailsT&& value) {
135 m_errorDetailsHasBeenSet = true;
136 m_errorDetails = std::forward<ErrorDetailsT>(value);
137 }
138 template <typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
139 BulkDeploymentResult& WithErrorDetails(ErrorDetailsT&& value) {
140 SetErrorDetails(std::forward<ErrorDetailsT>(value));
141 return *this;
142 }
143 template <typename ErrorDetailsT = ErrorDetail>
144 BulkDeploymentResult& AddErrorDetails(ErrorDetailsT&& value) {
145 m_errorDetailsHasBeenSet = true;
146 m_errorDetails.emplace_back(std::forward<ErrorDetailsT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
156 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
157 template <typename ErrorMessageT = Aws::String>
158 void SetErrorMessage(ErrorMessageT&& value) {
159 m_errorMessageHasBeenSet = true;
160 m_errorMessage = std::forward<ErrorMessageT>(value);
161 }
162 template <typename ErrorMessageT = Aws::String>
163 BulkDeploymentResult& WithErrorMessage(ErrorMessageT&& value) {
164 SetErrorMessage(std::forward<ErrorMessageT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetGroupArn() const { return m_groupArn; }
174 inline bool GroupArnHasBeenSet() const { return m_groupArnHasBeenSet; }
175 template <typename GroupArnT = Aws::String>
176 void SetGroupArn(GroupArnT&& value) {
177 m_groupArnHasBeenSet = true;
178 m_groupArn = std::forward<GroupArnT>(value);
179 }
180 template <typename GroupArnT = Aws::String>
181 BulkDeploymentResult& WithGroupArn(GroupArnT&& value) {
182 SetGroupArn(std::forward<GroupArnT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_createdAt;
188
189 Aws::String m_deploymentArn;
190
191 Aws::String m_deploymentId;
192
193 Aws::String m_deploymentStatus;
194
195 DeploymentType m_deploymentType{DeploymentType::NOT_SET};
196
197 Aws::Vector<ErrorDetail> m_errorDetails;
198
199 Aws::String m_errorMessage;
200
201 Aws::String m_groupArn;
202 bool m_createdAtHasBeenSet = false;
203 bool m_deploymentArnHasBeenSet = false;
204 bool m_deploymentIdHasBeenSet = false;
205 bool m_deploymentStatusHasBeenSet = false;
206 bool m_deploymentTypeHasBeenSet = false;
207 bool m_errorDetailsHasBeenSet = false;
208 bool m_errorMessageHasBeenSet = false;
209 bool m_groupArnHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace Greengrass
214} // namespace Aws
BulkDeploymentResult & WithCreatedAt(CreatedAtT &&value)
BulkDeploymentResult & WithErrorMessage(ErrorMessageT &&value)
BulkDeploymentResult & WithDeploymentArn(DeploymentArnT &&value)
BulkDeploymentResult & WithDeploymentId(DeploymentIdT &&value)
BulkDeploymentResult & WithDeploymentStatus(DeploymentStatusT &&value)
BulkDeploymentResult & WithDeploymentType(DeploymentType value)
AWS_GREENGRASS_API BulkDeploymentResult & operator=(Aws::Utils::Json::JsonView jsonValue)
BulkDeploymentResult & WithErrorDetails(ErrorDetailsT &&value)
BulkDeploymentResult & WithGroupArn(GroupArnT &&value)
AWS_GREENGRASS_API BulkDeploymentResult(Aws::Utils::Json::JsonView jsonValue)
void SetDeploymentStatus(DeploymentStatusT &&value)
AWS_GREENGRASS_API BulkDeploymentResult()=default
const Aws::Vector< ErrorDetail > & GetErrorDetails() const
BulkDeploymentResult & AddErrorDetails(ErrorDetailsT &&value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue