AWS SDK for C++  1.9.71
AWS SDK for C++
SpotFleetTagSpecification.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 
51  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
52 
60  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
61 
69  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
70 
78  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
79 
87  inline SpotFleetTagSpecification& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
88 
96  inline SpotFleetTagSpecification& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
97 
98 
102  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
103 
107  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 
112  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
113 
117  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
118 
122  inline SpotFleetTagSpecification& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
123 
127  inline SpotFleetTagSpecification& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
128 
132  inline SpotFleetTagSpecification& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
133 
137  inline SpotFleetTagSpecification& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
138 
139  private:
140 
141  ResourceType m_resourceType;
142  bool m_resourceTypeHasBeenSet;
143 
144  Aws::Vector<Tag> m_tags;
145  bool m_tagsHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace EC2
150 } // namespace Aws
Aws::EC2::Model::SpotFleetTagSpecification
Definition: SpotFleetTagSpecification.h:34
Aws::EC2::Model::SpotFleetTagSpecification::operator=
SpotFleetTagSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotFleetTagSpecification::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: SpotFleetTagSpecification.h:60
Aws::EC2::Model::SpotFleetTagSpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::SpotFleetTagSpecification::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: SpotFleetTagSpecification.h:117
Aws::EC2::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::EC2::Model::SpotFleetTagSpecification::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: SpotFleetTagSpecification.h:102
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SpotFleetTagSpecification::SpotFleetTagSpecification
SpotFleetTagSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotFleetTagSpecification::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: SpotFleetTagSpecification.h:112
Aws::EC2::Model::SpotFleetTagSpecification::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: SpotFleetTagSpecification.h:78
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Tag.h
Aws::EC2::Model::SpotFleetTagSpecification::GetResourceType
const ResourceType & GetResourceType() const
Definition: SpotFleetTagSpecification.h:51
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SpotFleetTagSpecification::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: SpotFleetTagSpecification.h:69
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SpotFleetTagSpecification::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: SpotFleetTagSpecification.h:107
Aws::EC2::Model::SpotFleetTagSpecification::WithTags
SpotFleetTagSpecification & WithTags(Aws::Vector< Tag > &&value)
Definition: SpotFleetTagSpecification.h:127
Aws::EC2::Model::SpotFleetTagSpecification::WithResourceType
SpotFleetTagSpecification & WithResourceType(const ResourceType &value)
Definition: SpotFleetTagSpecification.h:87
Aws::EC2::Model::SpotFleetTagSpecification::SpotFleetTagSpecification
SpotFleetTagSpecification()
Aws::EC2::Model::SpotFleetTagSpecification::AddTags
SpotFleetTagSpecification & AddTags(const Tag &value)
Definition: SpotFleetTagSpecification.h:132
ResourceType.h
Aws::EC2::Model::SpotFleetTagSpecification::WithTags
SpotFleetTagSpecification & WithTags(const Aws::Vector< Tag > &value)
Definition: SpotFleetTagSpecification.h:122
Aws::EC2::Model::SpotFleetTagSpecification::WithResourceType
SpotFleetTagSpecification & WithResourceType(ResourceType &&value)
Definition: SpotFleetTagSpecification.h:96
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SpotFleetTagSpecification::AddTags
SpotFleetTagSpecification & AddTags(Tag &&value)
Definition: SpotFleetTagSpecification.h:137
EC2_EXPORTS.h
Aws::EC2::Model::SpotFleetTagSpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const