AWS SDK for C++  1.9.106
AWS SDK for C++
Tag.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ElasticsearchService
22 {
23 namespace Model
24 {
25 
32  {
33  public:
34  Tag();
38 
39 
44  inline const Aws::String& GetKey() const{ return m_key; }
45 
50  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 
56  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
57 
62  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
63 
68  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
69 
74  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
75 
80  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
81 
86  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
87 
88 
95  inline const Aws::String& GetValue() const{ return m_value; }
96 
103  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
104 
111  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
112 
119  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
120 
127  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
128 
135  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
136 
143  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
144 
151  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
152 
153  private:
154 
155  Aws::String m_key;
156  bool m_keyHasBeenSet;
157 
158  Aws::String m_value;
159  bool m_valueHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace ElasticsearchService
164 } // namespace Aws
Aws::ElasticsearchService::Model::Tag::Tag
Tag()
Aws::ElasticsearchService::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:119
Aws::ElasticsearchService::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:135
Aws::ElasticsearchService::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:62
Aws::ElasticsearchService::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:74
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:103
Aws::ElasticsearchService::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:111
Aws::ElasticsearchService::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:127
Aws::ElasticsearchService::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:68
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:50
Aws::ElasticsearchService::Model::Tag
Definition: Tag.h:32
Aws::ElasticsearchService::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ElasticsearchService::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:151
Aws::ElasticsearchService::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:143
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:95
Aws::ElasticsearchService::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:80
Aws::ElasticsearchService::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:44
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:56