AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PurchaseScheduledInstancesRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/PurchaseRequest.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
27 public:
28 AWS_EC2_API PurchaseScheduledInstancesRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "PurchaseScheduledInstances"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
40
41 public:
43
49 inline const Aws::String& GetClientToken() const { return m_clientToken; }
50 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
51 template <typename ClientTokenT = Aws::String>
52 void SetClientToken(ClientTokenT&& value) {
53 m_clientTokenHasBeenSet = true;
54 m_clientToken = std::forward<ClientTokenT>(value);
55 }
56 template <typename ClientTokenT = Aws::String>
58 SetClientToken(std::forward<ClientTokenT>(value));
59 return *this;
60 }
62
64
70 inline bool GetDryRun() const { return m_dryRun; }
71 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
72 inline void SetDryRun(bool value) {
73 m_dryRunHasBeenSet = true;
74 m_dryRun = value;
75 }
77 SetDryRun(value);
78 return *this;
79 }
81
83
86 inline const Aws::Vector<PurchaseRequest>& GetPurchaseRequests() const { return m_purchaseRequests; }
87 inline bool PurchaseRequestsHasBeenSet() const { return m_purchaseRequestsHasBeenSet; }
88 template <typename PurchaseRequestsT = Aws::Vector<PurchaseRequest>>
89 void SetPurchaseRequests(PurchaseRequestsT&& value) {
90 m_purchaseRequestsHasBeenSet = true;
91 m_purchaseRequests = std::forward<PurchaseRequestsT>(value);
92 }
93 template <typename PurchaseRequestsT = Aws::Vector<PurchaseRequest>>
95 SetPurchaseRequests(std::forward<PurchaseRequestsT>(value));
96 return *this;
97 }
98 template <typename PurchaseRequestsT = PurchaseRequest>
100 m_purchaseRequestsHasBeenSet = true;
101 m_purchaseRequests.emplace_back(std::forward<PurchaseRequestsT>(value));
102 return *this;
103 }
105 private:
107
108 bool m_dryRun{false};
109
110 Aws::Vector<PurchaseRequest> m_purchaseRequests;
111 bool m_clientTokenHasBeenSet = true;
112 bool m_dryRunHasBeenSet = false;
113 bool m_purchaseRequestsHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace EC2
118} // namespace Aws
PurchaseScheduledInstancesRequest & WithDryRun(bool value)
PurchaseScheduledInstancesRequest & WithPurchaseRequests(PurchaseRequestsT &&value)
PurchaseScheduledInstancesRequest & AddPurchaseRequests(PurchaseRequestsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< PurchaseRequest > & GetPurchaseRequests() const
PurchaseScheduledInstancesRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector