AWS SDK for C++  1.9.108
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 Organizations
22 {
23 namespace Model
24 {
25 
36  {
37  public:
38  Tag();
42 
43 
47  inline const Aws::String& GetKey() const{ return m_key; }
48 
52  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
53 
57  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
58 
62  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
63 
67  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
68 
72  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
73 
77  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
78 
82  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
83 
84 
90  inline const Aws::String& GetValue() const{ return m_value; }
91 
97  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
98 
104  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
105 
111  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
112 
118  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
119 
125  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
126 
132  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
133 
139  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
140 
141  private:
142 
143  Aws::String m_key;
144  bool m_keyHasBeenSet;
145 
146  Aws::String m_value;
147  bool m_valueHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace Organizations
152 } // namespace Aws
Aws::Organizations::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:97
Aws::Organizations::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:125
Aws::Organizations::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:62
Aws::Organizations::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:132
Aws::Organizations::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:67
Aws::Organizations::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:57
Aws::Organizations::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:82
Aws::Organizations::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:77
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:111
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Organizations::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:47
Aws::Organizations::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:52
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:139
Aws::Organizations::Model::Tag
Definition: Tag.h:36
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::Tag::Tag
Tag()
Aws::Organizations::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:72
Aws::Organizations::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:118
Aws::Organizations::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:104
Aws::Organizations::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const