AWS SDK for C++  1.9.1
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 Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace CloudFront
21 {
22 namespace Model
23 {
24 
32  {
33  public:
34  Tag();
35  Tag(const Aws::Utils::Xml::XmlNode& xmlNode);
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
47  inline const Aws::String& GetKey() const{ return m_key; }
48 
55  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
56 
63  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
64 
71  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
72 
79  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
80 
87  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
88 
95  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
96 
103  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
104 
105 
112  inline const Aws::String& GetValue() const{ return m_value; }
113 
120  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
121 
128  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
129 
136  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
137 
144  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
145 
152  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
153 
160  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
161 
168  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
169 
170  private:
171 
172  Aws::String m_key;
173  bool m_keyHasBeenSet;
174 
175  Aws::String m_value;
176  bool m_valueHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace CloudFront
181 } // namespace Aws
Aws::CloudFront::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:63
Aws::CloudFront::Model::Tag::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::Tag::Tag
Tag(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Tag
Definition: Tag.h:32
Aws::CloudFront::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:128
Aws::CloudFront::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:55
Aws::CloudFront::Model::Tag::operator=
Tag & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:152
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:79
Aws::CloudFront::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:136
AWSString.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:144
CloudFront_EXPORTS.h
Aws::CloudFront::Model::Tag::Tag
Tag()
Aws::CloudFront::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:160
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:47
Aws::CloudFront::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:168
Aws::CloudFront::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:95
Aws::CloudFront::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:112
Aws::CloudFront::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:120
Aws::CloudFront::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:103
Aws::CloudFront::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:87