AWS SDK for C++  1.9.106
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 AutoScaling
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& GetResourceId() const{ return m_resourceId; }
46 
50  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
51 
55  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
56 
60  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
61 
65  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
66 
70  inline Tag& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
71 
75  inline Tag& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
76 
80  inline Tag& WithResourceId(const char* value) { SetResourceId(value); return *this;}
81 
82 
87  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
88 
93  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
94 
99  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
100 
105  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
106 
111  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
112 
117  inline Tag& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
118 
123  inline Tag& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
124 
129  inline Tag& WithResourceType(const char* value) { SetResourceType(value); return *this;}
130 
131 
135  inline const Aws::String& GetKey() const{ return m_key; }
136 
140  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
141 
145  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
146 
150  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
151 
155  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
156 
160  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
161 
165  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
166 
170  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
171 
172 
176  inline const Aws::String& GetValue() const{ return m_value; }
177 
181  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
182 
186  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
187 
191  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
192 
196  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
197 
201  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
202 
206  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
207 
211  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
212 
213 
218  inline bool GetPropagateAtLaunch() const{ return m_propagateAtLaunch; }
219 
224  inline bool PropagateAtLaunchHasBeenSet() const { return m_propagateAtLaunchHasBeenSet; }
225 
230  inline void SetPropagateAtLaunch(bool value) { m_propagateAtLaunchHasBeenSet = true; m_propagateAtLaunch = value; }
231 
236  inline Tag& WithPropagateAtLaunch(bool value) { SetPropagateAtLaunch(value); return *this;}
237 
238  private:
239 
240  Aws::String m_resourceId;
241  bool m_resourceIdHasBeenSet;
242 
243  Aws::String m_resourceType;
244  bool m_resourceTypeHasBeenSet;
245 
246  Aws::String m_key;
247  bool m_keyHasBeenSet;
248 
249  Aws::String m_value;
250  bool m_valueHasBeenSet;
251 
252  bool m_propagateAtLaunch;
253  bool m_propagateAtLaunchHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace AutoScaling
258 } // namespace Aws
Aws::AutoScaling::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:145
Aws::AutoScaling::Model::Tag::Tag
Tag(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::Tag::SetResourceId
void SetResourceId(const char *value)
Definition: Tag.h:65
Aws::AutoScaling::Model::Tag::SetResourceType
void SetResourceType(const char *value)
Definition: Tag.h:111
Aws::AutoScaling::Model::Tag::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: Tag.h:55
Aws::AutoScaling::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:176
Aws::AutoScaling::Model::Tag::WithResourceType
Tag & WithResourceType(const Aws::String &value)
Definition: Tag.h:117
Aws::AutoScaling::Model::Tag::operator=
Tag & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::Tag::WithPropagateAtLaunch
Tag & WithPropagateAtLaunch(bool value)
Definition: Tag.h:236
Aws::AutoScaling::Model::Tag::WithResourceId
Tag & WithResourceId(Aws::String &&value)
Definition: Tag.h:75
AWSStreamFwd.h
Aws::AutoScaling::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:191
Aws::AutoScaling::Model::Tag::WithResourceId
Tag & WithResourceId(const char *value)
Definition: Tag.h:80
Aws::AutoScaling::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:165
Aws::AutoScaling::Model::Tag::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: Tag.h:50
Aws::AutoScaling::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:211
Aws::AutoScaling::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:170
Aws::AutoScaling::Model::Tag::WithResourceId
Tag & WithResourceId(const Aws::String &value)
Definition: Tag.h:70
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::Tag::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: Tag.h:60
Aws::AutoScaling::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:135
Aws::AutoScaling::Model::Tag::GetResourceId
const Aws::String & GetResourceId() const
Definition: Tag.h:45
Aws::AutoScaling::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:181
Aws::AutoScaling::Model::Tag::Tag
Tag()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::Tag::WithResourceType
Tag & WithResourceType(const char *value)
Definition: Tag.h:129
Aws::AutoScaling::Model::Tag::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: Tag.h:99
Aws::AutoScaling::Model::Tag::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:196
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:160
Aws::AutoScaling::Model::Tag::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:155
Aws::AutoScaling::Model::Tag::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: Tag.h:93
Aws::AutoScaling::Model::Tag::GetPropagateAtLaunch
bool GetPropagateAtLaunch() const
Definition: Tag.h:218
Aws::AutoScaling::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:150
AWSString.h
Aws::AutoScaling::Model::Tag::SetPropagateAtLaunch
void SetPropagateAtLaunch(bool value)
Definition: Tag.h:230
Aws::AutoScaling::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:206
Aws::AutoScaling::Model::Tag
Definition: Tag.h:32
Aws::AutoScaling::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:186
Aws::AutoScaling::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:201
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::Tag::GetResourceType
const Aws::String & GetResourceType() const
Definition: Tag.h:87
Aws::AutoScaling::Model::Tag::PropagateAtLaunchHasBeenSet
bool PropagateAtLaunchHasBeenSet() const
Definition: Tag.h:224
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:140
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::Tag::WithResourceType
Tag & WithResourceType(Aws::String &&value)
Definition: Tag.h:123
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::Tag::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: Tag.h:105