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/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codebuild/model/EnvironmentVariableType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeBuild
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEBUILD_API EnvironmentVariable() = default;
37 AWS_CODEBUILD_API EnvironmentVariable(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 EnvironmentVariable& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
68 template<typename ValueT = Aws::String>
69 EnvironmentVariable& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
71
73
91 inline EnvironmentVariableType GetType() const { return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 inline void SetType(EnvironmentVariableType value) { m_typeHasBeenSet = true; m_type = value; }
94 inline EnvironmentVariable& WithType(EnvironmentVariableType value) { SetType(value); return *this;}
96 private:
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 Aws::String m_value;
102 bool m_valueHasBeenSet = false;
103
105 bool m_typeHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace CodeBuild
110} // 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