AWS SDK for C++  1.9.109
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 MachineLearning
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Tag();
39 
40 
45  inline const Aws::String& GetKey() const{ return m_key; }
46 
51  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
52 
57  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
58 
63  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
64 
69  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
70 
75  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
76 
81  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
82 
87  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
88 
89 
95  inline const Aws::String& GetValue() const{ return m_value; }
96 
102  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
103 
109  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
110 
116  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
117 
123  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
124 
130  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
131 
137  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
138 
144  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
145 
146  private:
147 
148  Aws::String m_key;
149  bool m_keyHasBeenSet;
150 
151  Aws::String m_value;
152  bool m_valueHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace MachineLearning
157 } // namespace Aws
Aws::MachineLearning::Model::Tag::Tag
Tag()
Aws::MachineLearning::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:144
Aws::MachineLearning::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:81
Aws::MachineLearning::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:109
Aws::MachineLearning::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:137
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:123
Aws::MachineLearning::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:95
Aws::MachineLearning::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::MachineLearning::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MachineLearning::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:57
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:87
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MachineLearning::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:45
Aws::MachineLearning::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:116
Aws::MachineLearning::Model::Tag
Definition: Tag.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:130
Aws::MachineLearning::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:51
Aws::MachineLearning::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MachineLearning::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:102
Aws::MachineLearning::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:69
Aws::MachineLearning::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:63