AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Environment.h
1
6#pragma once
7#include <aws/cloud9/Cloud9_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloud9/model/EnvironmentType.h>
10#include <aws/cloud9/model/ConnectionType.h>
11#include <aws/cloud9/model/EnvironmentLifecycle.h>
12#include <aws/cloud9/model/ManagedCredentialsStatus.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 Cloud9
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CLOUD9_API Environment();
40 AWS_CLOUD9_API Environment(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUD9_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline Environment& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline Environment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline Environment& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline Environment& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline Environment& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline Environment& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline Environment& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline Environment& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline Environment& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
94 inline const EnvironmentType& GetType() const{ return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(const EnvironmentType& value) { m_typeHasBeenSet = true; m_type = value; }
97 inline void SetType(EnvironmentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
98 inline Environment& WithType(const EnvironmentType& value) { SetType(value); return *this;}
99 inline Environment& WithType(EnvironmentType&& value) { SetType(std::move(value)); return *this;}
101
103
107 inline const ConnectionType& GetConnectionType() const{ return m_connectionType; }
108 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
109 inline void SetConnectionType(const ConnectionType& value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; }
110 inline void SetConnectionType(ConnectionType&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::move(value); }
111 inline Environment& WithConnectionType(const ConnectionType& value) { SetConnectionType(value); return *this;}
112 inline Environment& WithConnectionType(ConnectionType&& value) { SetConnectionType(std::move(value)); return *this;}
114
116
119 inline const Aws::String& GetArn() const{ return m_arn; }
120 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
121 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
122 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
123 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
124 inline Environment& WithArn(const Aws::String& value) { SetArn(value); return *this;}
125 inline Environment& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
126 inline Environment& WithArn(const char* value) { SetArn(value); return *this;}
128
130
133 inline const Aws::String& GetOwnerArn() const{ return m_ownerArn; }
134 inline bool OwnerArnHasBeenSet() const { return m_ownerArnHasBeenSet; }
135 inline void SetOwnerArn(const Aws::String& value) { m_ownerArnHasBeenSet = true; m_ownerArn = value; }
136 inline void SetOwnerArn(Aws::String&& value) { m_ownerArnHasBeenSet = true; m_ownerArn = std::move(value); }
137 inline void SetOwnerArn(const char* value) { m_ownerArnHasBeenSet = true; m_ownerArn.assign(value); }
138 inline Environment& WithOwnerArn(const Aws::String& value) { SetOwnerArn(value); return *this;}
139 inline Environment& WithOwnerArn(Aws::String&& value) { SetOwnerArn(std::move(value)); return *this;}
140 inline Environment& WithOwnerArn(const char* value) { SetOwnerArn(value); return *this;}
142
144
147 inline const EnvironmentLifecycle& GetLifecycle() const{ return m_lifecycle; }
148 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
149 inline void SetLifecycle(const EnvironmentLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
150 inline void SetLifecycle(EnvironmentLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
151 inline Environment& WithLifecycle(const EnvironmentLifecycle& value) { SetLifecycle(value); return *this;}
152 inline Environment& WithLifecycle(EnvironmentLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
154
156
169 inline const ManagedCredentialsStatus& GetManagedCredentialsStatus() const{ return m_managedCredentialsStatus; }
170 inline bool ManagedCredentialsStatusHasBeenSet() const { return m_managedCredentialsStatusHasBeenSet; }
171 inline void SetManagedCredentialsStatus(const ManagedCredentialsStatus& value) { m_managedCredentialsStatusHasBeenSet = true; m_managedCredentialsStatus = value; }
172 inline void SetManagedCredentialsStatus(ManagedCredentialsStatus&& value) { m_managedCredentialsStatusHasBeenSet = true; m_managedCredentialsStatus = std::move(value); }
176 private:
177
178 Aws::String m_id;
179 bool m_idHasBeenSet = false;
180
181 Aws::String m_name;
182 bool m_nameHasBeenSet = false;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
187 EnvironmentType m_type;
188 bool m_typeHasBeenSet = false;
189
190 ConnectionType m_connectionType;
191 bool m_connectionTypeHasBeenSet = false;
192
193 Aws::String m_arn;
194 bool m_arnHasBeenSet = false;
195
196 Aws::String m_ownerArn;
197 bool m_ownerArnHasBeenSet = false;
198
199 EnvironmentLifecycle m_lifecycle;
200 bool m_lifecycleHasBeenSet = false;
201
202 ManagedCredentialsStatus m_managedCredentialsStatus;
203 bool m_managedCredentialsStatusHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace Cloud9
208} // namespace Aws
void SetLifecycle(const EnvironmentLifecycle &value)
Environment & WithArn(Aws::String &&value)
void SetType(EnvironmentType &&value)
Definition Environment.h:97
void SetName(const Aws::String &value)
Definition Environment.h:65
void SetOwnerArn(Aws::String &&value)
Environment & WithDescription(const Aws::String &value)
Definition Environment.h:82
Environment & WithName(const char *value)
Definition Environment.h:70
bool ManagedCredentialsStatusHasBeenSet() const
Environment & WithType(EnvironmentType &&value)
Definition Environment.h:99
const Aws::String & GetId() const
Definition Environment.h:49
Environment & WithArn(const Aws::String &value)
Environment & WithManagedCredentialsStatus(const ManagedCredentialsStatus &value)
void SetType(const EnvironmentType &value)
Definition Environment.h:96
Environment & WithLifecycle(const EnvironmentLifecycle &value)
Environment & WithDescription(Aws::String &&value)
Definition Environment.h:83
const ConnectionType & GetConnectionType() const
Environment & WithOwnerArn(Aws::String &&value)
Environment & WithDescription(const char *value)
Definition Environment.h:84
Environment & WithOwnerArn(const char *value)
Environment & WithManagedCredentialsStatus(ManagedCredentialsStatus &&value)
Environment & WithName(const Aws::String &value)
Definition Environment.h:68
void SetOwnerArn(const char *value)
void SetManagedCredentialsStatus(const ManagedCredentialsStatus &value)
void SetManagedCredentialsStatus(ManagedCredentialsStatus &&value)
const Aws::String & GetOwnerArn() const
Environment & WithId(Aws::String &&value)
Definition Environment.h:55
Environment & WithId(const char *value)
Definition Environment.h:56
void SetName(const char *value)
Definition Environment.h:67
void SetOwnerArn(const Aws::String &value)
const ManagedCredentialsStatus & GetManagedCredentialsStatus() const
void SetDescription(const char *value)
Definition Environment.h:81
Environment & WithName(Aws::String &&value)
Definition Environment.h:69
AWS_CLOUD9_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLifecycle(EnvironmentLifecycle &&value)
void SetName(Aws::String &&value)
Definition Environment.h:66
Environment & WithConnectionType(const ConnectionType &value)
void SetArn(Aws::String &&value)
AWS_CLOUD9_API Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
Environment & WithOwnerArn(const Aws::String &value)
Environment & WithId(const Aws::String &value)
Definition Environment.h:54
Environment & WithType(const EnvironmentType &value)
Definition Environment.h:98
void SetId(const Aws::String &value)
Definition Environment.h:51
AWS_CLOUD9_API Environment(Aws::Utils::Json::JsonView jsonValue)
Environment & WithLifecycle(EnvironmentLifecycle &&value)
const Aws::String & GetDescription() const
Definition Environment.h:77
const EnvironmentType & GetType() const
Definition Environment.h:94
void SetConnectionType(ConnectionType &&value)
void SetArn(const Aws::String &value)
const Aws::String & GetArn() const
void SetDescription(Aws::String &&value)
Definition Environment.h:80
Environment & WithConnectionType(ConnectionType &&value)
void SetId(const char *value)
Definition Environment.h:53
void SetDescription(const Aws::String &value)
Definition Environment.h:79
Environment & WithArn(const char *value)
void SetConnectionType(const ConnectionType &value)
const EnvironmentLifecycle & GetLifecycle() const
void SetId(Aws::String &&value)
Definition Environment.h:52
void SetArn(const char *value)
const Aws::String & GetName() const
Definition Environment.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue