AWS SDK for C++  1.9.124
AWS SDK for C++
InstanceEventWindowDisassociationRequest.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 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
49 
53  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
54 
58  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
59 
63  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
64 
68  inline InstanceEventWindowDisassociationRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
69 
73  inline InstanceEventWindowDisassociationRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
74 
78  inline InstanceEventWindowDisassociationRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
79 
83  inline InstanceEventWindowDisassociationRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
84 
88  inline InstanceEventWindowDisassociationRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
89 
90 
95  inline const Aws::Vector<Tag>& GetInstanceTags() const{ return m_instanceTags; }
96 
101  inline bool InstanceTagsHasBeenSet() const { return m_instanceTagsHasBeenSet; }
102 
107  inline void SetInstanceTags(const Aws::Vector<Tag>& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = value; }
108 
113  inline void SetInstanceTags(Aws::Vector<Tag>&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = std::move(value); }
114 
119  inline InstanceEventWindowDisassociationRequest& WithInstanceTags(const Aws::Vector<Tag>& value) { SetInstanceTags(value); return *this;}
120 
125  inline InstanceEventWindowDisassociationRequest& WithInstanceTags(Aws::Vector<Tag>&& value) { SetInstanceTags(std::move(value)); return *this;}
126 
131  inline InstanceEventWindowDisassociationRequest& AddInstanceTags(const Tag& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.push_back(value); return *this; }
132 
137  inline InstanceEventWindowDisassociationRequest& AddInstanceTags(Tag&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.push_back(std::move(value)); return *this; }
138 
139 
143  inline const Aws::Vector<Aws::String>& GetDedicatedHostIds() const{ return m_dedicatedHostIds; }
144 
148  inline bool DedicatedHostIdsHasBeenSet() const { return m_dedicatedHostIdsHasBeenSet; }
149 
153  inline void SetDedicatedHostIds(const Aws::Vector<Aws::String>& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds = value; }
154 
158  inline void SetDedicatedHostIds(Aws::Vector<Aws::String>&& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds = std::move(value); }
159 
163  inline InstanceEventWindowDisassociationRequest& WithDedicatedHostIds(const Aws::Vector<Aws::String>& value) { SetDedicatedHostIds(value); return *this;}
164 
168  inline InstanceEventWindowDisassociationRequest& WithDedicatedHostIds(Aws::Vector<Aws::String>&& value) { SetDedicatedHostIds(std::move(value)); return *this;}
169 
173  inline InstanceEventWindowDisassociationRequest& AddDedicatedHostIds(const Aws::String& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(value); return *this; }
174 
178  inline InstanceEventWindowDisassociationRequest& AddDedicatedHostIds(Aws::String&& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(std::move(value)); return *this; }
179 
183  inline InstanceEventWindowDisassociationRequest& AddDedicatedHostIds(const char* value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(value); return *this; }
184 
185  private:
186 
187  Aws::Vector<Aws::String> m_instanceIds;
188  bool m_instanceIdsHasBeenSet;
189 
190  Aws::Vector<Tag> m_instanceTags;
191  bool m_instanceTagsHasBeenSet;
192 
193  Aws::Vector<Aws::String> m_dedicatedHostIds;
194  bool m_dedicatedHostIdsHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace EC2
199 } // namespace Aws
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::SetInstanceTags
void SetInstanceTags(Aws::Vector< Tag > &&value)
Definition: InstanceEventWindowDisassociationRequest.h:113
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::WithInstanceIds
InstanceEventWindowDisassociationRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: InstanceEventWindowDisassociationRequest.h:73
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::GetDedicatedHostIds
const Aws::Vector< Aws::String > & GetDedicatedHostIds() const
Definition: InstanceEventWindowDisassociationRequest.h:143
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: InstanceEventWindowDisassociationRequest.h:53
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::InstanceEventWindowDisassociationRequest
InstanceEventWindowDisassociationRequest()
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: InstanceEventWindowDisassociationRequest.h:58
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::WithInstanceTags
InstanceEventWindowDisassociationRequest & WithInstanceTags(const Aws::Vector< Tag > &value)
Definition: InstanceEventWindowDisassociationRequest.h:119
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::InstanceTagsHasBeenSet
bool InstanceTagsHasBeenSet() const
Definition: InstanceEventWindowDisassociationRequest.h:101
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Tag.h
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::AddDedicatedHostIds
InstanceEventWindowDisassociationRequest & AddDedicatedHostIds(const Aws::String &value)
Definition: InstanceEventWindowDisassociationRequest.h:173
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::AddInstanceIds
InstanceEventWindowDisassociationRequest & AddInstanceIds(const char *value)
Definition: InstanceEventWindowDisassociationRequest.h:88
Aws::EC2::Model::InstanceEventWindowDisassociationRequest
Definition: InstanceEventWindowDisassociationRequest.h:35
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::WithDedicatedHostIds
InstanceEventWindowDisassociationRequest & WithDedicatedHostIds(const Aws::Vector< Aws::String > &value)
Definition: InstanceEventWindowDisassociationRequest.h:163
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::AddInstanceTags
InstanceEventWindowDisassociationRequest & AddInstanceTags(Tag &&value)
Definition: InstanceEventWindowDisassociationRequest.h:137
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::GetInstanceTags
const Aws::Vector< Tag > & GetInstanceTags() const
Definition: InstanceEventWindowDisassociationRequest.h:95
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::operator=
InstanceEventWindowDisassociationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::WithInstanceTags
InstanceEventWindowDisassociationRequest & WithInstanceTags(Aws::Vector< Tag > &&value)
Definition: InstanceEventWindowDisassociationRequest.h:125
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::AddInstanceTags
InstanceEventWindowDisassociationRequest & AddInstanceTags(const Tag &value)
Definition: InstanceEventWindowDisassociationRequest.h:131
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::AddInstanceIds
InstanceEventWindowDisassociationRequest & AddInstanceIds(Aws::String &&value)
Definition: InstanceEventWindowDisassociationRequest.h:83
AWSString.h
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::SetDedicatedHostIds
void SetDedicatedHostIds(Aws::Vector< Aws::String > &&value)
Definition: InstanceEventWindowDisassociationRequest.h:158
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::InstanceEventWindowDisassociationRequest
InstanceEventWindowDisassociationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::DedicatedHostIdsHasBeenSet
bool DedicatedHostIdsHasBeenSet() const
Definition: InstanceEventWindowDisassociationRequest.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::AddDedicatedHostIds
InstanceEventWindowDisassociationRequest & AddDedicatedHostIds(const char *value)
Definition: InstanceEventWindowDisassociationRequest.h:183
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::AddDedicatedHostIds
InstanceEventWindowDisassociationRequest & AddDedicatedHostIds(Aws::String &&value)
Definition: InstanceEventWindowDisassociationRequest.h:178
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::WithInstanceIds
InstanceEventWindowDisassociationRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: InstanceEventWindowDisassociationRequest.h:68
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: InstanceEventWindowDisassociationRequest.h:63
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::WithDedicatedHostIds
InstanceEventWindowDisassociationRequest & WithDedicatedHostIds(Aws::Vector< Aws::String > &&value)
Definition: InstanceEventWindowDisassociationRequest.h:168
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::SetInstanceTags
void SetInstanceTags(const Aws::Vector< Tag > &value)
Definition: InstanceEventWindowDisassociationRequest.h:107
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: InstanceEventWindowDisassociationRequest.h:48
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::AddInstanceIds
InstanceEventWindowDisassociationRequest & AddInstanceIds(const Aws::String &value)
Definition: InstanceEventWindowDisassociationRequest.h:78
EC2_EXPORTS.h
Aws::EC2::Model::InstanceEventWindowDisassociationRequest::SetDedicatedHostIds
void SetDedicatedHostIds(const Aws::Vector< Aws::String > &value)
Definition: InstanceEventWindowDisassociationRequest.h:153