7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/FleetExcessCapacityTerminationPolicy.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/TargetCapacitySpecificationRequest.h>
13#include <aws/ec2/model/FleetLaunchTemplateConfigRequest.h>
52 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
74 template<
typename LaunchTemplateConfigsT = Aws::Vector<FleetLaunchTemplateConfigRequest>>
75 void SetLaunchTemplateConfigs(LaunchTemplateConfigsT&& value) { m_launchTemplateConfigsHasBeenSet =
true; m_launchTemplateConfigs = std::forward<LaunchTemplateConfigsT>(value); }
76 template<
typename LaunchTemplateConfigsT = Aws::Vector<FleetLaunchTemplateConfigRequest>>
78 template<
typename LaunchTemplateConfigsT = FleetLaunchTemplateConfigRequest>
79 ModifyFleetRequest&
AddLaunchTemplateConfigs(LaunchTemplateConfigsT&& value) { m_launchTemplateConfigsHasBeenSet =
true; m_launchTemplateConfigs.emplace_back(std::forward<LaunchTemplateConfigsT>(value));
return *
this; }
88 template<
typename FleetIdT = Aws::String>
89 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet =
true; m_fleetId = std::forward<FleetIdT>(value); }
90 template<
typename FleetIdT = Aws::String>
100 template<
typename TargetCapacitySpecificationT = TargetCapacitySpecificationRequest>
101 void SetTargetCapacitySpecification(TargetCapacitySpecificationT&& value) { m_targetCapacitySpecificationHasBeenSet =
true; m_targetCapacitySpecification = std::forward<TargetCapacitySpecificationT>(value); }
102 template<
typename TargetCapacitySpecificationT = TargetCapacitySpecificationRequest>
112 template<
typename ContextT = Aws::String>
113 void SetContext(ContextT&& value) { m_contextHasBeenSet =
true; m_context = std::forward<ContextT>(value); }
114 template<
typename ContextT = Aws::String>
119 bool m_dryRun{
false};
120 bool m_dryRunHasBeenSet =
false;
123 bool m_excessCapacityTerminationPolicyHasBeenSet =
false;
126 bool m_launchTemplateConfigsHasBeenSet =
false;
129 bool m_fleetIdHasBeenSet =
false;
131 TargetCapacitySpecificationRequest m_targetCapacitySpecification;
132 bool m_targetCapacitySpecificationHasBeenSet =
false;
135 bool m_contextHasBeenSet =
false;
ModifyFleetRequest & WithDryRun(bool value)
void SetTargetCapacitySpecification(TargetCapacitySpecificationT &&value)
bool LaunchTemplateConfigsHasBeenSet() const
ModifyFleetRequest & WithFleetId(FleetIdT &&value)
bool TargetCapacitySpecificationHasBeenSet() const
bool ExcessCapacityTerminationPolicyHasBeenSet() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetFleetId(FleetIdT &&value)
AWS_EC2_API ModifyFleetRequest()=default
AWS_EC2_API Aws::String SerializePayload() const override
ModifyFleetRequest & WithContext(ContextT &&value)
ModifyFleetRequest & WithExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy value)
const Aws::Vector< FleetLaunchTemplateConfigRequest > & GetLaunchTemplateConfigs() const
bool DryRunHasBeenSet() const
ModifyFleetRequest & WithTargetCapacitySpecification(TargetCapacitySpecificationT &&value)
void SetExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy value)
ModifyFleetRequest & WithLaunchTemplateConfigs(LaunchTemplateConfigsT &&value)
FleetExcessCapacityTerminationPolicy GetExcessCapacityTerminationPolicy() const
const Aws::String & GetFleetId() const
bool FleetIdHasBeenSet() const
ModifyFleetRequest & AddLaunchTemplateConfigs(LaunchTemplateConfigsT &&value)
void SetContext(ContextT &&value)
bool ContextHasBeenSet() const
void SetLaunchTemplateConfigs(LaunchTemplateConfigsT &&value)
void SetDryRun(bool value)
const TargetCapacitySpecificationRequest & GetTargetCapacitySpecification() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetContext() const
FleetExcessCapacityTerminationPolicy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector