AWS SDK for C++  1.9.46
AWS SDK for C++
Tag.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
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 ECS
22 {
23 namespace Model
24 {
25 
47  {
48  public:
49  Tag();
53 
54 
59  inline const Aws::String& GetKey() const{ return m_key; }
60 
65  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
66 
71  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
72 
77  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
78 
83  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
84 
89  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
90 
95  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
96 
101  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
102 
103 
108  inline const Aws::String& GetValue() const{ return m_value; }
109 
114  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
115 
120  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
121 
126  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
127 
132  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
133 
138  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
139 
144  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
145 
150  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
151 
152  private:
153 
154  Aws::String m_key;
155  bool m_keyHasBeenSet;
156 
157  Aws::String m_value;
158  bool m_valueHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace ECS
163 } // namespace Aws
Aws::ECS::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:138
Aws::ECS::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:126
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:108
Aws::ECS::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:144
Aws::ECS::Model::Tag::Tag
Tag()
Aws::ECS::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:89
Aws::ECS::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:95
Aws::ECS::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:101
Aws::ECS::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:83
Aws::ECS::Model::Tag
Definition: Tag.h:47
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:132
Aws::ECS::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:150
Aws::ECS::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:65
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::ECS::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:77
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:114
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ECS_EXPORTS.h
Aws::ECS::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:120
Aws::ECS::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:71
Aws::ECS::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:59