AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetCapacityReservationFleetId(const Aws::String& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = value; }
47 inline void SetCapacityReservationFleetId(Aws::String&& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = std::move(value); }
48 inline void SetCapacityReservationFleetId(const char* value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId.assign(value); }
53
55
64 inline int GetTotalTargetCapacity() const{ return m_totalTargetCapacity; }
65 inline bool TotalTargetCapacityHasBeenSet() const { return m_totalTargetCapacityHasBeenSet; }
66 inline void SetTotalTargetCapacity(int value) { m_totalTargetCapacityHasBeenSet = true; m_totalTargetCapacity = value; }
69
71
81 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
82 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
83 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
84 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
86 inline ModifyCapacityReservationFleetRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
88
90
96 inline bool GetDryRun() const{ return m_dryRun; }
97 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
98 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
99 inline ModifyCapacityReservationFleetRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
101
103
110 inline bool GetRemoveEndDate() const{ return m_removeEndDate; }
111 inline bool RemoveEndDateHasBeenSet() const { return m_removeEndDateHasBeenSet; }
112 inline void SetRemoveEndDate(bool value) { m_removeEndDateHasBeenSet = true; m_removeEndDate = value; }
115 private:
116
117 Aws::String m_capacityReservationFleetId;
118 bool m_capacityReservationFleetIdHasBeenSet = false;
119
120 int m_totalTargetCapacity;
121 bool m_totalTargetCapacityHasBeenSet = false;
122
123 Aws::Utils::DateTime m_endDate;
124 bool m_endDateHasBeenSet = false;
125
126 bool m_dryRun;
127 bool m_dryRunHasBeenSet = false;
128
129 bool m_removeEndDate;
130 bool m_removeEndDateHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace EC2
135} // namespace Aws
ModifyCapacityReservationFleetRequest & WithCapacityReservationFleetId(const Aws::String &value)
ModifyCapacityReservationFleetRequest & WithEndDate(Aws::Utils::DateTime &&value)
ModifyCapacityReservationFleetRequest & WithDryRun(bool value)
ModifyCapacityReservationFleetRequest & WithTotalTargetCapacity(int value)
ModifyCapacityReservationFleetRequest & WithEndDate(const Aws::Utils::DateTime &value)
ModifyCapacityReservationFleetRequest & WithCapacityReservationFleetId(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyCapacityReservationFleetRequest & WithRemoveEndDate(bool value)
ModifyCapacityReservationFleetRequest & WithCapacityReservationFleetId(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String