AWS SDK for C++  1.9.129
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 SageMaker
22 {
23 namespace Model
24 {
25 
44  {
45  public:
46  Tag();
50 
51 
55  inline const Aws::String& GetKey() const{ return m_key; }
56 
60  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
61 
65  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
66 
70  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
71 
75  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
76 
80  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
81 
85  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
86 
90  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
91 
92 
96  inline const Aws::String& GetValue() const{ return m_value; }
97 
101  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
102 
106  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
107 
111  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
112 
116  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
117 
121  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
122 
126  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
127 
131  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
132 
133  private:
134 
135  Aws::String m_key;
136  bool m_keyHasBeenSet;
137 
138  Aws::String m_value;
139  bool m_valueHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace SageMaker
144 } // namespace Aws
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::SageMaker::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:85
Aws::SageMaker::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:65
Aws::SageMaker::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:126
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:131
Aws::SageMaker::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:80
Aws::SageMaker::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:70
Aws::SageMaker::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:121
Aws::SageMaker::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:101
Aws::SageMaker::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:90
Aws::SageMaker::Model::Tag::Tag
Tag()
Aws::SageMaker::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:55
Aws::SageMaker::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:116
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:96
Aws::SageMaker::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:111
Aws::SageMaker::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:75
Aws::SageMaker::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:106
Aws::SageMaker::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:60