AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline EnvironmentVariable& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline EnvironmentVariable& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline EnvironmentVariable& WithName(const char* value) { SetName(value); return *this;}
55
57
66 inline const Aws::String& GetValue() const{ return m_value; }
67 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
68 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
69 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
70 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
71 inline EnvironmentVariable& WithValue(const Aws::String& value) { SetValue(value); return *this;}
72 inline EnvironmentVariable& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
73 inline EnvironmentVariable& WithValue(const char* value) { SetValue(value); return *this;}
75
77
95 inline const EnvironmentVariableType& GetType() const{ return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 inline void SetType(const EnvironmentVariableType& value) { m_typeHasBeenSet = true; m_type = value; }
98 inline void SetType(EnvironmentVariableType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
99 inline EnvironmentVariable& WithType(const EnvironmentVariableType& value) { SetType(value); return *this;}
100 inline EnvironmentVariable& WithType(EnvironmentVariableType&& value) { SetType(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_name;
105 bool m_nameHasBeenSet = false;
106
107 Aws::String m_value;
108 bool m_valueHasBeenSet = false;
109
111 bool m_typeHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace CodeBuild
116} // namespace Aws
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentVariable & WithName(const Aws::String &value)
EnvironmentVariable & WithName(Aws::String &&value)
void SetType(EnvironmentVariableType &&value)
const EnvironmentVariableType & GetType() const
EnvironmentVariable & WithType(EnvironmentVariableType &&value)
void SetType(const EnvironmentVariableType &value)
EnvironmentVariable & WithName(const char *value)
EnvironmentVariable & WithValue(const char *value)
EnvironmentVariable & WithValue(const Aws::String &value)
EnvironmentVariable & WithType(const EnvironmentVariableType &value)
EnvironmentVariable & WithValue(Aws::String &&value)
AWS_CODEBUILD_API EnvironmentVariable(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API EnvironmentVariable & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue