AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
CancelCapacityReservationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ApplyCancellationCharges.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API CancelCapacityReservationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CancelCapacityReservation"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetCapacityReservationId() const { return m_capacityReservationId; }
41 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
42 template <typename CapacityReservationIdT = Aws::String>
43 void SetCapacityReservationId(CapacityReservationIdT&& value) {
44 m_capacityReservationIdHasBeenSet = true;
45 m_capacityReservationId = std::forward<CapacityReservationIdT>(value);
46 }
47 template <typename CapacityReservationIdT = Aws::String>
49 SetCapacityReservationId(std::forward<CapacityReservationIdT>(value));
50 return *this;
51 }
53
55
61 inline bool GetDryRun() const { return m_dryRun; }
62 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
63 inline void SetDryRun(bool value) {
64 m_dryRunHasBeenSet = true;
65 m_dryRun = value;
66 }
68 SetDryRun(value);
69 return *this;
70 }
72
74
80 inline ApplyCancellationCharges GetApplyCancellationCharges() const { return m_applyCancellationCharges; }
81 inline bool ApplyCancellationChargesHasBeenSet() const { return m_applyCancellationChargesHasBeenSet; }
83 m_applyCancellationChargesHasBeenSet = true;
84 m_applyCancellationCharges = value;
85 }
88 return *this;
89 }
91
93
99 inline const Aws::String& GetQuoteId() const { return m_quoteId; }
100 inline bool QuoteIdHasBeenSet() const { return m_quoteIdHasBeenSet; }
101 template <typename QuoteIdT = Aws::String>
102 void SetQuoteId(QuoteIdT&& value) {
103 m_quoteIdHasBeenSet = true;
104 m_quoteId = std::forward<QuoteIdT>(value);
105 }
106 template <typename QuoteIdT = Aws::String>
108 SetQuoteId(std::forward<QuoteIdT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_capacityReservationId;
114
115 bool m_dryRun{false};
116
118
119 Aws::String m_quoteId;
120 bool m_capacityReservationIdHasBeenSet = false;
121 bool m_dryRunHasBeenSet = false;
122 bool m_applyCancellationChargesHasBeenSet = false;
123 bool m_quoteIdHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace EC2
128} // namespace Aws
CancelCapacityReservationRequest & WithApplyCancellationCharges(ApplyCancellationCharges value)
CancelCapacityReservationRequest & WithQuoteId(QuoteIdT &&value)
CancelCapacityReservationRequest & WithCapacityReservationId(CapacityReservationIdT &&value)
CancelCapacityReservationRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String