AWS SDK for C++  1.9.72
AWS SDK for C++
RequestSpotInstancesResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<SpotInstanceRequest>& GetSpotInstanceRequests() const{ return m_spotInstanceRequests; }
46 
50  inline void SetSpotInstanceRequests(const Aws::Vector<SpotInstanceRequest>& value) { m_spotInstanceRequests = value; }
51 
55  inline void SetSpotInstanceRequests(Aws::Vector<SpotInstanceRequest>&& value) { m_spotInstanceRequests = std::move(value); }
56 
60  inline RequestSpotInstancesResponse& WithSpotInstanceRequests(const Aws::Vector<SpotInstanceRequest>& value) { SetSpotInstanceRequests(value); return *this;}
61 
65  inline RequestSpotInstancesResponse& WithSpotInstanceRequests(Aws::Vector<SpotInstanceRequest>&& value) { SetSpotInstanceRequests(std::move(value)); return *this;}
66 
70  inline RequestSpotInstancesResponse& AddSpotInstanceRequests(const SpotInstanceRequest& value) { m_spotInstanceRequests.push_back(value); return *this; }
71 
75  inline RequestSpotInstancesResponse& AddSpotInstanceRequests(SpotInstanceRequest&& value) { m_spotInstanceRequests.push_back(std::move(value)); return *this; }
76 
77 
78 
79  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
80 
81 
82  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
83 
84 
85  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
86 
87 
88  inline RequestSpotInstancesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
89 
90 
91  inline RequestSpotInstancesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
92 
93  private:
94 
95  Aws::Vector<SpotInstanceRequest> m_spotInstanceRequests;
96 
97  ResponseMetadata m_responseMetadata;
98  };
99 
100 } // namespace Model
101 } // namespace EC2
102 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::RequestSpotInstancesResponse::WithSpotInstanceRequests
RequestSpotInstancesResponse & WithSpotInstanceRequests(const Aws::Vector< SpotInstanceRequest > &value)
Definition: RequestSpotInstancesResponse.h:60
Aws::EC2::Model::RequestSpotInstancesResponse::SetSpotInstanceRequests
void SetSpotInstanceRequests(Aws::Vector< SpotInstanceRequest > &&value)
Definition: RequestSpotInstancesResponse.h:55
Aws::EC2::Model::RequestSpotInstancesResponse::AddSpotInstanceRequests
RequestSpotInstancesResponse & AddSpotInstanceRequests(SpotInstanceRequest &&value)
Definition: RequestSpotInstancesResponse.h:75
Aws::EC2::Model::SpotInstanceRequest
Definition: SpotInstanceRequest.h:42
Aws::EC2::Model::RequestSpotInstancesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: RequestSpotInstancesResponse.h:85
Aws::EC2::Model::RequestSpotInstancesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: RequestSpotInstancesResponse.h:79
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::RequestSpotInstancesResponse
Definition: RequestSpotInstancesResponse.h:35
ResponseMetadata.h
Aws::EC2::Model::RequestSpotInstancesResponse::WithResponseMetadata
RequestSpotInstancesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: RequestSpotInstancesResponse.h:88
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::RequestSpotInstancesResponse::RequestSpotInstancesResponse
RequestSpotInstancesResponse()
AWSVector.h
Aws::EC2::Model::RequestSpotInstancesResponse::AddSpotInstanceRequests
RequestSpotInstancesResponse & AddSpotInstanceRequests(const SpotInstanceRequest &value)
Definition: RequestSpotInstancesResponse.h:70
Aws::EC2::Model::RequestSpotInstancesResponse::GetSpotInstanceRequests
const Aws::Vector< SpotInstanceRequest > & GetSpotInstanceRequests() const
Definition: RequestSpotInstancesResponse.h:45
Aws::EC2::Model::RequestSpotInstancesResponse::WithResponseMetadata
RequestSpotInstancesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: RequestSpotInstancesResponse.h:91
Aws::EC2::Model::RequestSpotInstancesResponse::SetSpotInstanceRequests
void SetSpotInstanceRequests(const Aws::Vector< SpotInstanceRequest > &value)
Definition: RequestSpotInstancesResponse.h:50
Aws::EC2::Model::RequestSpotInstancesResponse::operator=
RequestSpotInstancesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RequestSpotInstancesResponse::RequestSpotInstancesResponse
RequestSpotInstancesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
SpotInstanceRequest.h
Aws::EC2::Model::RequestSpotInstancesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: RequestSpotInstancesResponse.h:82
EC2_EXPORTS.h
Aws::EC2::Model::RequestSpotInstancesResponse::WithSpotInstanceRequests
RequestSpotInstancesResponse & WithSpotInstanceRequests(Aws::Vector< SpotInstanceRequest > &&value)
Definition: RequestSpotInstancesResponse.h:65