AWS SDK for C++  1.9.70
AWS SDK for C++
CancelSpotFleetRequestsResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<CancelSpotFleetRequestsSuccessItem>& GetSuccessfulFleetRequests() const{ return m_successfulFleetRequests; }
47 
51  inline void SetSuccessfulFleetRequests(const Aws::Vector<CancelSpotFleetRequestsSuccessItem>& value) { m_successfulFleetRequests = value; }
52 
56  inline void SetSuccessfulFleetRequests(Aws::Vector<CancelSpotFleetRequestsSuccessItem>&& value) { m_successfulFleetRequests = std::move(value); }
57 
61  inline CancelSpotFleetRequestsResponse& WithSuccessfulFleetRequests(const Aws::Vector<CancelSpotFleetRequestsSuccessItem>& value) { SetSuccessfulFleetRequests(value); return *this;}
62 
66  inline CancelSpotFleetRequestsResponse& WithSuccessfulFleetRequests(Aws::Vector<CancelSpotFleetRequestsSuccessItem>&& value) { SetSuccessfulFleetRequests(std::move(value)); return *this;}
67 
71  inline CancelSpotFleetRequestsResponse& AddSuccessfulFleetRequests(const CancelSpotFleetRequestsSuccessItem& value) { m_successfulFleetRequests.push_back(value); return *this; }
72 
76  inline CancelSpotFleetRequestsResponse& AddSuccessfulFleetRequests(CancelSpotFleetRequestsSuccessItem&& value) { m_successfulFleetRequests.push_back(std::move(value)); return *this; }
77 
78 
83  inline const Aws::Vector<CancelSpotFleetRequestsErrorItem>& GetUnsuccessfulFleetRequests() const{ return m_unsuccessfulFleetRequests; }
84 
89  inline void SetUnsuccessfulFleetRequests(const Aws::Vector<CancelSpotFleetRequestsErrorItem>& value) { m_unsuccessfulFleetRequests = value; }
90 
95  inline void SetUnsuccessfulFleetRequests(Aws::Vector<CancelSpotFleetRequestsErrorItem>&& value) { m_unsuccessfulFleetRequests = std::move(value); }
96 
101  inline CancelSpotFleetRequestsResponse& WithUnsuccessfulFleetRequests(const Aws::Vector<CancelSpotFleetRequestsErrorItem>& value) { SetUnsuccessfulFleetRequests(value); return *this;}
102 
107  inline CancelSpotFleetRequestsResponse& WithUnsuccessfulFleetRequests(Aws::Vector<CancelSpotFleetRequestsErrorItem>&& value) { SetUnsuccessfulFleetRequests(std::move(value)); return *this;}
108 
113  inline CancelSpotFleetRequestsResponse& AddUnsuccessfulFleetRequests(const CancelSpotFleetRequestsErrorItem& value) { m_unsuccessfulFleetRequests.push_back(value); return *this; }
114 
119  inline CancelSpotFleetRequestsResponse& AddUnsuccessfulFleetRequests(CancelSpotFleetRequestsErrorItem&& value) { m_unsuccessfulFleetRequests.push_back(std::move(value)); return *this; }
120 
121 
122 
123  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
124 
125 
126  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
127 
128 
129  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
130 
131 
132  inline CancelSpotFleetRequestsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
133 
134 
135  inline CancelSpotFleetRequestsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
136 
137  private:
138 
139  Aws::Vector<CancelSpotFleetRequestsSuccessItem> m_successfulFleetRequests;
140 
141  Aws::Vector<CancelSpotFleetRequestsErrorItem> m_unsuccessfulFleetRequests;
142 
143  ResponseMetadata m_responseMetadata;
144  };
145 
146 } // namespace Model
147 } // namespace EC2
148 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CancelSpotFleetRequestsResponse::CancelSpotFleetRequestsResponse
CancelSpotFleetRequestsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CancelSpotFleetRequestsResponse::SetSuccessfulFleetRequests
void SetSuccessfulFleetRequests(const Aws::Vector< CancelSpotFleetRequestsSuccessItem > &value)
Definition: CancelSpotFleetRequestsResponse.h:51
Aws::EC2::Model::CancelSpotFleetRequestsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CancelSpotFleetRequestsResponse.h:123
Aws::EC2::Model::CancelSpotFleetRequestsResponse::SetUnsuccessfulFleetRequests
void SetUnsuccessfulFleetRequests(const Aws::Vector< CancelSpotFleetRequestsErrorItem > &value)
Definition: CancelSpotFleetRequestsResponse.h:89
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
CancelSpotFleetRequestsErrorItem.h
ResponseMetadata.h
Aws::EC2::Model::CancelSpotFleetRequestsResponse::WithSuccessfulFleetRequests
CancelSpotFleetRequestsResponse & WithSuccessfulFleetRequests(Aws::Vector< CancelSpotFleetRequestsSuccessItem > &&value)
Definition: CancelSpotFleetRequestsResponse.h:66
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::CancelSpotFleetRequestsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CancelSpotFleetRequestsResponse.h:129
Aws::EC2::Model::CancelSpotFleetRequestsResponse::SetUnsuccessfulFleetRequests
void SetUnsuccessfulFleetRequests(Aws::Vector< CancelSpotFleetRequestsErrorItem > &&value)
Definition: CancelSpotFleetRequestsResponse.h:95
Aws::EC2::Model::CancelSpotFleetRequestsResponse::WithSuccessfulFleetRequests
CancelSpotFleetRequestsResponse & WithSuccessfulFleetRequests(const Aws::Vector< CancelSpotFleetRequestsSuccessItem > &value)
Definition: CancelSpotFleetRequestsResponse.h:61
Aws::EC2::Model::CancelSpotFleetRequestsResponse::AddSuccessfulFleetRequests
CancelSpotFleetRequestsResponse & AddSuccessfulFleetRequests(const CancelSpotFleetRequestsSuccessItem &value)
Definition: CancelSpotFleetRequestsResponse.h:71
CancelSpotFleetRequestsSuccessItem.h
Aws::EC2::Model::CancelSpotFleetRequestsResponse::operator=
CancelSpotFleetRequestsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CancelSpotFleetRequestsResponse
Definition: CancelSpotFleetRequestsResponse.h:36
Aws::EC2::Model::CancelSpotFleetRequestsResponse::WithUnsuccessfulFleetRequests
CancelSpotFleetRequestsResponse & WithUnsuccessfulFleetRequests(const Aws::Vector< CancelSpotFleetRequestsErrorItem > &value)
Definition: CancelSpotFleetRequestsResponse.h:101
Aws::EC2::Model::CancelSpotFleetRequestsResponse::WithResponseMetadata
CancelSpotFleetRequestsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CancelSpotFleetRequestsResponse.h:132
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::CancelSpotFleetRequestsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CancelSpotFleetRequestsResponse.h:126
Aws::EC2::Model::CancelSpotFleetRequestsErrorItem
Definition: CancelSpotFleetRequestsErrorItem.h:34
Aws::EC2::Model::CancelSpotFleetRequestsResponse::AddSuccessfulFleetRequests
CancelSpotFleetRequestsResponse & AddSuccessfulFleetRequests(CancelSpotFleetRequestsSuccessItem &&value)
Definition: CancelSpotFleetRequestsResponse.h:76
Aws::EC2::Model::CancelSpotFleetRequestsResponse::SetSuccessfulFleetRequests
void SetSuccessfulFleetRequests(Aws::Vector< CancelSpotFleetRequestsSuccessItem > &&value)
Definition: CancelSpotFleetRequestsResponse.h:56
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CancelSpotFleetRequestsResponse::AddUnsuccessfulFleetRequests
CancelSpotFleetRequestsResponse & AddUnsuccessfulFleetRequests(CancelSpotFleetRequestsErrorItem &&value)
Definition: CancelSpotFleetRequestsResponse.h:119
Aws::EC2::Model::CancelSpotFleetRequestsResponse::CancelSpotFleetRequestsResponse
CancelSpotFleetRequestsResponse()
Aws::EC2::Model::CancelSpotFleetRequestsResponse::GetUnsuccessfulFleetRequests
const Aws::Vector< CancelSpotFleetRequestsErrorItem > & GetUnsuccessfulFleetRequests() const
Definition: CancelSpotFleetRequestsResponse.h:83
Aws::EC2::Model::CancelSpotFleetRequestsResponse::WithResponseMetadata
CancelSpotFleetRequestsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CancelSpotFleetRequestsResponse.h:135
Aws::EC2::Model::CancelSpotFleetRequestsSuccessItem
Definition: CancelSpotFleetRequestsSuccessItem.h:34
Aws::EC2::Model::CancelSpotFleetRequestsResponse::WithUnsuccessfulFleetRequests
CancelSpotFleetRequestsResponse & WithUnsuccessfulFleetRequests(Aws::Vector< CancelSpotFleetRequestsErrorItem > &&value)
Definition: CancelSpotFleetRequestsResponse.h:107
Aws::EC2::Model::CancelSpotFleetRequestsResponse::AddUnsuccessfulFleetRequests
CancelSpotFleetRequestsResponse & AddUnsuccessfulFleetRequests(const CancelSpotFleetRequestsErrorItem &value)
Definition: CancelSpotFleetRequestsResponse.h:113
EC2_EXPORTS.h
Aws::EC2::Model::CancelSpotFleetRequestsResponse::GetSuccessfulFleetRequests
const Aws::Vector< CancelSpotFleetRequestsSuccessItem > & GetSuccessfulFleetRequests() const
Definition: CancelSpotFleetRequestsResponse.h:46