AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
EnvironmentVariableInput.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/EnvironmentVariableScope.h>
9#include <aws/amplifygen3/model/EnvironmentVariableType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyGen3 {
22namespace Model {
23
30 public:
31 AWS_AMPLIFYGEN3_API EnvironmentVariableInput() = default;
34 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetKey() const { return m_key; }
41 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
42 template <typename KeyT = Aws::String>
43 void SetKey(KeyT&& value) {
44 m_keyHasBeenSet = true;
45 m_key = std::forward<KeyT>(value);
46 }
47 template <typename KeyT = Aws::String>
49 SetKey(std::forward<KeyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = Aws::String>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Aws::String>
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
76 inline EnvironmentVariableType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(EnvironmentVariableType value) {
79 m_typeHasBeenSet = true;
80 m_type = value;
81 }
83 SetType(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetComment() const { return m_comment; }
93 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
94 template <typename CommentT = Aws::String>
95 void SetComment(CommentT&& value) {
96 m_commentHasBeenSet = true;
97 m_comment = std::forward<CommentT>(value);
98 }
99 template <typename CommentT = Aws::String>
101 SetComment(std::forward<CommentT>(value));
102 return *this;
103 }
105
107
111 inline EnvironmentVariableScope GetScope() const { return m_scope; }
112 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
114 m_scopeHasBeenSet = true;
115 m_scope = value;
116 }
118 SetScope(value);
119 return *this;
120 }
122 private:
123 Aws::String m_key;
124
125 Aws::String m_value;
126
128
129 Aws::String m_comment;
130
132 bool m_keyHasBeenSet = false;
133 bool m_valueHasBeenSet = false;
134 bool m_typeHasBeenSet = false;
135 bool m_commentHasBeenSet = false;
136 bool m_scopeHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace AmplifyGen3
141} // namespace Aws
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentVariableInput & WithValue(ValueT &&value)
EnvironmentVariableInput & WithType(EnvironmentVariableType value)
EnvironmentVariableInput & WithKey(KeyT &&value)
AWS_AMPLIFYGEN3_API EnvironmentVariableInput & operator=(Aws::Utils::Json::JsonView jsonValue)
EnvironmentVariableInput & WithComment(CommentT &&value)
AWS_AMPLIFYGEN3_API EnvironmentVariableInput(Aws::Utils::Json::JsonView jsonValue)
EnvironmentVariableInput & WithScope(EnvironmentVariableScope value)
AWS_AMPLIFYGEN3_API EnvironmentVariableInput()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue