AWS SDK for C++  1.9.19
AWS SDK for C++
S3Tag.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 Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace S3Control
21 {
22 namespace Model
23 {
24 
31  {
32  public:
33  S3Tag();
36 
37  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38 
39 
43  inline const Aws::String& GetKey() const{ return m_key; }
44 
48  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 
53  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
54 
58  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
59 
63  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
64 
68  inline S3Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
69 
73  inline S3Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
74 
78  inline S3Tag& WithKey(const char* value) { SetKey(value); return *this;}
79 
80 
84  inline const Aws::String& GetValue() const{ return m_value; }
85 
89  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
90 
94  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
95 
99  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
100 
104  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
105 
109  inline S3Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
110 
114  inline S3Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
115 
119  inline S3Tag& WithValue(const char* value) { SetValue(value); return *this;}
120 
121  private:
122 
123  Aws::String m_key;
124  bool m_keyHasBeenSet;
125 
126  Aws::String m_value;
127  bool m_valueHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace S3Control
132 } // namespace Aws
Aws::S3Control::Model::S3Tag::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::S3Tag::S3Tag
S3Tag(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3Tag::SetKey
void SetKey(Aws::String &&value)
Definition: S3Tag.h:58
Aws::S3Control::Model::S3Tag::GetKey
const Aws::String & GetKey() const
Definition: S3Tag.h:43
Aws::S3Control::Model::S3Tag::SetValue
void SetValue(const Aws::String &value)
Definition: S3Tag.h:94
Aws::S3Control::Model::S3Tag::SetKey
void SetKey(const char *value)
Definition: S3Tag.h:63
Aws::S3Control::Model::S3Tag::SetKey
void SetKey(const Aws::String &value)
Definition: S3Tag.h:53
Aws::S3Control::Model::S3Tag::WithValue
S3Tag & WithValue(Aws::String &&value)
Definition: S3Tag.h:114
Aws::S3Control::Model::S3Tag::SetValue
void SetValue(Aws::String &&value)
Definition: S3Tag.h:99
Aws::S3Control::Model::S3Tag::WithKey
S3Tag & WithKey(Aws::String &&value)
Definition: S3Tag.h:73
S3Control_EXPORTS.h
Aws::S3Control::Model::S3Tag::WithKey
S3Tag & WithKey(const char *value)
Definition: S3Tag.h:78
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::S3Tag::operator=
S3Tag & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::S3Tag::WithKey
S3Tag & WithKey(const Aws::String &value)
Definition: S3Tag.h:68
AWSString.h
Aws::S3Control::Model::S3Tag
Definition: S3Tag.h:31
Aws::S3Control::Model::S3Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: S3Tag.h:48
Aws::S3Control::Model::S3Tag::SetValue
void SetValue(const char *value)
Definition: S3Tag.h:104
Aws::S3Control::Model::S3Tag::S3Tag
S3Tag()
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::S3Tag::WithValue
S3Tag & WithValue(const char *value)
Definition: S3Tag.h:119
Aws::S3Control::Model::S3Tag::GetValue
const Aws::String & GetValue() const
Definition: S3Tag.h:84
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::S3Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: S3Tag.h:89
Aws::S3Control::Model::S3Tag::WithValue
S3Tag & WithValue(const Aws::String &value)
Definition: S3Tag.h:109