AWS SDK for C++  1.9.106
AWS SDK for C++
Tag.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sts/STS_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 STS
22 {
23 namespace Model
24 {
25 
36  {
37  public:
38  Tag();
39  Tag(const Aws::Utils::Xml::XmlNode& xmlNode);
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
53  inline const Aws::String& GetKey() const{ return m_key; }
54 
62  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
63 
71  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
72 
80  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
81 
89  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
90 
98  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
99 
107  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
108 
116  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
117 
118 
126  inline const Aws::String& GetValue() const{ return m_value; }
127 
135  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
136 
144  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
145 
153  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
154 
162  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
163 
171  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
172 
180  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
181 
189  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
190 
191  private:
192 
193  Aws::String m_key;
194  bool m_keyHasBeenSet;
195 
196  Aws::String m_value;
197  bool m_valueHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace STS
202 } // namespace Aws
Aws::STS::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:62
Aws::STS::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:171
Aws::STS::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:189
Aws::STS::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:162
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::Tag
Definition: Tag.h:36
Aws::STS::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:107
Aws::STS::Model::Tag::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::STS::Model::Tag::operator=
Tag & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::STS::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:153
Aws::STS::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:126
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::STS::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:144
STS_EXPORTS.h
Aws::STS::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:180
Aws::STS::Model::Tag::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::STS::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:53
Aws::STS::Model::Tag::Tag
Tag(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::STS::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:80
Aws::STS::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:98
Aws
Definition: AccessManagementClient.h:15
Aws::STS::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:135
Aws::STS::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:89
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::STS::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:71
index
int index
Definition: cJSON.h:181
Aws::STS::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:116
Aws::STS::Model::Tag::Tag
Tag()