AWS SDK for C++  1.9.66
AWS SDK for C++
GetHostReservationPurchasePreviewRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "GetHostReservationPurchasePreview"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::Vector<Aws::String>& GetHostIdSet() const{ return m_hostIdSet; }
44 
48  inline bool HostIdSetHasBeenSet() const { return m_hostIdSetHasBeenSet; }
49 
53  inline void SetHostIdSet(const Aws::Vector<Aws::String>& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet = value; }
54 
58  inline void SetHostIdSet(Aws::Vector<Aws::String>&& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet = std::move(value); }
59 
63  inline GetHostReservationPurchasePreviewRequest& WithHostIdSet(const Aws::Vector<Aws::String>& value) { SetHostIdSet(value); return *this;}
64 
68  inline GetHostReservationPurchasePreviewRequest& WithHostIdSet(Aws::Vector<Aws::String>&& value) { SetHostIdSet(std::move(value)); return *this;}
69 
73  inline GetHostReservationPurchasePreviewRequest& AddHostIdSet(const Aws::String& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(value); return *this; }
74 
78  inline GetHostReservationPurchasePreviewRequest& AddHostIdSet(Aws::String&& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(std::move(value)); return *this; }
79 
83  inline GetHostReservationPurchasePreviewRequest& AddHostIdSet(const char* value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(value); return *this; }
84 
85 
89  inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
90 
94  inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
95 
99  inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
100 
104  inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
105 
109  inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
110 
114  inline GetHostReservationPurchasePreviewRequest& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
115 
119  inline GetHostReservationPurchasePreviewRequest& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
120 
124  inline GetHostReservationPurchasePreviewRequest& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
125 
126  private:
127 
128  Aws::Vector<Aws::String> m_hostIdSet;
129  bool m_hostIdSetHasBeenSet;
130 
131  Aws::String m_offeringId;
132  bool m_offeringIdHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace EC2
137 } // namespace Aws
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::GetHostReservationPurchasePreviewRequest
GetHostReservationPurchasePreviewRequest()
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::WithOfferingId
GetHostReservationPurchasePreviewRequest & WithOfferingId(const Aws::String &value)
Definition: GetHostReservationPurchasePreviewRequest.h:114
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::SetOfferingId
void SetOfferingId(Aws::String &&value)
Definition: GetHostReservationPurchasePreviewRequest.h:104
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::SetHostIdSet
void SetHostIdSet(const Aws::Vector< Aws::String > &value)
Definition: GetHostReservationPurchasePreviewRequest.h:53
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::WithHostIdSet
GetHostReservationPurchasePreviewRequest & WithHostIdSet(Aws::Vector< Aws::String > &&value)
Definition: GetHostReservationPurchasePreviewRequest.h:68
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::HostIdSetHasBeenSet
bool HostIdSetHasBeenSet() const
Definition: GetHostReservationPurchasePreviewRequest.h:48
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::SetHostIdSet
void SetHostIdSet(Aws::Vector< Aws::String > &&value)
Definition: GetHostReservationPurchasePreviewRequest.h:58
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::WithOfferingId
GetHostReservationPurchasePreviewRequest & WithOfferingId(const char *value)
Definition: GetHostReservationPurchasePreviewRequest.h:124
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::GetHostIdSet
const Aws::Vector< Aws::String > & GetHostIdSet() const
Definition: GetHostReservationPurchasePreviewRequest.h:43
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::AddHostIdSet
GetHostReservationPurchasePreviewRequest & AddHostIdSet(const Aws::String &value)
Definition: GetHostReservationPurchasePreviewRequest.h:73
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::GetOfferingId
const Aws::String & GetOfferingId() const
Definition: GetHostReservationPurchasePreviewRequest.h:89
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::AddHostIdSet
GetHostReservationPurchasePreviewRequest & AddHostIdSet(Aws::String &&value)
Definition: GetHostReservationPurchasePreviewRequest.h:78
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::OfferingIdHasBeenSet
bool OfferingIdHasBeenSet() const
Definition: GetHostReservationPurchasePreviewRequest.h:94
EC2Request.h
AWSString.h
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::AddHostIdSet
GetHostReservationPurchasePreviewRequest & AddHostIdSet(const char *value)
Definition: GetHostReservationPurchasePreviewRequest.h:83
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::WithHostIdSet
GetHostReservationPurchasePreviewRequest & WithHostIdSet(const Aws::Vector< Aws::String > &value)
Definition: GetHostReservationPurchasePreviewRequest.h:63
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::SerializePayload
Aws::String SerializePayload() const override
EC2_EXPORTS.h
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::SetOfferingId
void SetOfferingId(const Aws::String &value)
Definition: GetHostReservationPurchasePreviewRequest.h:99
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest
Definition: GetHostReservationPurchasePreviewRequest.h:23
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetHostReservationPurchasePreviewRequest.h:31
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::WithOfferingId
GetHostReservationPurchasePreviewRequest & WithOfferingId(Aws::String &&value)
Definition: GetHostReservationPurchasePreviewRequest.h:119
Aws::EC2::Model::GetHostReservationPurchasePreviewRequest::SetOfferingId
void SetOfferingId(const char *value)
Definition: GetHostReservationPurchasePreviewRequest.h:109