AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Tag.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
46 class Tag
47 {
48 public:
53
54
59 inline const Aws::String& GetKey() const{ return m_key; }
60
65 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
66
71 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
72
77 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
78
83 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
84
89 inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
90
95 inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
96
101 inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
102
103
108 inline const Aws::String& GetValue() const{ return m_value; }
109
114 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
115
120 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
121
126 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
127
132 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
133
138 inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
139
144 inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
145
150 inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
151
152 private:
153
154 Aws::String m_key;
155 bool m_keyHasBeenSet = false;
156
157 Aws::String m_value;
158 bool m_valueHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace ECS
163} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetValue(const Aws::String &value)
Definition: Tag.h:120
bool KeyHasBeenSet() const
Definition: Tag.h:65
bool ValueHasBeenSet() const
Definition: Tag.h:114
void SetKey(const char *value)
Definition: Tag.h:83
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:95
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:138
void SetKey(const Aws::String &value)
Definition: Tag.h:71
void SetValue(Aws::String &&value)
Definition: Tag.h:126
void SetKey(Aws::String &&value)
Definition: Tag.h:77
AWS_ECS_API Tag()
const Aws::String & GetValue() const
Definition: Tag.h:108
Tag & WithValue(const char *value)
Definition: Tag.h:150
const Aws::String & GetKey() const
Definition: Tag.h:59
Tag & WithKey(const char *value)
Definition: Tag.h:101
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:144
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const char *value)
Definition: Tag.h:132
AWS_ECS_API Tag(Aws::Utils::Json::JsonView jsonValue)
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String