AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
52 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
53 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
54 inline Deployment& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
55 inline Deployment& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
56 inline Deployment& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
58
60
63 inline const DeploymentStatus& GetDeploymentStatus() const{ return m_deploymentStatus; }
64 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
65 inline void SetDeploymentStatus(const DeploymentStatus& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
66 inline void SetDeploymentStatus(DeploymentStatus&& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = std::move(value); }
67 inline Deployment& WithDeploymentStatus(const DeploymentStatus& value) { SetDeploymentStatus(value); return *this;}
68 inline Deployment& WithDeploymentStatus(DeploymentStatus&& value) { SetDeploymentStatus(std::move(value)); return *this;}
70
72
75 inline const DeploymentType& GetDeploymentType() const{ return m_deploymentType; }
76 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
77 inline void SetDeploymentType(const DeploymentType& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
78 inline void SetDeploymentType(DeploymentType&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); }
79 inline Deployment& WithDeploymentType(const DeploymentType& value) { SetDeploymentType(value); return *this;}
80 inline Deployment& WithDeploymentType(DeploymentType&& value) { SetDeploymentType(std::move(value)); return *this;}
82
84
87 inline const EnvironmentError& GetFailureReason() const{ return m_failureReason; }
88 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
89 inline void SetFailureReason(const EnvironmentError& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
90 inline void SetFailureReason(EnvironmentError&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
91 inline Deployment& WithFailureReason(const EnvironmentError& value) { SetFailureReason(value); return *this;}
92 inline Deployment& WithFailureReason(EnvironmentError&& value) { SetFailureReason(std::move(value)); return *this;}
94
96
99 inline bool GetIsDeploymentComplete() const{ return m_isDeploymentComplete; }
100 inline bool IsDeploymentCompleteHasBeenSet() const { return m_isDeploymentCompleteHasBeenSet; }
101 inline void SetIsDeploymentComplete(bool value) { m_isDeploymentCompleteHasBeenSet = true; m_isDeploymentComplete = value; }
102 inline Deployment& WithIsDeploymentComplete(bool value) { SetIsDeploymentComplete(value); return *this;}
104
106
109 inline const Aws::Vector<Aws::String>& GetMessages() const{ return m_messages; }
110 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
111 inline void SetMessages(const Aws::Vector<Aws::String>& value) { m_messagesHasBeenSet = true; m_messages = value; }
112 inline void SetMessages(Aws::Vector<Aws::String>&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); }
113 inline Deployment& WithMessages(const Aws::Vector<Aws::String>& value) { SetMessages(value); return *this;}
114 inline Deployment& WithMessages(Aws::Vector<Aws::String>&& value) { SetMessages(std::move(value)); return *this;}
115 inline Deployment& AddMessages(const Aws::String& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
116 inline Deployment& AddMessages(Aws::String&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; }
117 inline Deployment& AddMessages(const char* value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
119 private:
120
121 Aws::String m_deploymentId;
122 bool m_deploymentIdHasBeenSet = false;
123
124 DeploymentStatus m_deploymentStatus;
125 bool m_deploymentStatusHasBeenSet = false;
126
127 DeploymentType m_deploymentType;
128 bool m_deploymentTypeHasBeenSet = false;
129
130 EnvironmentError m_failureReason;
131 bool m_failureReasonHasBeenSet = false;
132
133 bool m_isDeploymentComplete;
134 bool m_isDeploymentCompleteHasBeenSet = false;
135
136 Aws::Vector<Aws::String> m_messages;
137 bool m_messagesHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace DataZone
142} // namespace Aws
void SetMessages(const Aws::Vector< Aws::String > &value)
Definition Deployment.h:111
Deployment & WithMessages(const Aws::Vector< Aws::String > &value)
Definition Deployment.h:113
bool IsDeploymentCompleteHasBeenSet() const
Definition Deployment.h:100
void SetDeploymentId(Aws::String &&value)
Definition Deployment.h:52
void SetDeploymentStatus(const DeploymentStatus &value)
Definition Deployment.h:65
Deployment & WithDeploymentStatus(const DeploymentStatus &value)
Definition Deployment.h:67
Deployment & AddMessages(const Aws::String &value)
Definition Deployment.h:115
Deployment & WithDeploymentId(Aws::String &&value)
Definition Deployment.h:55
void SetMessages(Aws::Vector< Aws::String > &&value)
Definition Deployment.h:112
void SetDeploymentType(const DeploymentType &value)
Definition Deployment.h:77
const Aws::String & GetDeploymentId() const
Definition Deployment.h:49
Deployment & WithMessages(Aws::Vector< Aws::String > &&value)
Definition Deployment.h:114
Deployment & WithDeploymentType(const DeploymentType &value)
Definition Deployment.h:79
const EnvironmentError & GetFailureReason() const
Definition Deployment.h:87
Deployment & WithDeploymentStatus(DeploymentStatus &&value)
Definition Deployment.h:68
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
Deployment & WithDeploymentType(DeploymentType &&value)
Definition Deployment.h:80
const DeploymentType & GetDeploymentType() const
Definition Deployment.h:75
Deployment & AddMessages(Aws::String &&value)
Definition Deployment.h:116
void SetDeploymentStatus(DeploymentStatus &&value)
Definition Deployment.h:66
Deployment & WithFailureReason(const EnvironmentError &value)
Definition Deployment.h:91
void SetFailureReason(const EnvironmentError &value)
Definition Deployment.h:89
void SetDeploymentId(const Aws::String &value)
Definition Deployment.h:51
bool DeploymentStatusHasBeenSet() const
Definition Deployment.h:64
void SetDeploymentType(DeploymentType &&value)
Definition Deployment.h:78
AWS_DATAZONE_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetMessages() const
Definition Deployment.h:109
void SetIsDeploymentComplete(bool value)
Definition Deployment.h:101
Deployment & AddMessages(const char *value)
Definition Deployment.h:117
Deployment & WithFailureReason(EnvironmentError &&value)
Definition Deployment.h:92
AWS_DATAZONE_API Deployment(Aws::Utils::Json::JsonView jsonValue)
void SetDeploymentId(const char *value)
Definition Deployment.h:53
Deployment & WithIsDeploymentComplete(bool value)
Definition Deployment.h:102
void SetFailureReason(EnvironmentError &&value)
Definition Deployment.h:90
Deployment & WithDeploymentId(const char *value)
Definition Deployment.h:56
const DeploymentStatus & GetDeploymentStatus() const
Definition Deployment.h:63
Deployment & WithDeploymentId(const Aws::String &value)
Definition Deployment.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue