AWS SDK for C++  1.9.108
AWS SDK for C++
Tag.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_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 ECR
22 {
23 namespace Model
24 {
25 
35  {
36  public:
37  Tag();
41 
42 
47  inline const Aws::String& GetKey() const{ return m_key; }
48 
53  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
54 
59  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
60 
65  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
66 
71  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
72 
77  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
78 
83  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
84 
89  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
90 
91 
96  inline const Aws::String& GetValue() const{ return m_value; }
97 
102  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
103 
108  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
109 
114  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
115 
120  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
121 
126  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
127 
132  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
133 
138  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
139 
140  private:
141 
142  Aws::String m_key;
143  bool m_keyHasBeenSet;
144 
145  Aws::String m_value;
146  bool m_valueHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace ECR
151 } // namespace Aws
Aws::ECR::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:65
Aws::ECR::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:126
Aws::ECR::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::Tag::Tag
Tag()
Aws::ECR::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:120
Aws::ECR::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:59
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:138
Aws::ECR::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:71
Aws::ECR::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:132
Aws::ECR::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:53
ECR_EXPORTS.h
Aws::ECR::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:114
Aws::ECR::Model::Tag
Definition: Tag.h:35
Aws::ECR::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:77
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:89
Aws::ECR::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:96
Aws::ECR::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:102
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECR::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:47
Aws::ECR::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:83
Aws::ECR::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:108