AWS SDK for C++  1.9.158
AWS SDK for C++
Tag.h
Go to the documentation of this file.
1 
6 #pragma once
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 ElasticBeanstalk
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Tag();
36  Tag(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 
46  inline const Aws::String& GetKey() const{ return m_key; }
47 
51  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
52 
56  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
57 
61  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
62 
66  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
67 
71  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
72 
76  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
77 
81  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
82 
83 
87  inline const Aws::String& GetValue() const{ return m_value; }
88 
92  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
93 
97  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
98 
102  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
103 
107  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
108 
112  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
113 
117  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
118 
122  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
123 
124  private:
125 
126  Aws::String m_key;
127  bool m_keyHasBeenSet;
128 
129  Aws::String m_value;
130  bool m_valueHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace ElasticBeanstalk
135 } // namespace Aws
Aws::ElasticBeanstalk::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:122
Aws::ElasticBeanstalk::Model::Tag::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:92
Aws::ElasticBeanstalk::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:87
Aws::ElasticBeanstalk::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:66
Aws::ElasticBeanstalk::Model::Tag::operator=
Tag & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ElasticBeanstalk::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:46
Aws::ElasticBeanstalk::Model::Tag::Tag
Tag()
AWSStreamFwd.h
Aws::ElasticBeanstalk::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:107
Aws::ElasticBeanstalk::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:71
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::ElasticBeanstalk::Model::Tag::Tag
Tag(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ElasticBeanstalk::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:61
Aws::ElasticBeanstalk::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:117
AWSString.h
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::Tag::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:76
Aws::ElasticBeanstalk::Model::Tag
Definition: Tag.h:33
Aws::ElasticBeanstalk::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:97
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::ElasticBeanstalk::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:51
Aws::ElasticBeanstalk::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:56
Aws::ElasticBeanstalk::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:102
Aws::ElasticBeanstalk::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:81
Aws::ElasticBeanstalk::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:112