AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCapacityReservationFleetRequest.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/FleetCapacityReservationTenancy.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ec2/model/FleetInstanceMatchCriteria.h>
14#include <aws/ec2/model/ReservationFleetInstanceSpecification.h>
15#include <aws/ec2/model/TagSpecification.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace EC2
22{
23namespace Model
24{
25
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 "CreateCapacityReservationFleet"; }
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
55 inline const Aws::String& GetAllocationStrategy() const{ return m_allocationStrategy; }
56 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
57 inline void SetAllocationStrategy(const Aws::String& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
58 inline void SetAllocationStrategy(Aws::String&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
59 inline void SetAllocationStrategy(const char* value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy.assign(value); }
64
66
72 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
73 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
74 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
75 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
76 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
78 inline CreateCapacityReservationFleetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
79 inline CreateCapacityReservationFleetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
81
83
86 inline const Aws::Vector<ReservationFleetInstanceSpecification>& GetInstanceTypeSpecifications() const{ return m_instanceTypeSpecifications; }
87 inline bool InstanceTypeSpecificationsHasBeenSet() const { return m_instanceTypeSpecificationsHasBeenSet; }
88 inline void SetInstanceTypeSpecifications(const Aws::Vector<ReservationFleetInstanceSpecification>& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications = value; }
89 inline void SetInstanceTypeSpecifications(Aws::Vector<ReservationFleetInstanceSpecification>&& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications = std::move(value); }
92 inline CreateCapacityReservationFleetRequest& AddInstanceTypeSpecifications(const ReservationFleetInstanceSpecification& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications.push_back(value); return *this; }
93 inline CreateCapacityReservationFleetRequest& AddInstanceTypeSpecifications(ReservationFleetInstanceSpecification&& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications.push_back(std::move(value)); return *this; }
95
97
107 inline const FleetCapacityReservationTenancy& GetTenancy() const{ return m_tenancy; }
108 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
109 inline void SetTenancy(const FleetCapacityReservationTenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
110 inline void SetTenancy(FleetCapacityReservationTenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
114
116
125 inline int GetTotalTargetCapacity() const{ return m_totalTargetCapacity; }
126 inline bool TotalTargetCapacityHasBeenSet() const { return m_totalTargetCapacityHasBeenSet; }
127 inline void SetTotalTargetCapacity(int value) { m_totalTargetCapacityHasBeenSet = true; m_totalTargetCapacity = value; }
130
132
141 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
142 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
143 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
144 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
146 inline CreateCapacityReservationFleetRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
148
150
159 inline const FleetInstanceMatchCriteria& GetInstanceMatchCriteria() const{ return m_instanceMatchCriteria; }
160 inline bool InstanceMatchCriteriaHasBeenSet() const { return m_instanceMatchCriteriaHasBeenSet; }
161 inline void SetInstanceMatchCriteria(const FleetInstanceMatchCriteria& value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = value; }
162 inline void SetInstanceMatchCriteria(FleetInstanceMatchCriteria&& value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = std::move(value); }
166
168
172 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
173 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
174 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
175 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
178 inline CreateCapacityReservationFleetRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
179 inline CreateCapacityReservationFleetRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
181
183
189 inline bool GetDryRun() const{ return m_dryRun; }
190 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
191 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
192 inline CreateCapacityReservationFleetRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
194 private:
195
196 Aws::String m_allocationStrategy;
197 bool m_allocationStrategyHasBeenSet = false;
198
199 Aws::String m_clientToken;
200 bool m_clientTokenHasBeenSet = false;
201
202 Aws::Vector<ReservationFleetInstanceSpecification> m_instanceTypeSpecifications;
203 bool m_instanceTypeSpecificationsHasBeenSet = false;
204
206 bool m_tenancyHasBeenSet = false;
207
208 int m_totalTargetCapacity;
209 bool m_totalTargetCapacityHasBeenSet = false;
210
211 Aws::Utils::DateTime m_endDate;
212 bool m_endDateHasBeenSet = false;
213
214 FleetInstanceMatchCriteria m_instanceMatchCriteria;
215 bool m_instanceMatchCriteriaHasBeenSet = false;
216
217 Aws::Vector<TagSpecification> m_tagSpecifications;
218 bool m_tagSpecificationsHasBeenSet = false;
219
220 bool m_dryRun;
221 bool m_dryRunHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace EC2
226} // namespace Aws
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateCapacityReservationFleetRequest & WithTotalTargetCapacity(int value)
CreateCapacityReservationFleetRequest & WithInstanceTypeSpecifications(Aws::Vector< ReservationFleetInstanceSpecification > &&value)
CreateCapacityReservationFleetRequest & WithDryRun(bool value)
const Aws::Vector< ReservationFleetInstanceSpecification > & GetInstanceTypeSpecifications() const
CreateCapacityReservationFleetRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateCapacityReservationFleetRequest & WithClientToken(Aws::String &&value)
CreateCapacityReservationFleetRequest & WithInstanceMatchCriteria(const FleetInstanceMatchCriteria &value)
CreateCapacityReservationFleetRequest & AddInstanceTypeSpecifications(ReservationFleetInstanceSpecification &&value)
CreateCapacityReservationFleetRequest & WithAllocationStrategy(const char *value)
CreateCapacityReservationFleetRequest & WithClientToken(const char *value)
CreateCapacityReservationFleetRequest & WithTenancy(const FleetCapacityReservationTenancy &value)
CreateCapacityReservationFleetRequest & WithAllocationStrategy(Aws::String &&value)
CreateCapacityReservationFleetRequest & AddTagSpecifications(const TagSpecification &value)
CreateCapacityReservationFleetRequest & AddInstanceTypeSpecifications(const ReservationFleetInstanceSpecification &value)
CreateCapacityReservationFleetRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateCapacityReservationFleetRequest & WithInstanceTypeSpecifications(const Aws::Vector< ReservationFleetInstanceSpecification > &value)
void SetInstanceTypeSpecifications(Aws::Vector< ReservationFleetInstanceSpecification > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateCapacityReservationFleetRequest & WithEndDate(Aws::Utils::DateTime &&value)
CreateCapacityReservationFleetRequest & WithEndDate(const Aws::Utils::DateTime &value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateCapacityReservationFleetRequest & WithClientToken(const Aws::String &value)
CreateCapacityReservationFleetRequest & WithTenancy(FleetCapacityReservationTenancy &&value)
CreateCapacityReservationFleetRequest & WithInstanceMatchCriteria(FleetInstanceMatchCriteria &&value)
CreateCapacityReservationFleetRequest & WithAllocationStrategy(const Aws::String &value)
CreateCapacityReservationFleetRequest & AddTagSpecifications(TagSpecification &&value)
void SetInstanceTypeSpecifications(const Aws::Vector< ReservationFleetInstanceSpecification > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector