AWS SDK for C++  1.9.103
AWS SDK for C++
PurchaseRequest.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 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline int GetInstanceCount() const{ return m_instanceCount; }
47 
51  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
52 
56  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
57 
61  inline PurchaseRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
62 
63 
67  inline const Aws::String& GetPurchaseToken() const{ return m_purchaseToken; }
68 
72  inline bool PurchaseTokenHasBeenSet() const { return m_purchaseTokenHasBeenSet; }
73 
77  inline void SetPurchaseToken(const Aws::String& value) { m_purchaseTokenHasBeenSet = true; m_purchaseToken = value; }
78 
82  inline void SetPurchaseToken(Aws::String&& value) { m_purchaseTokenHasBeenSet = true; m_purchaseToken = std::move(value); }
83 
87  inline void SetPurchaseToken(const char* value) { m_purchaseTokenHasBeenSet = true; m_purchaseToken.assign(value); }
88 
92  inline PurchaseRequest& WithPurchaseToken(const Aws::String& value) { SetPurchaseToken(value); return *this;}
93 
97  inline PurchaseRequest& WithPurchaseToken(Aws::String&& value) { SetPurchaseToken(std::move(value)); return *this;}
98 
102  inline PurchaseRequest& WithPurchaseToken(const char* value) { SetPurchaseToken(value); return *this;}
103 
104  private:
105 
106  int m_instanceCount;
107  bool m_instanceCountHasBeenSet;
108 
109  Aws::String m_purchaseToken;
110  bool m_purchaseTokenHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace EC2
115 } // namespace Aws
Aws::EC2::Model::PurchaseRequest::WithPurchaseToken
PurchaseRequest & WithPurchaseToken(const Aws::String &value)
Definition: PurchaseRequest.h:92
Aws::EC2::Model::PurchaseRequest::WithInstanceCount
PurchaseRequest & WithInstanceCount(int value)
Definition: PurchaseRequest.h:61
Aws::EC2::Model::PurchaseRequest::WithPurchaseToken
PurchaseRequest & WithPurchaseToken(const char *value)
Definition: PurchaseRequest.h:102
Aws::EC2::Model::PurchaseRequest::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: PurchaseRequest.h:51
Aws::EC2::Model::PurchaseRequest
Definition: PurchaseRequest.h:33
Aws::EC2::Model::PurchaseRequest::GetInstanceCount
int GetInstanceCount() const
Definition: PurchaseRequest.h:46
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::PurchaseRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PurchaseRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PurchaseRequest::PurchaseRequest
PurchaseRequest()
Aws::EC2::Model::PurchaseRequest::SetPurchaseToken
void SetPurchaseToken(const char *value)
Definition: PurchaseRequest.h:87
Aws::EC2::Model::PurchaseRequest::PurchaseRequest
PurchaseRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PurchaseRequest::SetPurchaseToken
void SetPurchaseToken(const Aws::String &value)
Definition: PurchaseRequest.h:77
AWSString.h
Aws::EC2::Model::PurchaseRequest::SetPurchaseToken
void SetPurchaseToken(Aws::String &&value)
Definition: PurchaseRequest.h:82
Aws::EC2::Model::PurchaseRequest::WithPurchaseToken
PurchaseRequest & WithPurchaseToken(Aws::String &&value)
Definition: PurchaseRequest.h:97
Aws::EC2::Model::PurchaseRequest::GetPurchaseToken
const Aws::String & GetPurchaseToken() const
Definition: PurchaseRequest.h:67
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::PurchaseRequest::PurchaseTokenHasBeenSet
bool PurchaseTokenHasBeenSet() const
Definition: PurchaseRequest.h:72
Aws::EC2::Model::PurchaseRequest::SetInstanceCount
void SetInstanceCount(int value)
Definition: PurchaseRequest.h:56
EC2_EXPORTS.h
Aws::EC2::Model::PurchaseRequest::operator=
PurchaseRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)