AWS SDK for C++  1.9.67
AWS SDK for C++
LaunchTemplateTagSpecificationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
50  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
51 
58  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
59 
66  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
67 
74  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
75 
82  inline LaunchTemplateTagSpecificationRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
83 
90  inline LaunchTemplateTagSpecificationRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
91 
92 
96  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
97 
101  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 
106  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
107 
111  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
112 
116  inline LaunchTemplateTagSpecificationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
117 
121  inline LaunchTemplateTagSpecificationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 
126  inline LaunchTemplateTagSpecificationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
127 
131  inline LaunchTemplateTagSpecificationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
132 
133  private:
134 
135  ResourceType m_resourceType;
136  bool m_resourceTypeHasBeenSet;
137 
138  Aws::Vector<Tag> m_tags;
139  bool m_tagsHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace EC2
144 } // namespace Aws
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::LaunchTemplateTagSpecificationRequest
LaunchTemplateTagSpecificationRequest()
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: LaunchTemplateTagSpecificationRequest.h:111
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::WithResourceType
LaunchTemplateTagSpecificationRequest & WithResourceType(ResourceType &&value)
Definition: LaunchTemplateTagSpecificationRequest.h:90
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: LaunchTemplateTagSpecificationRequest.h:74
AWSVector.h
Tag.h
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: LaunchTemplateTagSpecificationRequest.h:58
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::LaunchTemplateTagSpecificationRequest
LaunchTemplateTagSpecificationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::GetResourceType
const ResourceType & GetResourceType() const
Definition: LaunchTemplateTagSpecificationRequest.h:50
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: LaunchTemplateTagSpecificationRequest.h:106
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::operator=
LaunchTemplateTagSpecificationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::WithTags
LaunchTemplateTagSpecificationRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: LaunchTemplateTagSpecificationRequest.h:116
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest
Definition: LaunchTemplateTagSpecificationRequest.h:34
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::WithTags
LaunchTemplateTagSpecificationRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: LaunchTemplateTagSpecificationRequest.h:121
ResourceType.h
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: LaunchTemplateTagSpecificationRequest.h:96
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::WithResourceType
LaunchTemplateTagSpecificationRequest & WithResourceType(const ResourceType &value)
Definition: LaunchTemplateTagSpecificationRequest.h:82
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: LaunchTemplateTagSpecificationRequest.h:101
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: LaunchTemplateTagSpecificationRequest.h:66
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::AddTags
LaunchTemplateTagSpecificationRequest & AddTags(Tag &&value)
Definition: LaunchTemplateTagSpecificationRequest.h:131
Aws::EC2::Model::LaunchTemplateTagSpecificationRequest::AddTags
LaunchTemplateTagSpecificationRequest & AddTags(const Tag &value)
Definition: LaunchTemplateTagSpecificationRequest.h:126