AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
KeyValuePair.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
32 {
33 public:
38
39
44 inline const Aws::String& GetName() const{ return m_name; }
45
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51
56 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69
74 inline KeyValuePair& WithName(const Aws::String& value) { SetName(value); return *this;}
75
80 inline KeyValuePair& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81
86 inline KeyValuePair& WithName(const char* value) { SetName(value); return *this;}
87
88
93 inline const Aws::String& GetValue() const{ return m_value; }
94
99 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
100
105 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
106
111 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
112
117 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
118
123 inline KeyValuePair& WithValue(const Aws::String& value) { SetValue(value); return *this;}
124
129 inline KeyValuePair& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
130
135 inline KeyValuePair& WithValue(const char* value) { SetValue(value); return *this;}
136
137 private:
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::String m_value;
143 bool m_valueHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace ECS
148} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
KeyValuePair & WithName(const char *value)
Definition: KeyValuePair.h:86
KeyValuePair & WithValue(Aws::String &&value)
Definition: KeyValuePair.h:129
const Aws::String & GetName() const
Definition: KeyValuePair.h:44
void SetName(Aws::String &&value)
Definition: KeyValuePair.h:62
void SetValue(Aws::String &&value)
Definition: KeyValuePair.h:111
void SetValue(const char *value)
Definition: KeyValuePair.h:117
KeyValuePair & WithName(Aws::String &&value)
Definition: KeyValuePair.h:80
KeyValuePair & WithValue(const Aws::String &value)
Definition: KeyValuePair.h:123
void SetName(const Aws::String &value)
Definition: KeyValuePair.h:56
void SetName(const char *value)
Definition: KeyValuePair.h:68
KeyValuePair & WithValue(const char *value)
Definition: KeyValuePair.h:135
const Aws::String & GetValue() const
Definition: KeyValuePair.h:93
void SetValue(const Aws::String &value)
Definition: KeyValuePair.h:105
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API KeyValuePair & operator=(Aws::Utils::Json::JsonView jsonValue)
KeyValuePair & WithName(const Aws::String &value)
Definition: KeyValuePair.h:74
AWS_ECS_API KeyValuePair(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String