AWS SDK for C++  1.9.104
AWS SDK for C++
Tag.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_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 SNS
22 {
23 namespace Model
24 {
25 
32  {
33  public:
34  Tag();
35  Tag(const Aws::Utils::Xml::XmlNode& xmlNode);
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetKey() const{ return m_key; }
46 
50  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 
55  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
56 
60  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
61 
65  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
66 
70  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
71 
75  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
76 
80  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
81 
82 
86  inline const Aws::String& GetValue() const{ return m_value; }
87 
91  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
92 
96  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
97 
101  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
102 
106  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
107 
111  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
112 
116  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
117 
121  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
122 
123  private:
124 
125  Aws::String m_key;
126  bool m_keyHasBeenSet;
127 
128  Aws::String m_value;
129  bool m_valueHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace SNS
134 } // namespace Aws
Aws::SNS::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:101
Aws::SNS::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:80
Aws::SNS::Model::Tag::Tag
Tag()
Aws::SNS::Model::Tag
Definition: Tag.h:32
Aws::SNS::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:121
Aws::SNS::Model::Tag::Tag
Tag(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::SNS::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:45
Aws::SNS::Model::Tag::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SNS::Model::Tag::operator=
Tag & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SNS::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:70
Aws::SNS::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:111
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SNS::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:55
AWSString.h
Aws::SNS::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:75
Aws::SNS::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:91
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:116
Aws::SNS::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::Tag::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
index
int index
Definition: cJSON.h:181
Aws::SNS::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:65
Aws::SNS::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:106
Aws::SNS::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:60
Aws::SNS::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:96
Aws::SNS::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:50