AWS SDK for C++  1.9.71
AWS SDK for C++
RunInstancesResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Instance.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Xml
23 {
24  class XmlDocument;
25 } // namespace Xml
26 } // namespace Utils
27 namespace EC2
28 {
29 namespace Model
30 {
39  {
40  public:
44 
45 
49  inline const Aws::Vector<GroupIdentifier>& GetGroups() const{ return m_groups; }
50 
54  inline void SetGroups(const Aws::Vector<GroupIdentifier>& value) { m_groups = value; }
55 
59  inline void SetGroups(Aws::Vector<GroupIdentifier>&& value) { m_groups = std::move(value); }
60 
64  inline RunInstancesResponse& WithGroups(const Aws::Vector<GroupIdentifier>& value) { SetGroups(value); return *this;}
65 
69  inline RunInstancesResponse& WithGroups(Aws::Vector<GroupIdentifier>&& value) { SetGroups(std::move(value)); return *this;}
70 
74  inline RunInstancesResponse& AddGroups(const GroupIdentifier& value) { m_groups.push_back(value); return *this; }
75 
79  inline RunInstancesResponse& AddGroups(GroupIdentifier&& value) { m_groups.push_back(std::move(value)); return *this; }
80 
81 
85  inline const Aws::Vector<Instance>& GetInstances() const{ return m_instances; }
86 
90  inline void SetInstances(const Aws::Vector<Instance>& value) { m_instances = value; }
91 
95  inline void SetInstances(Aws::Vector<Instance>&& value) { m_instances = std::move(value); }
96 
100  inline RunInstancesResponse& WithInstances(const Aws::Vector<Instance>& value) { SetInstances(value); return *this;}
101 
105  inline RunInstancesResponse& WithInstances(Aws::Vector<Instance>&& value) { SetInstances(std::move(value)); return *this;}
106 
110  inline RunInstancesResponse& AddInstances(const Instance& value) { m_instances.push_back(value); return *this; }
111 
115  inline RunInstancesResponse& AddInstances(Instance&& value) { m_instances.push_back(std::move(value)); return *this; }
116 
117 
121  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
122 
126  inline void SetOwnerId(const Aws::String& value) { m_ownerId = value; }
127 
131  inline void SetOwnerId(Aws::String&& value) { m_ownerId = std::move(value); }
132 
136  inline void SetOwnerId(const char* value) { m_ownerId.assign(value); }
137 
141  inline RunInstancesResponse& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
142 
146  inline RunInstancesResponse& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
147 
151  inline RunInstancesResponse& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
152 
153 
158  inline const Aws::String& GetRequesterId() const{ return m_requesterId; }
159 
164  inline void SetRequesterId(const Aws::String& value) { m_requesterId = value; }
165 
170  inline void SetRequesterId(Aws::String&& value) { m_requesterId = std::move(value); }
171 
176  inline void SetRequesterId(const char* value) { m_requesterId.assign(value); }
177 
182  inline RunInstancesResponse& WithRequesterId(const Aws::String& value) { SetRequesterId(value); return *this;}
183 
188  inline RunInstancesResponse& WithRequesterId(Aws::String&& value) { SetRequesterId(std::move(value)); return *this;}
189 
194  inline RunInstancesResponse& WithRequesterId(const char* value) { SetRequesterId(value); return *this;}
195 
196 
200  inline const Aws::String& GetReservationId() const{ return m_reservationId; }
201 
205  inline void SetReservationId(const Aws::String& value) { m_reservationId = value; }
206 
210  inline void SetReservationId(Aws::String&& value) { m_reservationId = std::move(value); }
211 
215  inline void SetReservationId(const char* value) { m_reservationId.assign(value); }
216 
220  inline RunInstancesResponse& WithReservationId(const Aws::String& value) { SetReservationId(value); return *this;}
221 
225  inline RunInstancesResponse& WithReservationId(Aws::String&& value) { SetReservationId(std::move(value)); return *this;}
226 
230  inline RunInstancesResponse& WithReservationId(const char* value) { SetReservationId(value); return *this;}
231 
232 
233 
234  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
235 
236 
237  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
238 
239 
240  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
241 
242 
243  inline RunInstancesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
244 
245 
246  inline RunInstancesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
247 
248  private:
249 
251 
252  Aws::Vector<Instance> m_instances;
253 
254  Aws::String m_ownerId;
255 
256  Aws::String m_requesterId;
257 
258  Aws::String m_reservationId;
259 
260  ResponseMetadata m_responseMetadata;
261  };
262 
263 } // namespace Model
264 } // namespace EC2
265 } // namespace Aws
Aws::EC2::Model::RunInstancesResponse::WithGroups
RunInstancesResponse & WithGroups(const Aws::Vector< GroupIdentifier > &value)
Definition: RunInstancesResponse.h:64
Aws::EC2::Model::RunInstancesResponse::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: RunInstancesResponse.h:121
Aws::EC2::Model::RunInstancesResponse::SetInstances
void SetInstances(Aws::Vector< Instance > &&value)
Definition: RunInstancesResponse.h:95
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::RunInstancesResponse::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: RunInstancesResponse.h:126
Aws::EC2::Model::RunInstancesResponse::AddInstances
RunInstancesResponse & AddInstances(Instance &&value)
Definition: RunInstancesResponse.h:115
Aws::EC2::Model::RunInstancesResponse::SetReservationId
void SetReservationId(const Aws::String &value)
Definition: RunInstancesResponse.h:205
Aws::EC2::Model::RunInstancesResponse::WithRequesterId
RunInstancesResponse & WithRequesterId(const char *value)
Definition: RunInstancesResponse.h:194
Aws::EC2::Model::RunInstancesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: RunInstancesResponse.h:240
Aws::EC2::Model::RunInstancesResponse::WithInstances
RunInstancesResponse & WithInstances(const Aws::Vector< Instance > &value)
Definition: RunInstancesResponse.h:100
Aws::EC2::Model::RunInstancesResponse::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: RunInstancesResponse.h:131
Aws::EC2::Model::RunInstancesResponse::GetGroups
const Aws::Vector< GroupIdentifier > & GetGroups() const
Definition: RunInstancesResponse.h:49
Aws::EC2::Model::RunInstancesResponse::SetReservationId
void SetReservationId(const char *value)
Definition: RunInstancesResponse.h:215
Aws::EC2::Model::RunInstancesResponse::WithReservationId
RunInstancesResponse & WithReservationId(const char *value)
Definition: RunInstancesResponse.h:230
GroupIdentifier.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::RunInstancesResponse::SetGroups
void SetGroups(const Aws::Vector< GroupIdentifier > &value)
Definition: RunInstancesResponse.h:54
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::RunInstancesResponse::SetInstances
void SetInstances(const Aws::Vector< Instance > &value)
Definition: RunInstancesResponse.h:90
Aws::EC2::Model::RunInstancesResponse::WithResponseMetadata
RunInstancesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: RunInstancesResponse.h:243
Aws::EC2::Model::RunInstancesResponse::operator=
RunInstancesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWSVector.h
Aws::EC2::Model::RunInstancesResponse::SetRequesterId
void SetRequesterId(const char *value)
Definition: RunInstancesResponse.h:176
Aws::EC2::Model::RunInstancesResponse::SetReservationId
void SetReservationId(Aws::String &&value)
Definition: RunInstancesResponse.h:210
Aws::EC2::Model::RunInstancesResponse::WithOwnerId
RunInstancesResponse & WithOwnerId(const char *value)
Definition: RunInstancesResponse.h:151
Aws::EC2::Model::RunInstancesResponse::GetRequesterId
const Aws::String & GetRequesterId() const
Definition: RunInstancesResponse.h:158
Aws::EC2::Model::RunInstancesResponse::AddGroups
RunInstancesResponse & AddGroups(const GroupIdentifier &value)
Definition: RunInstancesResponse.h:74
Aws::EC2::Model::RunInstancesResponse::WithReservationId
RunInstancesResponse & WithReservationId(Aws::String &&value)
Definition: RunInstancesResponse.h:225
Aws::EC2::Model::RunInstancesResponse::GetReservationId
const Aws::String & GetReservationId() const
Definition: RunInstancesResponse.h:200
Aws::EC2::Model::RunInstancesResponse
Definition: RunInstancesResponse.h:39
Aws::EC2::Model::RunInstancesResponse::AddGroups
RunInstancesResponse & AddGroups(GroupIdentifier &&value)
Definition: RunInstancesResponse.h:79
Aws::EC2::Model::RunInstancesResponse::RunInstancesResponse
RunInstancesResponse()
Aws::EC2::Model::RunInstancesResponse::WithOwnerId
RunInstancesResponse & WithOwnerId(Aws::String &&value)
Definition: RunInstancesResponse.h:146
Aws::EC2::Model::RunInstancesResponse::SetRequesterId
void SetRequesterId(Aws::String &&value)
Definition: RunInstancesResponse.h:170
Aws::EC2::Model::RunInstancesResponse::RunInstancesResponse
RunInstancesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::RunInstancesResponse::WithRequesterId
RunInstancesResponse & WithRequesterId(Aws::String &&value)
Definition: RunInstancesResponse.h:188
Aws::EC2::Model::GroupIdentifier
Definition: GroupIdentifier.h:32
Aws::EC2::Model::RunInstancesResponse::WithInstances
RunInstancesResponse & WithInstances(Aws::Vector< Instance > &&value)
Definition: RunInstancesResponse.h:105
Aws::EC2::Model::RunInstancesResponse::WithGroups
RunInstancesResponse & WithGroups(Aws::Vector< GroupIdentifier > &&value)
Definition: RunInstancesResponse.h:69
Aws::EC2::Model::Instance
Definition: Instance.h:60
Aws::EC2::Model::RunInstancesResponse::WithReservationId
RunInstancesResponse & WithReservationId(const Aws::String &value)
Definition: RunInstancesResponse.h:220
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RunInstancesResponse::SetRequesterId
void SetRequesterId(const Aws::String &value)
Definition: RunInstancesResponse.h:164
Aws::EC2::Model::RunInstancesResponse::WithResponseMetadata
RunInstancesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: RunInstancesResponse.h:246
Aws::EC2::Model::RunInstancesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: RunInstancesResponse.h:234
Aws::EC2::Model::RunInstancesResponse::WithRequesterId
RunInstancesResponse & WithRequesterId(const Aws::String &value)
Definition: RunInstancesResponse.h:182
Aws::EC2::Model::RunInstancesResponse::GetInstances
const Aws::Vector< Instance > & GetInstances() const
Definition: RunInstancesResponse.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Instance.h
Aws::EC2::Model::RunInstancesResponse::SetGroups
void SetGroups(Aws::Vector< GroupIdentifier > &&value)
Definition: RunInstancesResponse.h:59
Aws::EC2::Model::RunInstancesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: RunInstancesResponse.h:237
Aws::EC2::Model::RunInstancesResponse::WithOwnerId
RunInstancesResponse & WithOwnerId(const Aws::String &value)
Definition: RunInstancesResponse.h:141
Aws::EC2::Model::RunInstancesResponse::AddInstances
RunInstancesResponse & AddInstances(const Instance &value)
Definition: RunInstancesResponse.h:110
EC2_EXPORTS.h
Aws::EC2::Model::RunInstancesResponse::SetOwnerId
void SetOwnerId(const char *value)
Definition: RunInstancesResponse.h:136