AWS SDK for C++  1.9.105
AWS SDK for C++
TaggedResource.h
Go to the documentation of this file.
1 
6 #pragma once
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 Redshift
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 Tag& GetTag() const{ return m_tag; }
47 
51  inline bool TagHasBeenSet() const { return m_tagHasBeenSet; }
52 
56  inline void SetTag(const Tag& value) { m_tagHasBeenSet = true; m_tag = value; }
57 
61  inline void SetTag(Tag&& value) { m_tagHasBeenSet = true; m_tag = std::move(value); }
62 
66  inline TaggedResource& WithTag(const Tag& value) { SetTag(value); return *this;}
67 
71  inline TaggedResource& WithTag(Tag&& value) { SetTag(std::move(value)); return *this;}
72 
73 
78  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
79 
84  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
85 
90  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
91 
96  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
97 
102  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
103 
108  inline TaggedResource& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
109 
114  inline TaggedResource& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
115 
120  inline TaggedResource& WithResourceName(const char* value) { SetResourceName(value); return *this;}
121 
122 
135  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
136 
149  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
150 
163  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
164 
177  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
178 
191  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
192 
205  inline TaggedResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
206 
219  inline TaggedResource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
220 
233  inline TaggedResource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
234 
235  private:
236 
237  Tag m_tag;
238  bool m_tagHasBeenSet;
239 
240  Aws::String m_resourceName;
241  bool m_resourceNameHasBeenSet;
242 
243  Aws::String m_resourceType;
244  bool m_resourceTypeHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace Redshift
249 } // namespace Aws
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::TaggedResource::WithResourceName
TaggedResource & WithResourceName(const char *value)
Definition: TaggedResource.h:120
Aws::Redshift::Model::TaggedResource::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: TaggedResource.h:163
Tag.h
Aws::Redshift::Model::TaggedResource::SetResourceName
void SetResourceName(const char *value)
Definition: TaggedResource.h:102
Aws::Redshift::Model::TaggedResource::WithResourceName
TaggedResource & WithResourceName(const Aws::String &value)
Definition: TaggedResource.h:108
Aws::Redshift::Model::TaggedResource::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: TaggedResource.h:96
Aws::Redshift::Model::TaggedResource::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: TaggedResource.h:149
Aws::Redshift::Model::TaggedResource::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: TaggedResource.h:177
Aws::Redshift::Model::TaggedResource::WithTag
TaggedResource & WithTag(Tag &&value)
Definition: TaggedResource.h:71
AWSStreamFwd.h
Aws::Redshift::Model::TaggedResource::SetTag
void SetTag(const Tag &value)
Definition: TaggedResource.h:56
Aws::Redshift::Model::TaggedResource::WithTag
TaggedResource & WithTag(const Tag &value)
Definition: TaggedResource.h:66
Aws::Redshift::Model::TaggedResource::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: TaggedResource.h:84
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::TaggedResource::TaggedResource
TaggedResource(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::TaggedResource::GetTag
const Tag & GetTag() const
Definition: TaggedResource.h:46
Aws::Redshift::Model::TaggedResource::SetTag
void SetTag(Tag &&value)
Definition: TaggedResource.h:61
Aws::Redshift::Model::TaggedResource::TaggedResource
TaggedResource()
AWSString.h
Aws::Redshift::Model::TaggedResource::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::TaggedResource::TagHasBeenSet
bool TagHasBeenSet() const
Definition: TaggedResource.h:51
Aws::Redshift::Model::TaggedResource::operator=
TaggedResource & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::TaggedResource::WithResourceName
TaggedResource & WithResourceName(Aws::String &&value)
Definition: TaggedResource.h:114
Aws::Redshift::Model::TaggedResource::GetResourceType
const Aws::String & GetResourceType() const
Definition: TaggedResource.h:135
Aws::Redshift::Model::TaggedResource::WithResourceType
TaggedResource & WithResourceType(const Aws::String &value)
Definition: TaggedResource.h:205
Aws::Redshift::Model::TaggedResource::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::TaggedResource::WithResourceType
TaggedResource & WithResourceType(Aws::String &&value)
Definition: TaggedResource.h:219
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::TaggedResource
Definition: TaggedResource.h:33
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::TaggedResource::SetResourceType
void SetResourceType(const char *value)
Definition: TaggedResource.h:191
Aws::Redshift::Model::TaggedResource::GetResourceName
const Aws::String & GetResourceName() const
Definition: TaggedResource.h:78
Aws::Redshift::Model::TaggedResource::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: TaggedResource.h:90
Aws::Redshift::Model::TaggedResource::WithResourceType
TaggedResource & WithResourceType(const char *value)
Definition: TaggedResource.h:233