AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 Environment& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 Environment& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 Environment& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
88 inline EnvironmentType GetType() const { return m_type; }
89 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 inline void SetType(EnvironmentType value) { m_typeHasBeenSet = true; m_type = value; }
91 inline Environment& WithType(EnvironmentType value) { SetType(value); return *this;}
93
95
99 inline ConnectionType GetConnectionType() const { return m_connectionType; }
100 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
101 inline void SetConnectionType(ConnectionType value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; }
102 inline Environment& WithConnectionType(ConnectionType value) { SetConnectionType(value); return *this;}
104
106
109 inline const Aws::String& GetArn() const { return m_arn; }
110 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
111 template<typename ArnT = Aws::String>
112 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
113 template<typename ArnT = Aws::String>
114 Environment& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
116
118
121 inline const Aws::String& GetOwnerArn() const { return m_ownerArn; }
122 inline bool OwnerArnHasBeenSet() const { return m_ownerArnHasBeenSet; }
123 template<typename OwnerArnT = Aws::String>
124 void SetOwnerArn(OwnerArnT&& value) { m_ownerArnHasBeenSet = true; m_ownerArn = std::forward<OwnerArnT>(value); }
125 template<typename OwnerArnT = Aws::String>
126 Environment& WithOwnerArn(OwnerArnT&& value) { SetOwnerArn(std::forward<OwnerArnT>(value)); return *this;}
128
130
133 inline const EnvironmentLifecycle& GetLifecycle() const { return m_lifecycle; }
134 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
135 template<typename LifecycleT = EnvironmentLifecycle>
136 void SetLifecycle(LifecycleT&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::forward<LifecycleT>(value); }
137 template<typename LifecycleT = EnvironmentLifecycle>
138 Environment& WithLifecycle(LifecycleT&& value) { SetLifecycle(std::forward<LifecycleT>(value)); return *this;}
140
142
155 inline ManagedCredentialsStatus GetManagedCredentialsStatus() const { return m_managedCredentialsStatus; }
156 inline bool ManagedCredentialsStatusHasBeenSet() const { return m_managedCredentialsStatusHasBeenSet; }
157 inline void SetManagedCredentialsStatus(ManagedCredentialsStatus value) { m_managedCredentialsStatusHasBeenSet = true; m_managedCredentialsStatus = value; }
160 private:
161
162 Aws::String m_id;
163 bool m_idHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
172 bool m_typeHasBeenSet = false;
173
174 ConnectionType m_connectionType{ConnectionType::NOT_SET};
175 bool m_connectionTypeHasBeenSet = false;
176
177 Aws::String m_arn;
178 bool m_arnHasBeenSet = false;
179
180 Aws::String m_ownerArn;
181 bool m_ownerArnHasBeenSet = false;
182
183 EnvironmentLifecycle m_lifecycle;
184 bool m_lifecycleHasBeenSet = false;
185
187 bool m_managedCredentialsStatusHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace Cloud9
192} // namespace Aws
Environment & WithType(EnvironmentType value)
Definition Environment.h:91
Environment & WithId(IdT &&value)
Definition Environment.h:54
bool ManagedCredentialsStatusHasBeenSet() const
const Aws::String & GetId() const
Definition Environment.h:49
void SetType(EnvironmentType value)
Definition Environment.h:90
const Aws::String & GetOwnerArn() const
AWS_CLOUD9_API Environment()=default
Environment & WithConnectionType(ConnectionType value)
Environment & WithName(NameT &&value)
Definition Environment.h:66
Environment & WithDescription(DescriptionT &&value)
Definition Environment.h:78
void SetConnectionType(ConnectionType value)
void SetDescription(DescriptionT &&value)
Definition Environment.h:76
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
Definition Environment.h:88
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:73
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
Definition Environment.h:99
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