AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EnvironmentVariable.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpsWorks
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_OPSWORKS_API EnvironmentVariable() = default;
37 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
47 inline const Aws::String& GetKey() const { return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 template<typename KeyT = Aws::String>
50 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
51 template<typename KeyT = Aws::String>
52 EnvironmentVariable& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
54
56
61 inline const Aws::String& GetValue() const { return m_value; }
62 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
63 template<typename ValueT = Aws::String>
64 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
65 template<typename ValueT = Aws::String>
66 EnvironmentVariable& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
68
70
77 inline bool GetSecure() const { return m_secure; }
78 inline bool SecureHasBeenSet() const { return m_secureHasBeenSet; }
79 inline void SetSecure(bool value) { m_secureHasBeenSet = true; m_secure = value; }
80 inline EnvironmentVariable& WithSecure(bool value) { SetSecure(value); return *this;}
82 private:
83
84 Aws::String m_key;
85 bool m_keyHasBeenSet = false;
86
87 Aws::String m_value;
88 bool m_valueHasBeenSet = false;
89
90 bool m_secure{false};
91 bool m_secureHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace OpsWorks
96} // namespace Aws
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPSWORKS_API EnvironmentVariable(Aws::Utils::Json::JsonView jsonValue)
EnvironmentVariable & WithSecure(bool value)
EnvironmentVariable & WithKey(KeyT &&value)
AWS_OPSWORKS_API EnvironmentVariable & operator=(Aws::Utils::Json::JsonView jsonValue)
EnvironmentVariable & WithValue(ValueT &&value)
AWS_OPSWORKS_API EnvironmentVariable()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue