AWS SDK for C++

AWS SDK for C++ Version 1.11.942

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#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
30 public:
31 AWS_CODEBUILD_API EnvironmentVariable() = default;
32 AWS_CODEBUILD_API EnvironmentVariable(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CODEBUILD_API EnvironmentVariable& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CODEBUILD_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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
EnvironmentVariable & WithValue(ValueT &&value)
AWS_CODEBUILD_API EnvironmentVariable(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEBUILD_API EnvironmentVariable & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EnvironmentVariable & WithType(EnvironmentVariableType value)
EnvironmentVariable & WithName(NameT &&value)
AWS_CODEBUILD_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetType(EnvironmentVariableType value)
EnvironmentVariableType GetType() const
AWS_CODEBUILD_API EnvironmentVariable()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String