AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyCapacityReservationFleetRequest.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/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ModifyCapacityReservationFleet"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetCapacityReservationFleetId() const { return m_capacityReservationFleetId; }
45 inline bool CapacityReservationFleetIdHasBeenSet() const { return m_capacityReservationFleetIdHasBeenSet; }
46 template<typename CapacityReservationFleetIdT = Aws::String>
47 void SetCapacityReservationFleetId(CapacityReservationFleetIdT&& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = std::forward<CapacityReservationFleetIdT>(value); }
48 template<typename CapacityReservationFleetIdT = Aws::String>
49 ModifyCapacityReservationFleetRequest& WithCapacityReservationFleetId(CapacityReservationFleetIdT&& value) { SetCapacityReservationFleetId(std::forward<CapacityReservationFleetIdT>(value)); return *this;}
51
53
62 inline int GetTotalTargetCapacity() const { return m_totalTargetCapacity; }
63 inline bool TotalTargetCapacityHasBeenSet() const { return m_totalTargetCapacityHasBeenSet; }
64 inline void SetTotalTargetCapacity(int value) { m_totalTargetCapacityHasBeenSet = true; m_totalTargetCapacity = value; }
67
69
79 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
80 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
81 template<typename EndDateT = Aws::Utils::DateTime>
82 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
83 template<typename EndDateT = Aws::Utils::DateTime>
84 ModifyCapacityReservationFleetRequest& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
86
88
94 inline bool GetDryRun() const { return m_dryRun; }
95 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
96 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
97 inline ModifyCapacityReservationFleetRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
99
101
108 inline bool GetRemoveEndDate() const { return m_removeEndDate; }
109 inline bool RemoveEndDateHasBeenSet() const { return m_removeEndDateHasBeenSet; }
110 inline void SetRemoveEndDate(bool value) { m_removeEndDateHasBeenSet = true; m_removeEndDate = value; }
113 private:
114
115 Aws::String m_capacityReservationFleetId;
116 bool m_capacityReservationFleetIdHasBeenSet = false;
117
118 int m_totalTargetCapacity{0};
119 bool m_totalTargetCapacityHasBeenSet = false;
120
121 Aws::Utils::DateTime m_endDate{};
122 bool m_endDateHasBeenSet = false;
123
124 bool m_dryRun{false};
125 bool m_dryRunHasBeenSet = false;
126
127 bool m_removeEndDate{false};
128 bool m_removeEndDateHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace EC2
133} // 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