AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EnvironmentVariable.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codepipeline/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 CodePipeline
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CODEPIPELINE_API EnvironmentVariable() = default;
36 AWS_CODEPIPELINE_API EnvironmentVariable(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 EnvironmentVariable& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetValue() const { return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 template<typename ValueT = Aws::String>
60 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
61 template<typename ValueT = Aws::String>
62 EnvironmentVariable& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
64
66
72 inline EnvironmentVariableType GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(EnvironmentVariableType value) { m_typeHasBeenSet = true; m_type = value; }
75 inline EnvironmentVariable& WithType(EnvironmentVariableType value) { SetType(value); return *this;}
77 private:
78
79 Aws::String m_name;
80 bool m_nameHasBeenSet = false;
81
82 Aws::String m_value;
83 bool m_valueHasBeenSet = false;
84
86 bool m_typeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CodePipeline
91} // namespace Aws
EnvironmentVariable & WithName(NameT &&value)
AWS_CODEPIPELINE_API EnvironmentVariable & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(EnvironmentVariableType value)
EnvironmentVariable & WithValue(ValueT &&value)
AWS_CODEPIPELINE_API EnvironmentVariable()=default
AWS_CODEPIPELINE_API EnvironmentVariable(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentVariable & WithType(EnvironmentVariableType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue