AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EcsEnvironmentVariable.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pipes/Pipes_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pipes {
20namespace Model {
21
32 public:
33 AWS_PIPES_API EcsEnvironmentVariable() = default;
36 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetValue() const { return m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 template <typename ValueT = Aws::String>
65 void SetValue(ValueT&& value) {
66 m_valueHasBeenSet = true;
67 m_value = std::forward<ValueT>(value);
68 }
69 template <typename ValueT = Aws::String>
71 SetValue(std::forward<ValueT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_name;
77
78 Aws::String m_value;
79 bool m_nameHasBeenSet = false;
80 bool m_valueHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Pipes
85} // namespace Aws
EcsEnvironmentVariable & WithName(NameT &&value)
AWS_PIPES_API EcsEnvironmentVariable()=default
AWS_PIPES_API EcsEnvironmentVariable & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PIPES_API EcsEnvironmentVariable(Aws::Utils::Json::JsonView jsonValue)
EcsEnvironmentVariable & WithValue(ValueT &&value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue