AWS SDK for C++  1.9.105
AWS SDK for C++
EnvironmentVariable.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace OpsWorks
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
46  inline const Aws::String& GetKey() const{ return m_key; }
47 
54  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
55 
62  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
63 
70  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
71 
78  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
79 
86  inline EnvironmentVariable& WithKey(const Aws::String& value) { SetKey(value); return *this;}
87 
94  inline EnvironmentVariable& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
95 
102  inline EnvironmentVariable& WithKey(const char* value) { SetKey(value); return *this;}
103 
104 
110  inline const Aws::String& GetValue() const{ return m_value; }
111 
117  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
118 
124  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
125 
131  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
132 
138  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
139 
145  inline EnvironmentVariable& WithValue(const Aws::String& value) { SetValue(value); return *this;}
146 
152  inline EnvironmentVariable& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
153 
159  inline EnvironmentVariable& WithValue(const char* value) { SetValue(value); return *this;}
160 
161 
169  inline bool GetSecure() const{ return m_secure; }
170 
178  inline bool SecureHasBeenSet() const { return m_secureHasBeenSet; }
179 
187  inline void SetSecure(bool value) { m_secureHasBeenSet = true; m_secure = value; }
188 
196  inline EnvironmentVariable& WithSecure(bool value) { SetSecure(value); return *this;}
197 
198  private:
199 
200  Aws::String m_key;
201  bool m_keyHasBeenSet;
202 
203  Aws::String m_value;
204  bool m_valueHasBeenSet;
205 
206  bool m_secure;
207  bool m_secureHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace OpsWorks
212 } // namespace Aws
Aws::OpsWorks::Model::EnvironmentVariable::SetKey
void SetKey(const char *value)
Definition: EnvironmentVariable.h:78
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::EnvironmentVariable::SetValue
void SetValue(const char *value)
Definition: EnvironmentVariable.h:138
Aws::OpsWorks::Model::EnvironmentVariable::WithKey
EnvironmentVariable & WithKey(Aws::String &&value)
Definition: EnvironmentVariable.h:94
Aws::OpsWorks::Model::EnvironmentVariable::SetSecure
void SetSecure(bool value)
Definition: EnvironmentVariable.h:187
Aws::OpsWorks::Model::EnvironmentVariable::WithKey
EnvironmentVariable & WithKey(const Aws::String &value)
Definition: EnvironmentVariable.h:86
Aws::OpsWorks::Model::EnvironmentVariable::WithSecure
EnvironmentVariable & WithSecure(bool value)
Definition: EnvironmentVariable.h:196
Aws::OpsWorks::Model::EnvironmentVariable::GetKey
const Aws::String & GetKey() const
Definition: EnvironmentVariable.h:46
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::EnvironmentVariable::GetValue
const Aws::String & GetValue() const
Definition: EnvironmentVariable.h:110
Aws::OpsWorks::Model::EnvironmentVariable::EnvironmentVariable
EnvironmentVariable(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::EnvironmentVariable::SetValue
void SetValue(Aws::String &&value)
Definition: EnvironmentVariable.h:131
Aws::OpsWorks::Model::EnvironmentVariable::SetKey
void SetKey(Aws::String &&value)
Definition: EnvironmentVariable.h:70
Aws::OpsWorks::Model::EnvironmentVariable::WithValue
EnvironmentVariable & WithValue(const Aws::String &value)
Definition: EnvironmentVariable.h:145
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::OpsWorks::Model::EnvironmentVariable::operator=
EnvironmentVariable & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::EnvironmentVariable::WithKey
EnvironmentVariable & WithKey(const char *value)
Definition: EnvironmentVariable.h:102
Aws::OpsWorks::Model::EnvironmentVariable::EnvironmentVariable
EnvironmentVariable()
Aws::OpsWorks::Model::EnvironmentVariable::WithValue
EnvironmentVariable & WithValue(Aws::String &&value)
Definition: EnvironmentVariable.h:152
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::EnvironmentVariable
Definition: EnvironmentVariable.h:32
Aws::OpsWorks::Model::EnvironmentVariable::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: EnvironmentVariable.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::EnvironmentVariable::GetSecure
bool GetSecure() const
Definition: EnvironmentVariable.h:169
Aws::OpsWorks::Model::EnvironmentVariable::SetValue
void SetValue(const Aws::String &value)
Definition: EnvironmentVariable.h:124
Aws::OpsWorks::Model::EnvironmentVariable::SecureHasBeenSet
bool SecureHasBeenSet() const
Definition: EnvironmentVariable.h:178
Aws::OpsWorks::Model::EnvironmentVariable::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: EnvironmentVariable.h:54
Aws::OpsWorks::Model::EnvironmentVariable::SetKey
void SetKey(const Aws::String &value)
Definition: EnvironmentVariable.h:62
Aws::OpsWorks::Model::EnvironmentVariable::WithValue
EnvironmentVariable & WithValue(const char *value)
Definition: EnvironmentVariable.h:159
Aws::OpsWorks::Model::EnvironmentVariable::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const