AWS SDK for C++  1.9.123
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 SESV2
22 {
23 namespace Model
24 {
25 
53  {
54  public:
55  Tag();
59 
60 
65  inline const Aws::String& GetKey() const{ return m_key; }
66 
71  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
72 
77  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
78 
83  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
84 
89  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
90 
95  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
96 
101  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
102 
107  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
108 
109 
117  inline const Aws::String& GetValue() const{ return m_value; }
118 
126  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
127 
135  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
136 
144  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
145 
153  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
154 
162  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
163 
171  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
172 
180  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
181 
182  private:
183 
184  Aws::String m_key;
185  bool m_keyHasBeenSet;
186 
187  Aws::String m_value;
188  bool m_valueHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace SESV2
193 } // namespace Aws
Aws::SESV2::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:89
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:65
Aws::SESV2::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:95
Aws::SESV2::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:117
Aws::SESV2::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:101
Aws::SESV2::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:107
Aws::SESV2::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:180
Aws::SESV2::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:71
Aws::SESV2::Model::Tag::Tag
Tag()
Aws::SESV2::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:126
Aws::SESV2::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:144
Aws::SESV2::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:162
Aws::SESV2::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SESV2::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SESV2::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:135
SESV2_EXPORTS.h
Aws::SESV2::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:153
Aws::SESV2::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::Tag
Definition: Tag.h:53
Aws::SESV2::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:77
Aws::SESV2::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:171