AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyCapacityReservationFleetRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
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 "ModifyCapacityReservationFleet"; }
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& GetCapacityReservationFleetId() const { return m_capacityReservationFleetId; }
41 inline bool CapacityReservationFleetIdHasBeenSet() const { return m_capacityReservationFleetIdHasBeenSet; }
42 template <typename CapacityReservationFleetIdT = Aws::String>
43 void SetCapacityReservationFleetId(CapacityReservationFleetIdT&& value) {
44 m_capacityReservationFleetIdHasBeenSet = true;
45 m_capacityReservationFleetId = std::forward<CapacityReservationFleetIdT>(value);
46 }
47 template <typename CapacityReservationFleetIdT = Aws::String>
49 SetCapacityReservationFleetId(std::forward<CapacityReservationFleetIdT>(value));
50 return *this;
51 }
53
55
64 inline int GetTotalTargetCapacity() const { return m_totalTargetCapacity; }
65 inline bool TotalTargetCapacityHasBeenSet() const { return m_totalTargetCapacityHasBeenSet; }
66 inline void SetTotalTargetCapacity(int value) {
67 m_totalTargetCapacityHasBeenSet = true;
68 m_totalTargetCapacity = value;
69 }
72 return *this;
73 }
75
77
87 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
88 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
89 template <typename EndDateT = Aws::Utils::DateTime>
90 void SetEndDate(EndDateT&& value) {
91 m_endDateHasBeenSet = true;
92 m_endDate = std::forward<EndDateT>(value);
93 }
94 template <typename EndDateT = Aws::Utils::DateTime>
96 SetEndDate(std::forward<EndDateT>(value));
97 return *this;
98 }
100
102
108 inline bool GetDryRun() const { return m_dryRun; }
109 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
110 inline void SetDryRun(bool value) {
111 m_dryRunHasBeenSet = true;
112 m_dryRun = value;
113 }
115 SetDryRun(value);
116 return *this;
117 }
119
121
128 inline bool GetRemoveEndDate() const { return m_removeEndDate; }
129 inline bool RemoveEndDateHasBeenSet() const { return m_removeEndDateHasBeenSet; }
130 inline void SetRemoveEndDate(bool value) {
131 m_removeEndDateHasBeenSet = true;
132 m_removeEndDate = value;
133 }
135 SetRemoveEndDate(value);
136 return *this;
137 }
139 private:
140 Aws::String m_capacityReservationFleetId;
141
142 int m_totalTargetCapacity{0};
143
144 Aws::Utils::DateTime m_endDate{};
145
146 bool m_dryRun{false};
147
148 bool m_removeEndDate{false};
149 bool m_capacityReservationFleetIdHasBeenSet = false;
150 bool m_totalTargetCapacityHasBeenSet = false;
151 bool m_endDateHasBeenSet = false;
152 bool m_dryRunHasBeenSet = false;
153 bool m_removeEndDateHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace EC2
158} // namespace Aws
ModifyCapacityReservationFleetRequest & WithDryRun(bool value)
ModifyCapacityReservationFleetRequest & WithEndDate(EndDateT &&value)
ModifyCapacityReservationFleetRequest & WithTotalTargetCapacity(int value)
ModifyCapacityReservationFleetRequest & WithCapacityReservationFleetId(CapacityReservationFleetIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyCapacityReservationFleetRequest & WithRemoveEndDate(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String