AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Deployment.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/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/DeploymentStatus.h>
11#include <aws/datazone/model/DeploymentType.h>
12#include <aws/datazone/model/EnvironmentError.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataZone {
24namespace Model {
25
33 public:
34 AWS_DATAZONE_API Deployment() = default;
35 AWS_DATAZONE_API Deployment(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATAZONE_API Deployment& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
44 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
45 template <typename DeploymentIdT = Aws::String>
46 void SetDeploymentId(DeploymentIdT&& value) {
47 m_deploymentIdHasBeenSet = true;
48 m_deploymentId = std::forward<DeploymentIdT>(value);
49 }
50 template <typename DeploymentIdT = Aws::String>
51 Deployment& WithDeploymentId(DeploymentIdT&& value) {
52 SetDeploymentId(std::forward<DeploymentIdT>(value));
53 return *this;
54 }
56
58
61 inline DeploymentType GetDeploymentType() const { return m_deploymentType; }
62 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
63 inline void SetDeploymentType(DeploymentType value) {
64 m_deploymentTypeHasBeenSet = true;
65 m_deploymentType = value;
66 }
68 SetDeploymentType(value);
69 return *this;
70 }
72
74
77 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
78 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
80 m_deploymentStatusHasBeenSet = true;
81 m_deploymentStatus = value;
82 }
85 return *this;
86 }
88
90
93 inline const EnvironmentError& GetFailureReason() const { return m_failureReason; }
94 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
95 template <typename FailureReasonT = EnvironmentError>
96 void SetFailureReason(FailureReasonT&& value) {
97 m_failureReasonHasBeenSet = true;
98 m_failureReason = std::forward<FailureReasonT>(value);
99 }
100 template <typename FailureReasonT = EnvironmentError>
101 Deployment& WithFailureReason(FailureReasonT&& value) {
102 SetFailureReason(std::forward<FailureReasonT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<Aws::String>& GetMessages() const { return m_messages; }
112 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
113 template <typename MessagesT = Aws::Vector<Aws::String>>
114 void SetMessages(MessagesT&& value) {
115 m_messagesHasBeenSet = true;
116 m_messages = std::forward<MessagesT>(value);
117 }
118 template <typename MessagesT = Aws::Vector<Aws::String>>
119 Deployment& WithMessages(MessagesT&& value) {
120 SetMessages(std::forward<MessagesT>(value));
121 return *this;
122 }
123 template <typename MessagesT = Aws::String>
124 Deployment& AddMessages(MessagesT&& value) {
125 m_messagesHasBeenSet = true;
126 m_messages.emplace_back(std::forward<MessagesT>(value));
127 return *this;
128 }
130
132
135 inline bool GetIsDeploymentComplete() const { return m_isDeploymentComplete; }
136 inline bool IsDeploymentCompleteHasBeenSet() const { return m_isDeploymentCompleteHasBeenSet; }
137 inline void SetIsDeploymentComplete(bool value) {
138 m_isDeploymentCompleteHasBeenSet = true;
139 m_isDeploymentComplete = value;
140 }
143 return *this;
144 }
146 private:
147 Aws::String m_deploymentId;
148
149 DeploymentType m_deploymentType{DeploymentType::NOT_SET};
150
152
153 EnvironmentError m_failureReason;
154
155 Aws::Vector<Aws::String> m_messages;
156
157 bool m_isDeploymentComplete{false};
158 bool m_deploymentIdHasBeenSet = false;
159 bool m_deploymentTypeHasBeenSet = false;
160 bool m_deploymentStatusHasBeenSet = false;
161 bool m_failureReasonHasBeenSet = false;
162 bool m_messagesHasBeenSet = false;
163 bool m_isDeploymentCompleteHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace DataZone
168} // namespace Aws
bool IsDeploymentCompleteHasBeenSet() const
Definition Deployment.h:136
Deployment & WithDeploymentType(DeploymentType value)
Definition Deployment.h:67
void SetDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:79
Deployment & WithFailureReason(FailureReasonT &&value)
Definition Deployment.h:101
DeploymentType GetDeploymentType() const
Definition Deployment.h:61
void SetDeploymentType(DeploymentType value)
Definition Deployment.h:63
Deployment & WithDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:51
const Aws::String & GetDeploymentId() const
Definition Deployment.h:43
const EnvironmentError & GetFailureReason() const
Definition Deployment.h:93
DeploymentStatus GetDeploymentStatus() const
Definition Deployment.h:77
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:46
Deployment & WithMessages(MessagesT &&value)
Definition Deployment.h:119
bool DeploymentStatusHasBeenSet() const
Definition Deployment.h:78
AWS_DATAZONE_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetMessages() const
Definition Deployment.h:111
void SetIsDeploymentComplete(bool value)
Definition Deployment.h:137
AWS_DATAZONE_API Deployment(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Deployment()=default
Deployment & WithIsDeploymentComplete(bool value)
Definition Deployment.h:141
void SetFailureReason(FailureReasonT &&value)
Definition Deployment.h:96
Deployment & AddMessages(MessagesT &&value)
Definition Deployment.h:124
Deployment & WithDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:83
void SetMessages(MessagesT &&value)
Definition Deployment.h:114
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue