AWS SDK for C++  1.9.154
AWS SDK for C++
TagDescription.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:
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 TagDescription& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
71 
75  inline TagDescription& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
76 
80  inline TagDescription& 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 TagDescription& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
118 
123  inline TagDescription& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
124 
129  inline TagDescription& 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 TagDescription& WithKey(const Aws::String& value) { SetKey(value); return *this;}
161 
165  inline TagDescription& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
166 
170  inline TagDescription& 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 TagDescription& WithValue(const Aws::String& value) { SetValue(value); return *this;}
202 
206  inline TagDescription& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
207 
211  inline TagDescription& 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 TagDescription& 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::TagDescription::WithValue
TagDescription & WithValue(const char *value)
Definition: TagDescription.h:211
Aws::AutoScaling::Model::TagDescription::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: TagDescription.h:60
Aws::AutoScaling::Model::TagDescription::WithResourceType
TagDescription & WithResourceType(const Aws::String &value)
Definition: TagDescription.h:117
Aws::AutoScaling::Model::TagDescription::SetResourceId
void SetResourceId(const char *value)
Definition: TagDescription.h:65
Aws::AutoScaling::Model::TagDescription::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: TagDescription.h:93
Aws::AutoScaling::Model::TagDescription::SetKey
void SetKey(const char *value)
Definition: TagDescription.h:155
Aws::AutoScaling::Model::TagDescription::TagDescription
TagDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::TagDescription::SetKey
void SetKey(Aws::String &&value)
Definition: TagDescription.h:150
Aws::AutoScaling::Model::TagDescription::WithValue
TagDescription & WithValue(const Aws::String &value)
Definition: TagDescription.h:201
Aws::AutoScaling::Model::TagDescription::WithResourceType
TagDescription & WithResourceType(const char *value)
Definition: TagDescription.h:129
AWSStreamFwd.h
Aws::AutoScaling::Model::TagDescription::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: TagDescription.h:55
Aws::AutoScaling::Model::TagDescription::WithKey
TagDescription & WithKey(const Aws::String &value)
Definition: TagDescription.h:160
Aws::AutoScaling::Model::TagDescription::PropagateAtLaunchHasBeenSet
bool PropagateAtLaunchHasBeenSet() const
Definition: TagDescription.h:224
Aws::AutoScaling::Model::TagDescription
Definition: TagDescription.h:32
Aws::AutoScaling::Model::TagDescription::WithResourceType
TagDescription & WithResourceType(Aws::String &&value)
Definition: TagDescription.h:123
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::TagDescription::WithKey
TagDescription & WithKey(Aws::String &&value)
Definition: TagDescription.h:165
Aws::AutoScaling::Model::TagDescription::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: TagDescription.h:140
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::TagDescription::WithPropagateAtLaunch
TagDescription & WithPropagateAtLaunch(bool value)
Definition: TagDescription.h:236
Aws::AutoScaling::Model::TagDescription::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::TagDescription::GetValue
const Aws::String & GetValue() const
Definition: TagDescription.h:176
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::TagDescription::GetPropagateAtLaunch
bool GetPropagateAtLaunch() const
Definition: TagDescription.h:218
Aws::AutoScaling::Model::TagDescription::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: TagDescription.h:50
Aws::AutoScaling::Model::TagDescription::WithResourceId
TagDescription & WithResourceId(Aws::String &&value)
Definition: TagDescription.h:75
Aws::AutoScaling::Model::TagDescription::WithKey
TagDescription & WithKey(const char *value)
Definition: TagDescription.h:170
Aws::AutoScaling::Model::TagDescription::SetValue
void SetValue(const char *value)
Definition: TagDescription.h:196
AWSString.h
Aws::AutoScaling::Model::TagDescription::WithValue
TagDescription & WithValue(Aws::String &&value)
Definition: TagDescription.h:206
Aws::AutoScaling::Model::TagDescription::GetResourceId
const Aws::String & GetResourceId() const
Definition: TagDescription.h:45
Aws::AutoScaling::Model::TagDescription::SetValue
void SetValue(const Aws::String &value)
Definition: TagDescription.h:186
Aws::AutoScaling::Model::TagDescription::WithResourceId
TagDescription & WithResourceId(const Aws::String &value)
Definition: TagDescription.h:70
Aws::AutoScaling::Model::TagDescription::operator=
TagDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::TagDescription::GetResourceType
const Aws::String & GetResourceType() const
Definition: TagDescription.h:87
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::TagDescription::GetKey
const Aws::String & GetKey() const
Definition: TagDescription.h:135
Aws::AutoScaling::Model::TagDescription::WithResourceId
TagDescription & WithResourceId(const char *value)
Definition: TagDescription.h:80
Aws::AutoScaling::Model::TagDescription::SetKey
void SetKey(const Aws::String &value)
Definition: TagDescription.h:145
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::TagDescription::SetResourceType
void SetResourceType(const char *value)
Definition: TagDescription.h:111
Aws::AutoScaling::Model::TagDescription::TagDescription
TagDescription()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::TagDescription::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::TagDescription::SetPropagateAtLaunch
void SetPropagateAtLaunch(bool value)
Definition: TagDescription.h:230
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::TagDescription::SetValue
void SetValue(Aws::String &&value)
Definition: TagDescription.h:191
Aws::AutoScaling::Model::TagDescription::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: TagDescription.h:181
Aws::AutoScaling::Model::TagDescription::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: TagDescription.h:105
Aws::AutoScaling::Model::TagDescription::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: TagDescription.h:99