AWS SDK for C++  1.9.104
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 SFN
22 {
23 namespace Model
24 {
25 
41  {
42  public:
43  Tag();
47 
48 
52  inline const Aws::String& GetKey() const{ return m_key; }
53 
57  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
58 
62  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
63 
67  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
68 
72  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
73 
77  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
78 
82  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
83 
87  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
88 
89 
93  inline const Aws::String& GetValue() const{ return m_value; }
94 
98  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
99 
103  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
104 
108  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
109 
113  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
114 
118  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
119 
123  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
124 
128  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
129 
130  private:
131 
132  Aws::String m_key;
133  bool m_keyHasBeenSet;
134 
135  Aws::String m_value;
136  bool m_valueHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace SFN
141 } // namespace Aws
Aws::SFN::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:67
Aws::SFN::Model::Tag::Tag
Tag()
Aws::SFN::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:118
Aws::SFN::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:98
Aws::SFN::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:128
Aws::SFN::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:103
Aws::SFN::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
SFN_EXPORTS.h
Aws::SFN::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:93
Aws::SFN::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:52
Aws::SFN::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:57
Aws::SFN::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SFN::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:123
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SFN::Model::Tag
Definition: Tag.h:41
Aws::SFN::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:62
Aws::SFN::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:87
Aws::SFN::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:77
Aws::SFN::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:108
Aws
Definition: AccessManagementClient.h:15
Aws::SFN::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:72
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SFN::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:82
Aws::SFN::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:113
Aws::SFN::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)