AWS SDK for C++  1.9.65
AWS SDK for C++
PurchaseReservedInstancesOfferingResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlDocument;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
35  {
36  public:
40 
41 
49  inline const Aws::String& GetReservedInstancesId() const{ return m_reservedInstancesId; }
50 
58  inline void SetReservedInstancesId(const Aws::String& value) { m_reservedInstancesId = value; }
59 
67  inline void SetReservedInstancesId(Aws::String&& value) { m_reservedInstancesId = std::move(value); }
68 
76  inline void SetReservedInstancesId(const char* value) { m_reservedInstancesId.assign(value); }
77 
85  inline PurchaseReservedInstancesOfferingResponse& WithReservedInstancesId(const Aws::String& value) { SetReservedInstancesId(value); return *this;}
86 
94  inline PurchaseReservedInstancesOfferingResponse& WithReservedInstancesId(Aws::String&& value) { SetReservedInstancesId(std::move(value)); return *this;}
95 
103  inline PurchaseReservedInstancesOfferingResponse& WithReservedInstancesId(const char* value) { SetReservedInstancesId(value); return *this;}
104 
105 
106 
107  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
108 
109 
110  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
111 
112 
113  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
114 
115 
116  inline PurchaseReservedInstancesOfferingResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
117 
118 
119  inline PurchaseReservedInstancesOfferingResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
120 
121  private:
122 
123  Aws::String m_reservedInstancesId;
124 
125  ResponseMetadata m_responseMetadata;
126  };
127 
128 } // namespace Model
129 } // namespace EC2
130 } // namespace Aws
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::SetReservedInstancesId
void SetReservedInstancesId(const char *value)
Definition: PurchaseReservedInstancesOfferingResponse.h:76
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::SetReservedInstancesId
void SetReservedInstancesId(Aws::String &&value)
Definition: PurchaseReservedInstancesOfferingResponse.h:67
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::WithReservedInstancesId
PurchaseReservedInstancesOfferingResponse & WithReservedInstancesId(const char *value)
Definition: PurchaseReservedInstancesOfferingResponse.h:103
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::WithResponseMetadata
PurchaseReservedInstancesOfferingResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: PurchaseReservedInstancesOfferingResponse.h:119
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::WithResponseMetadata
PurchaseReservedInstancesOfferingResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: PurchaseReservedInstancesOfferingResponse.h:116
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: PurchaseReservedInstancesOfferingResponse.h:107
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: PurchaseReservedInstancesOfferingResponse.h:110
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::WithReservedInstancesId
PurchaseReservedInstancesOfferingResponse & WithReservedInstancesId(const Aws::String &value)
Definition: PurchaseReservedInstancesOfferingResponse.h:85
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::GetReservedInstancesId
const Aws::String & GetReservedInstancesId() const
Definition: PurchaseReservedInstancesOfferingResponse.h:49
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::WithReservedInstancesId
PurchaseReservedInstancesOfferingResponse & WithReservedInstancesId(Aws::String &&value)
Definition: PurchaseReservedInstancesOfferingResponse.h:94
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::PurchaseReservedInstancesOfferingResponse
PurchaseReservedInstancesOfferingResponse()
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::operator=
PurchaseReservedInstancesOfferingResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse
Definition: PurchaseReservedInstancesOfferingResponse.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EC2_EXPORTS.h
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::SetReservedInstancesId
void SetReservedInstancesId(const Aws::String &value)
Definition: PurchaseReservedInstancesOfferingResponse.h:58
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: PurchaseReservedInstancesOfferingResponse.h:113
Aws::EC2::Model::PurchaseReservedInstancesOfferingResponse::PurchaseReservedInstancesOfferingResponse
PurchaseReservedInstancesOfferingResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)