AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PurchaseScheduledInstancesRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/PurchaseRequest.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PurchaseScheduledInstances"; }
38
39 AWS_EC2_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
53 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
54 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
55 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
56 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
57 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
58 inline PurchaseScheduledInstancesRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
59 inline PurchaseScheduledInstancesRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
60 inline PurchaseScheduledInstancesRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
62
64
70 inline bool GetDryRun() const{ return m_dryRun; }
71 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
72 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
73 inline PurchaseScheduledInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
75
77
80 inline const Aws::Vector<PurchaseRequest>& GetPurchaseRequests() const{ return m_purchaseRequests; }
81 inline bool PurchaseRequestsHasBeenSet() const { return m_purchaseRequestsHasBeenSet; }
82 inline void SetPurchaseRequests(const Aws::Vector<PurchaseRequest>& value) { m_purchaseRequestsHasBeenSet = true; m_purchaseRequests = value; }
83 inline void SetPurchaseRequests(Aws::Vector<PurchaseRequest>&& value) { m_purchaseRequestsHasBeenSet = true; m_purchaseRequests = std::move(value); }
86 inline PurchaseScheduledInstancesRequest& AddPurchaseRequests(const PurchaseRequest& value) { m_purchaseRequestsHasBeenSet = true; m_purchaseRequests.push_back(value); return *this; }
87 inline PurchaseScheduledInstancesRequest& AddPurchaseRequests(PurchaseRequest&& value) { m_purchaseRequestsHasBeenSet = true; m_purchaseRequests.push_back(std::move(value)); return *this; }
89 private:
90
91 Aws::String m_clientToken;
92 bool m_clientTokenHasBeenSet = false;
93
94 bool m_dryRun;
95 bool m_dryRunHasBeenSet = false;
96
97 Aws::Vector<PurchaseRequest> m_purchaseRequests;
98 bool m_purchaseRequestsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace EC2
103} // namespace Aws
PurchaseScheduledInstancesRequest & WithDryRun(bool value)
PurchaseScheduledInstancesRequest & WithClientToken(const char *value)
PurchaseScheduledInstancesRequest & WithPurchaseRequests(const Aws::Vector< PurchaseRequest > &value)
void SetPurchaseRequests(const Aws::Vector< PurchaseRequest > &value)
PurchaseScheduledInstancesRequest & WithClientToken(Aws::String &&value)
PurchaseScheduledInstancesRequest & AddPurchaseRequests(const PurchaseRequest &value)
AWS_EC2_API Aws::String SerializePayload() const override
PurchaseScheduledInstancesRequest & WithClientToken(const Aws::String &value)
void SetPurchaseRequests(Aws::Vector< PurchaseRequest > &&value)
PurchaseScheduledInstancesRequest & WithPurchaseRequests(Aws::Vector< PurchaseRequest > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< PurchaseRequest > & GetPurchaseRequests() const
PurchaseScheduledInstancesRequest & AddPurchaseRequests(PurchaseRequest &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector