AWS SDK for C++  1.8.95
AWS SDK for C++
Tag.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace RDS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Tag();
36  Tag(const Aws::Utils::Xml::XmlNode& xmlNode);
37  Tag& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
50  inline const Aws::String& GetKey() const{ return m_key; }
51 
59  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 
68  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
69 
77  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
78 
86  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
87 
95  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
96 
104  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
105 
113  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
114 
115 
123  inline const Aws::String& GetValue() const{ return m_value; }
124 
132  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
133 
141  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
142 
150  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
151 
159  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
160 
168  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
169 
177  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
178 
186  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
187 
188  private:
189 
190  Aws::String m_key;
191  bool m_keyHasBeenSet;
192 
193  Aws::String m_value;
194  bool m_valueHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace RDS
199 } // namespace Aws
void SetKey(Aws::String &&value)
Definition: Tag.h:77
const Aws::String & GetValue() const
Definition: Tag.h:123
bool KeyHasBeenSet() const
Definition: Tag.h:59
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:168
const Aws::String & GetKey() const
Definition: Tag.h:50
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:95
void SetValue(const char *value)
Definition: Tag.h:159
int index
Definition: cJSON.h:171
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:177
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:104
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Tag & WithKey(const char *value)
Definition: Tag.h:113
void SetValue(const Aws::String &value)
Definition: Tag.h:141
void SetKey(const char *value)
Definition: Tag.h:86
Tag & WithValue(const char *value)
Definition: Tag.h:186
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
bool ValueHasBeenSet() const
Definition: Tag.h:132
void SetValue(Aws::String &&value)
Definition: Tag.h:150
void SetKey(const Aws::String &value)
Definition: Tag.h:68