AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Environment.h
1
6#pragma once
7#include <aws/cloud9/Cloud9_EXPORTS.h>
8#include <aws/cloud9/model/ConnectionType.h>
9#include <aws/cloud9/model/EnvironmentLifecycle.h>
10#include <aws/cloud9/model/EnvironmentType.h>
11#include <aws/cloud9/model/ManagedCredentialsStatus.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Cloud9 {
24namespace Model {
25
33 public:
34 AWS_CLOUD9_API Environment() = default;
35 AWS_CLOUD9_API Environment(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUD9_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 Environment& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 Environment& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 Environment& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
100 inline EnvironmentType GetType() const { return m_type; }
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102 inline void SetType(EnvironmentType value) {
103 m_typeHasBeenSet = true;
104 m_type = value;
105 }
107 SetType(value);
108 return *this;
109 }
111
113
117 inline ConnectionType GetConnectionType() const { return m_connectionType; }
118 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
120 m_connectionTypeHasBeenSet = true;
121 m_connectionType = value;
122 }
124 SetConnectionType(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetArn() const { return m_arn; }
134 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
135 template <typename ArnT = Aws::String>
136 void SetArn(ArnT&& value) {
137 m_arnHasBeenSet = true;
138 m_arn = std::forward<ArnT>(value);
139 }
140 template <typename ArnT = Aws::String>
141 Environment& WithArn(ArnT&& value) {
142 SetArn(std::forward<ArnT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetOwnerArn() const { return m_ownerArn; }
152 inline bool OwnerArnHasBeenSet() const { return m_ownerArnHasBeenSet; }
153 template <typename OwnerArnT = Aws::String>
154 void SetOwnerArn(OwnerArnT&& value) {
155 m_ownerArnHasBeenSet = true;
156 m_ownerArn = std::forward<OwnerArnT>(value);
157 }
158 template <typename OwnerArnT = Aws::String>
159 Environment& WithOwnerArn(OwnerArnT&& value) {
160 SetOwnerArn(std::forward<OwnerArnT>(value));
161 return *this;
162 }
164
166
169 inline const EnvironmentLifecycle& GetLifecycle() const { return m_lifecycle; }
170 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
171 template <typename LifecycleT = EnvironmentLifecycle>
172 void SetLifecycle(LifecycleT&& value) {
173 m_lifecycleHasBeenSet = true;
174 m_lifecycle = std::forward<LifecycleT>(value);
175 }
176 template <typename LifecycleT = EnvironmentLifecycle>
177 Environment& WithLifecycle(LifecycleT&& value) {
178 SetLifecycle(std::forward<LifecycleT>(value));
179 return *this;
180 }
182
184
197 inline ManagedCredentialsStatus GetManagedCredentialsStatus() const { return m_managedCredentialsStatus; }
198 inline bool ManagedCredentialsStatusHasBeenSet() const { return m_managedCredentialsStatusHasBeenSet; }
200 m_managedCredentialsStatusHasBeenSet = true;
201 m_managedCredentialsStatus = value;
202 }
205 return *this;
206 }
208 private:
209 Aws::String m_id;
210
211 Aws::String m_name;
212
213 Aws::String m_description;
214
216
217 ConnectionType m_connectionType{ConnectionType::NOT_SET};
218
219 Aws::String m_arn;
220
221 Aws::String m_ownerArn;
222
223 EnvironmentLifecycle m_lifecycle;
224
226 bool m_idHasBeenSet = false;
227 bool m_nameHasBeenSet = false;
228 bool m_descriptionHasBeenSet = false;
229 bool m_typeHasBeenSet = false;
230 bool m_connectionTypeHasBeenSet = false;
231 bool m_arnHasBeenSet = false;
232 bool m_ownerArnHasBeenSet = false;
233 bool m_lifecycleHasBeenSet = false;
234 bool m_managedCredentialsStatusHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace Cloud9
239} // namespace Aws
Environment & WithType(EnvironmentType value)
Environment & WithId(IdT &&value)
Definition Environment.h:51
bool ManagedCredentialsStatusHasBeenSet() const
const Aws::String & GetId() const
Definition Environment.h:43
void SetType(EnvironmentType value)
const Aws::String & GetOwnerArn() const
AWS_CLOUD9_API Environment()=default
Environment & WithConnectionType(ConnectionType value)
Environment & WithName(NameT &&value)
Definition Environment.h:69
Environment & WithDescription(DescriptionT &&value)
Definition Environment.h:87
void SetConnectionType(ConnectionType value)
void SetDescription(DescriptionT &&value)
Definition Environment.h:82
Environment & WithManagedCredentialsStatus(ManagedCredentialsStatus value)
AWS_CLOUD9_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLifecycle(LifecycleT &&value)
AWS_CLOUD9_API Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
EnvironmentType GetType() const
void SetName(NameT &&value)
Definition Environment.h:64
AWS_CLOUD9_API Environment(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Environment.h:79
void SetManagedCredentialsStatus(ManagedCredentialsStatus value)
Environment & WithArn(ArnT &&value)
Environment & WithLifecycle(LifecycleT &&value)
const Aws::String & GetArn() const
ManagedCredentialsStatus GetManagedCredentialsStatus() const
Environment & WithOwnerArn(OwnerArnT &&value)
void SetOwnerArn(OwnerArnT &&value)
const EnvironmentLifecycle & GetLifecycle() const
ConnectionType GetConnectionType() const
const Aws::String & GetName() const
Definition Environment.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue