AWS SDK for C++  1.8.152
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 DirectoryService
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Tag();
39 
40 
47  inline const Aws::String& GetKey() const{ return m_key; }
48 
55  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
56 
63  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
64 
71  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
72 
79  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
80 
87  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
88 
95  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
96 
103  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
104 
105 
112  inline const Aws::String& GetValue() const{ return m_value; }
113 
120  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
121 
128  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
129 
136  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
137 
144  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
145 
152  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
153 
160  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
161 
168  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
169 
170  private:
171 
172  Aws::String m_key;
173  bool m_keyHasBeenSet;
174 
175  Aws::String m_value;
176  bool m_valueHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace DirectoryService
181 } // namespace Aws
Aws::DirectoryService::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:79
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:55
Aws::DirectoryService::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:120
Aws::DirectoryService::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:136
Aws::DirectoryService::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:144
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:112
Aws::DirectoryService::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:160
Aws::DirectoryService::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:103
Aws::DirectoryService::Model::Tag::Tag
Tag()
Aws::DirectoryService::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:95
Aws::DirectoryService::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:63
Aws::DirectoryService::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:152
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::Tag
Definition: Tag.h:33
Aws::DirectoryService::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:128
Aws::DirectoryService::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:168
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:47
Aws::DirectoryService::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:87