AWS SDK for C++  1.9.67
AWS SDK for C++
CancelSpotInstanceRequestsResponse.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 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<CancelledSpotInstanceRequest>& GetCancelledSpotInstanceRequests() const{ return m_cancelledSpotInstanceRequests; }
47 
51  inline void SetCancelledSpotInstanceRequests(const Aws::Vector<CancelledSpotInstanceRequest>& value) { m_cancelledSpotInstanceRequests = value; }
52 
56  inline void SetCancelledSpotInstanceRequests(Aws::Vector<CancelledSpotInstanceRequest>&& value) { m_cancelledSpotInstanceRequests = std::move(value); }
57 
61  inline CancelSpotInstanceRequestsResponse& WithCancelledSpotInstanceRequests(const Aws::Vector<CancelledSpotInstanceRequest>& value) { SetCancelledSpotInstanceRequests(value); return *this;}
62 
66  inline CancelSpotInstanceRequestsResponse& WithCancelledSpotInstanceRequests(Aws::Vector<CancelledSpotInstanceRequest>&& value) { SetCancelledSpotInstanceRequests(std::move(value)); return *this;}
67 
71  inline CancelSpotInstanceRequestsResponse& AddCancelledSpotInstanceRequests(const CancelledSpotInstanceRequest& value) { m_cancelledSpotInstanceRequests.push_back(value); return *this; }
72 
76  inline CancelSpotInstanceRequestsResponse& AddCancelledSpotInstanceRequests(CancelledSpotInstanceRequest&& value) { m_cancelledSpotInstanceRequests.push_back(std::move(value)); return *this; }
77 
78 
79 
80  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
81 
82 
83  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
84 
85 
86  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
87 
88 
89  inline CancelSpotInstanceRequestsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
90 
91 
92  inline CancelSpotInstanceRequestsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
93 
94  private:
95 
96  Aws::Vector<CancelledSpotInstanceRequest> m_cancelledSpotInstanceRequests;
97 
98  ResponseMetadata m_responseMetadata;
99  };
100 
101 } // namespace Model
102 } // namespace EC2
103 } // namespace Aws
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::WithCancelledSpotInstanceRequests
CancelSpotInstanceRequestsResponse & WithCancelledSpotInstanceRequests(const Aws::Vector< CancelledSpotInstanceRequest > &value)
Definition: CancelSpotInstanceRequestsResponse.h:61
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::operator=
CancelSpotInstanceRequestsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CancelSpotInstanceRequestsResponse.h:86
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::CancelSpotInstanceRequestsResponse
CancelSpotInstanceRequestsResponse()
Aws::EC2::Model::CancelSpotInstanceRequestsResponse
Definition: CancelSpotInstanceRequestsResponse.h:36
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CancelSpotInstanceRequestsResponse.h:83
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::WithResponseMetadata
CancelSpotInstanceRequestsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CancelSpotInstanceRequestsResponse.h:92
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::GetCancelledSpotInstanceRequests
const Aws::Vector< CancelledSpotInstanceRequest > & GetCancelledSpotInstanceRequests() const
Definition: CancelSpotInstanceRequestsResponse.h:46
AWSVector.h
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::WithCancelledSpotInstanceRequests
CancelSpotInstanceRequestsResponse & WithCancelledSpotInstanceRequests(Aws::Vector< CancelledSpotInstanceRequest > &&value)
Definition: CancelSpotInstanceRequestsResponse.h:66
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::AddCancelledSpotInstanceRequests
CancelSpotInstanceRequestsResponse & AddCancelledSpotInstanceRequests(CancelledSpotInstanceRequest &&value)
Definition: CancelSpotInstanceRequestsResponse.h:76
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::CancelSpotInstanceRequestsResponse
CancelSpotInstanceRequestsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::WithResponseMetadata
CancelSpotInstanceRequestsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CancelSpotInstanceRequestsResponse.h:89
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::SetCancelledSpotInstanceRequests
void SetCancelledSpotInstanceRequests(const Aws::Vector< CancelledSpotInstanceRequest > &value)
Definition: CancelSpotInstanceRequestsResponse.h:51
Aws::EC2::Model::CancelledSpotInstanceRequest
Definition: CancelledSpotInstanceRequest.h:33
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::SetCancelledSpotInstanceRequests
void SetCancelledSpotInstanceRequests(Aws::Vector< CancelledSpotInstanceRequest > &&value)
Definition: CancelSpotInstanceRequestsResponse.h:56
Aws
Definition: AccessManagementClient.h:15
CancelledSpotInstanceRequest.h
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CancelSpotInstanceRequestsResponse.h:80
Aws::EC2::Model::CancelSpotInstanceRequestsResponse::AddCancelledSpotInstanceRequests
CancelSpotInstanceRequestsResponse & AddCancelledSpotInstanceRequests(const CancelledSpotInstanceRequest &value)
Definition: CancelSpotInstanceRequestsResponse.h:71
EC2_EXPORTS.h