AWS SDK for C++  1.9.65
AWS SDK for C++
TagDescription.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
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 TagDescription& WithKey(const Aws::String& value) { SetKey(value); return *this;}
72 
76  inline TagDescription& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
77 
81  inline TagDescription& WithKey(const char* value) { SetKey(value); return *this;}
82 
83 
87  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
88 
92  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
93 
97  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
98 
102  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
103 
107  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
108 
112  inline TagDescription& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
113 
117  inline TagDescription& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
118 
122  inline TagDescription& WithResourceId(const char* value) { SetResourceId(value); return *this;}
123 
124 
128  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
129 
133  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
134 
138  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
139 
143  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
144 
148  inline TagDescription& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
149 
153  inline TagDescription& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
154 
155 
159  inline const Aws::String& GetValue() const{ return m_value; }
160 
164  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
165 
169  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
170 
174  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
175 
179  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
180 
184  inline TagDescription& WithValue(const Aws::String& value) { SetValue(value); return *this;}
185 
189  inline TagDescription& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
190 
194  inline TagDescription& WithValue(const char* value) { SetValue(value); return *this;}
195 
196  private:
197 
198  Aws::String m_key;
199  bool m_keyHasBeenSet;
200 
201  Aws::String m_resourceId;
202  bool m_resourceIdHasBeenSet;
203 
204  ResourceType m_resourceType;
205  bool m_resourceTypeHasBeenSet;
206 
207  Aws::String m_value;
208  bool m_valueHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace EC2
213 } // namespace Aws
Aws::EC2::Model::TagDescription::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: TagDescription.h:51
Aws::EC2::Model::TagDescription::WithResourceType
TagDescription & WithResourceType(const ResourceType &value)
Definition: TagDescription.h:148
Aws::EC2::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::EC2::Model::TagDescription::WithKey
TagDescription & WithKey(Aws::String &&value)
Definition: TagDescription.h:76
Aws::EC2::Model::TagDescription::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: TagDescription.h:164
Aws::EC2::Model::TagDescription::GetKey
const Aws::String & GetKey() const
Definition: TagDescription.h:46
Aws::EC2::Model::TagDescription::WithResourceType
TagDescription & WithResourceType(ResourceType &&value)
Definition: TagDescription.h:153
Aws::EC2::Model::TagDescription::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: TagDescription.h:133
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TagDescription::SetKey
void SetKey(Aws::String &&value)
Definition: TagDescription.h:61
Aws::EC2::Model::TagDescription::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::EC2::Model::TagDescription::WithValue
TagDescription & WithValue(const char *value)
Definition: TagDescription.h:194
Aws::EC2::Model::TagDescription::WithResourceId
TagDescription & WithResourceId(const char *value)
Definition: TagDescription.h:122
Aws::EC2::Model::TagDescription::operator=
TagDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TagDescription::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: TagDescription.h:102
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TagDescription::WithKey
TagDescription & WithKey(const Aws::String &value)
Definition: TagDescription.h:71
Aws::EC2::Model::TagDescription::WithKey
TagDescription & WithKey(const char *value)
Definition: TagDescription.h:81
Aws::EC2::Model::TagDescription::GetValue
const Aws::String & GetValue() const
Definition: TagDescription.h:159
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TagDescription::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: TagDescription.h:92
Aws::EC2::Model::TagDescription::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TagDescription::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: TagDescription.h:143
Aws::EC2::Model::TagDescription::WithResourceId
TagDescription & WithResourceId(const Aws::String &value)
Definition: TagDescription.h:112
AWSString.h
Aws::EC2::Model::TagDescription::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: TagDescription.h:138
Aws::EC2::Model::TagDescription
Definition: TagDescription.h:33
ResourceType.h
Aws::EC2::Model::TagDescription::WithValue
TagDescription & WithValue(Aws::String &&value)
Definition: TagDescription.h:189
Aws::EC2::Model::TagDescription::SetKey
void SetKey(const Aws::String &value)
Definition: TagDescription.h:56
Aws::EC2::Model::TagDescription::SetValue
void SetValue(const char *value)
Definition: TagDescription.h:179
Aws::EC2::Model::TagDescription::WithValue
TagDescription & WithValue(const Aws::String &value)
Definition: TagDescription.h:184
Aws::EC2::Model::TagDescription::TagDescription
TagDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TagDescription::SetValue
void SetValue(const Aws::String &value)
Definition: TagDescription.h:169
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TagDescription::SetResourceId
void SetResourceId(const char *value)
Definition: TagDescription.h:107
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TagDescription::SetValue
void SetValue(Aws::String &&value)
Definition: TagDescription.h:174
Aws::EC2::Model::TagDescription::WithResourceId
TagDescription & WithResourceId(Aws::String &&value)
Definition: TagDescription.h:117
Aws::EC2::Model::TagDescription::GetResourceType
const ResourceType & GetResourceType() const
Definition: TagDescription.h:128
Aws::EC2::Model::TagDescription::SetKey
void SetKey(const char *value)
Definition: TagDescription.h:66
EC2_EXPORTS.h
Aws::EC2::Model::TagDescription::GetResourceId
const Aws::String & GetResourceId() const
Definition: TagDescription.h:87
Aws::EC2::Model::TagDescription::TagDescription
TagDescription()
Aws::EC2::Model::TagDescription::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: TagDescription.h:97