AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Deployment.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/model/DeploymentStatus.h>
10#include <aws/datazone/model/DeploymentType.h>
11#include <aws/datazone/model/EnvironmentError.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataZone
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DATAZONE_API Deployment() = default;
40 AWS_DATAZONE_API Deployment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATAZONE_API Deployment& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
50 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
51 template<typename DeploymentIdT = Aws::String>
52 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
53 template<typename DeploymentIdT = Aws::String>
54 Deployment& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
56
58
61 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
62 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
63 inline void SetDeploymentStatus(DeploymentStatus value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
66
68
71 inline DeploymentType GetDeploymentType() const { return m_deploymentType; }
72 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
73 inline void SetDeploymentType(DeploymentType value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
74 inline Deployment& WithDeploymentType(DeploymentType value) { SetDeploymentType(value); return *this;}
76
78
81 inline const EnvironmentError& GetFailureReason() const { return m_failureReason; }
82 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
83 template<typename FailureReasonT = EnvironmentError>
84 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
85 template<typename FailureReasonT = EnvironmentError>
86 Deployment& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
88
90
93 inline bool GetIsDeploymentComplete() const { return m_isDeploymentComplete; }
94 inline bool IsDeploymentCompleteHasBeenSet() const { return m_isDeploymentCompleteHasBeenSet; }
95 inline void SetIsDeploymentComplete(bool value) { m_isDeploymentCompleteHasBeenSet = true; m_isDeploymentComplete = value; }
96 inline Deployment& WithIsDeploymentComplete(bool value) { SetIsDeploymentComplete(value); return *this;}
98
100
103 inline const Aws::Vector<Aws::String>& GetMessages() const { return m_messages; }
104 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
105 template<typename MessagesT = Aws::Vector<Aws::String>>
106 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages = std::forward<MessagesT>(value); }
107 template<typename MessagesT = Aws::Vector<Aws::String>>
108 Deployment& WithMessages(MessagesT&& value) { SetMessages(std::forward<MessagesT>(value)); return *this;}
109 template<typename MessagesT = Aws::String>
110 Deployment& AddMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages.emplace_back(std::forward<MessagesT>(value)); return *this; }
112 private:
113
114 Aws::String m_deploymentId;
115 bool m_deploymentIdHasBeenSet = false;
116
118 bool m_deploymentStatusHasBeenSet = false;
119
120 DeploymentType m_deploymentType{DeploymentType::NOT_SET};
121 bool m_deploymentTypeHasBeenSet = false;
122
123 EnvironmentError m_failureReason;
124 bool m_failureReasonHasBeenSet = false;
125
126 bool m_isDeploymentComplete{false};
127 bool m_isDeploymentCompleteHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_messages;
130 bool m_messagesHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace DataZone
135} // namespace Aws
bool IsDeploymentCompleteHasBeenSet() const
Definition Deployment.h:94
Deployment & WithDeploymentType(DeploymentType value)
Definition Deployment.h:74
void SetDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:63
Deployment & WithFailureReason(FailureReasonT &&value)
Definition Deployment.h:86
DeploymentType GetDeploymentType() const
Definition Deployment.h:71
void SetDeploymentType(DeploymentType value)
Definition Deployment.h:73
Deployment & WithDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:54
const Aws::String & GetDeploymentId() const
Definition Deployment.h:49
const EnvironmentError & GetFailureReason() const
Definition Deployment.h:81
DeploymentStatus GetDeploymentStatus() const
Definition Deployment.h:61
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:52
Deployment & WithMessages(MessagesT &&value)
Definition Deployment.h:108
bool DeploymentStatusHasBeenSet() const
Definition Deployment.h:62
AWS_DATAZONE_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetMessages() const
Definition Deployment.h:103
void SetIsDeploymentComplete(bool value)
Definition Deployment.h:95
AWS_DATAZONE_API Deployment(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Deployment()=default
Deployment & WithIsDeploymentComplete(bool value)
Definition Deployment.h:96
void SetFailureReason(FailureReasonT &&value)
Definition Deployment.h:84
Deployment & AddMessages(MessagesT &&value)
Definition Deployment.h:110
Deployment & WithDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:64
void SetMessages(MessagesT &&value)
Definition Deployment.h:106
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue