AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EnvironmentVariable.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/EnvironmentVariableType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
30 public:
31 AWS_CODEBUILD_API EnvironmentVariable() = default;
32 AWS_CODEBUILD_API EnvironmentVariable(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 EnvironmentVariable& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
64 inline const Aws::String& GetValue() const { return m_value; }
65 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
66 template <typename ValueT = Aws::String>
67 void SetValue(ValueT&& value) {
68 m_valueHasBeenSet = true;
69 m_value = std::forward<ValueT>(value);
70 }
71 template <typename ValueT = Aws::String>
72 EnvironmentVariable& WithValue(ValueT&& value) {
73 SetValue(std::forward<ValueT>(value));
74 return *this;
75 }
77
79
97 inline EnvironmentVariableType GetType() const { return m_type; }
98 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
99 inline void SetType(EnvironmentVariableType value) {
100 m_typeHasBeenSet = true;
101 m_type = value;
102 }
104 SetType(value);
105 return *this;
106 }
108 private:
109 Aws::String m_name;
110
111 Aws::String m_value;
112
114 bool m_nameHasBeenSet = false;
115 bool m_valueHasBeenSet = false;
116 bool m_typeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace CodeBuild
121} // namespace Aws
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentVariable & WithValue(ValueT &&value)
EnvironmentVariable & WithType(EnvironmentVariableType value)
EnvironmentVariable & WithName(NameT &&value)
void SetType(EnvironmentVariableType value)
EnvironmentVariableType GetType() const
AWS_CODEBUILD_API EnvironmentVariable(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API EnvironmentVariable & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API EnvironmentVariable()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue