AWS SDK for C++  1.9.65
AWS SDK for C++
PurchaseScheduledInstancesResponse.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<ScheduledInstance>& GetScheduledInstanceSet() const{ return m_scheduledInstanceSet; }
47 
51  inline void SetScheduledInstanceSet(const Aws::Vector<ScheduledInstance>& value) { m_scheduledInstanceSet = value; }
52 
56  inline void SetScheduledInstanceSet(Aws::Vector<ScheduledInstance>&& value) { m_scheduledInstanceSet = std::move(value); }
57 
61  inline PurchaseScheduledInstancesResponse& WithScheduledInstanceSet(const Aws::Vector<ScheduledInstance>& value) { SetScheduledInstanceSet(value); return *this;}
62 
66  inline PurchaseScheduledInstancesResponse& WithScheduledInstanceSet(Aws::Vector<ScheduledInstance>&& value) { SetScheduledInstanceSet(std::move(value)); return *this;}
67 
71  inline PurchaseScheduledInstancesResponse& AddScheduledInstanceSet(const ScheduledInstance& value) { m_scheduledInstanceSet.push_back(value); return *this; }
72 
76  inline PurchaseScheduledInstancesResponse& AddScheduledInstanceSet(ScheduledInstance&& value) { m_scheduledInstanceSet.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 PurchaseScheduledInstancesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
90 
91 
92  inline PurchaseScheduledInstancesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
93 
94  private:
95 
96  Aws::Vector<ScheduledInstance> m_scheduledInstanceSet;
97 
98  ResponseMetadata m_responseMetadata;
99  };
100 
101 } // namespace Model
102 } // namespace EC2
103 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PurchaseScheduledInstancesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: PurchaseScheduledInstancesResponse.h:86
Aws::EC2::Model::PurchaseScheduledInstancesResponse::WithScheduledInstanceSet
PurchaseScheduledInstancesResponse & WithScheduledInstanceSet(Aws::Vector< ScheduledInstance > &&value)
Definition: PurchaseScheduledInstancesResponse.h:66
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::PurchaseScheduledInstancesResponse
Definition: PurchaseScheduledInstancesResponse.h:36
AWSVector.h
Aws::EC2::Model::PurchaseScheduledInstancesResponse::GetScheduledInstanceSet
const Aws::Vector< ScheduledInstance > & GetScheduledInstanceSet() const
Definition: PurchaseScheduledInstancesResponse.h:46
Aws::EC2::Model::ScheduledInstance
Definition: ScheduledInstance.h:34
Aws::EC2::Model::PurchaseScheduledInstancesResponse::WithScheduledInstanceSet
PurchaseScheduledInstancesResponse & WithScheduledInstanceSet(const Aws::Vector< ScheduledInstance > &value)
Definition: PurchaseScheduledInstancesResponse.h:61
Aws::EC2::Model::PurchaseScheduledInstancesResponse::SetScheduledInstanceSet
void SetScheduledInstanceSet(Aws::Vector< ScheduledInstance > &&value)
Definition: PurchaseScheduledInstancesResponse.h:56
Aws::EC2::Model::PurchaseScheduledInstancesResponse::AddScheduledInstanceSet
PurchaseScheduledInstancesResponse & AddScheduledInstanceSet(const ScheduledInstance &value)
Definition: PurchaseScheduledInstancesResponse.h:71
Aws::EC2::Model::PurchaseScheduledInstancesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: PurchaseScheduledInstancesResponse.h:80
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PurchaseScheduledInstancesResponse::PurchaseScheduledInstancesResponse
PurchaseScheduledInstancesResponse()
Aws::EC2::Model::PurchaseScheduledInstancesResponse::operator=
PurchaseScheduledInstancesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::PurchaseScheduledInstancesResponse::AddScheduledInstanceSet
PurchaseScheduledInstancesResponse & AddScheduledInstanceSet(ScheduledInstance &&value)
Definition: PurchaseScheduledInstancesResponse.h:76
ScheduledInstance.h
Aws::EC2::Model::PurchaseScheduledInstancesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: PurchaseScheduledInstancesResponse.h:83
Aws::EC2::Model::PurchaseScheduledInstancesResponse::PurchaseScheduledInstancesResponse
PurchaseScheduledInstancesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::PurchaseScheduledInstancesResponse::WithResponseMetadata
PurchaseScheduledInstancesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: PurchaseScheduledInstancesResponse.h:89
Aws::EC2::Model::PurchaseScheduledInstancesResponse::WithResponseMetadata
PurchaseScheduledInstancesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: PurchaseScheduledInstancesResponse.h:92
Aws::EC2::Model::PurchaseScheduledInstancesResponse::SetScheduledInstanceSet
void SetScheduledInstanceSet(const Aws::Vector< ScheduledInstance > &value)
Definition: PurchaseScheduledInstancesResponse.h:51
EC2_EXPORTS.h