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/ec2/model/SpotOptionsRequest.h>
11#include <aws/ec2/model/OnDemandOptionsRequest.h>
12#include <aws/ec2/model/FleetExcessCapacityTerminationPolicy.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/TargetCapacitySpecificationRequest.h>
15#include <aws/ec2/model/FleetType.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/ec2/model/FleetLaunchTemplateConfigRequest.h>
18#include <aws/ec2/model/TagSpecification.h>
57 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
72 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
172 inline void SetType(
FleetType&& value) { m_typeHasBeenSet =
true; m_type = std::move(value); }
252 inline void SetContext(
const char* value) { m_contextHasBeenSet =
true; m_context.assign(value); }
260 bool m_dryRunHasBeenSet =
false;
263 bool m_clientTokenHasBeenSet =
false;
266 bool m_spotOptionsHasBeenSet =
false;
269 bool m_onDemandOptionsHasBeenSet =
false;
272 bool m_excessCapacityTerminationPolicyHasBeenSet =
false;
275 bool m_launchTemplateConfigsHasBeenSet =
false;
278 bool m_targetCapacitySpecificationHasBeenSet =
false;
280 bool m_terminateInstancesWithExpiration;
281 bool m_terminateInstancesWithExpirationHasBeenSet =
false;
284 bool m_typeHasBeenSet =
false;
287 bool m_validFromHasBeenSet =
false;
290 bool m_validUntilHasBeenSet =
false;
292 bool m_replaceUnhealthyInstances;
293 bool m_replaceUnhealthyInstancesHasBeenSet =
false;
296 bool m_tagSpecificationsHasBeenSet =
false;
299 bool m_contextHasBeenSet =
false;
bool TypeHasBeenSet() const
const Aws::Utils::DateTime & GetValidFrom() const
const Aws::String & GetContext() const
CreateFleetRequest & WithExcessCapacityTerminationPolicy(const FleetExcessCapacityTerminationPolicy &value)
void SetTerminateInstancesWithExpiration(bool value)
void SetClientToken(const char *value)
const FleetType & GetType() const
void SetSpotOptions(SpotOptionsRequest &&value)
bool ReplaceUnhealthyInstancesHasBeenSet() const
void SetTargetCapacitySpecification(TargetCapacitySpecificationRequest &&value)
void SetType(FleetType &&value)
const Aws::String & GetClientToken() const
CreateFleetRequest & WithOnDemandOptions(OnDemandOptionsRequest &&value)
virtual const char * GetServiceRequestName() const override
bool GetTerminateInstancesWithExpiration() const
const FleetExcessCapacityTerminationPolicy & GetExcessCapacityTerminationPolicy() const
void SetDryRun(bool value)
bool ValidUntilHasBeenSet() const
bool TerminateInstancesWithExpirationHasBeenSet() const
CreateFleetRequest & WithValidFrom(Aws::Utils::DateTime &&value)
CreateFleetRequest & AddLaunchTemplateConfigs(FleetLaunchTemplateConfigRequest &&value)
CreateFleetRequest & WithValidUntil(const Aws::Utils::DateTime &value)
void SetLaunchTemplateConfigs(Aws::Vector< FleetLaunchTemplateConfigRequest > &&value)
void SetReplaceUnhealthyInstances(bool value)
void SetValidFrom(Aws::Utils::DateTime &&value)
void SetValidFrom(const Aws::Utils::DateTime &value)
CreateFleetRequest & WithSpotOptions(const SpotOptionsRequest &value)
CreateFleetRequest & AddTagSpecifications(const TagSpecification &value)
void SetValidUntil(const Aws::Utils::DateTime &value)
CreateFleetRequest & AddTagSpecifications(TagSpecification &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateFleetRequest & WithContext(const char *value)
CreateFleetRequest & WithOnDemandOptions(const OnDemandOptionsRequest &value)
CreateFleetRequest & WithExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy &&value)
CreateFleetRequest & WithType(FleetType &&value)
void SetExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy &&value)
bool ValidFromHasBeenSet() const
CreateFleetRequest & WithSpotOptions(SpotOptionsRequest &&value)
const Aws::Vector< FleetLaunchTemplateConfigRequest > & GetLaunchTemplateConfigs() const
const TargetCapacitySpecificationRequest & GetTargetCapacitySpecification() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetContext(const char *value)
void SetContext(const Aws::String &value)
bool OnDemandOptionsHasBeenSet() const
CreateFleetRequest & WithDryRun(bool value)
CreateFleetRequest & WithTargetCapacitySpecification(const TargetCapacitySpecificationRequest &value)
CreateFleetRequest & WithTargetCapacitySpecification(TargetCapacitySpecificationRequest &&value)
CreateFleetRequest & WithContext(const Aws::String &value)
const SpotOptionsRequest & GetSpotOptions() const
CreateFleetRequest & AddLaunchTemplateConfigs(const FleetLaunchTemplateConfigRequest &value)
void SetContext(Aws::String &&value)
AWS_EC2_API CreateFleetRequest()
CreateFleetRequest & WithReplaceUnhealthyInstances(bool value)
CreateFleetRequest & WithType(const FleetType &value)
CreateFleetRequest & WithValidFrom(const Aws::Utils::DateTime &value)
bool LaunchTemplateConfigsHasBeenSet() const
void SetOnDemandOptions(OnDemandOptionsRequest &&value)
CreateFleetRequest & WithClientToken(const char *value)
CreateFleetRequest & WithLaunchTemplateConfigs(const Aws::Vector< FleetLaunchTemplateConfigRequest > &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetTargetCapacitySpecification(const TargetCapacitySpecificationRequest &value)
void SetClientToken(const Aws::String &value)
CreateFleetRequest & WithContext(Aws::String &&value)
void SetSpotOptions(const SpotOptionsRequest &value)
CreateFleetRequest & WithValidUntil(Aws::Utils::DateTime &&value)
void SetExcessCapacityTerminationPolicy(const FleetExcessCapacityTerminationPolicy &value)
bool ContextHasBeenSet() const
AWS_EC2_API Aws::String SerializePayload() const override
bool GetReplaceUnhealthyInstances() const
bool ExcessCapacityTerminationPolicyHasBeenSet() const
void SetValidUntil(Aws::Utils::DateTime &&value)
void SetClientToken(Aws::String &&value)
CreateFleetRequest & WithClientToken(Aws::String &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateFleetRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetType(const FleetType &value)
bool DryRunHasBeenSet() const
const Aws::Utils::DateTime & GetValidUntil() const
CreateFleetRequest & WithTerminateInstancesWithExpiration(bool value)
bool ClientTokenHasBeenSet() const
bool SpotOptionsHasBeenSet() const
CreateFleetRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetLaunchTemplateConfigs(const Aws::Vector< FleetLaunchTemplateConfigRequest > &value)
bool TagSpecificationsHasBeenSet() const
const OnDemandOptionsRequest & GetOnDemandOptions() const
CreateFleetRequest & WithClientToken(const Aws::String &value)
CreateFleetRequest & WithLaunchTemplateConfigs(Aws::Vector< FleetLaunchTemplateConfigRequest > &&value)
void SetOnDemandOptions(const OnDemandOptionsRequest &value)
bool TargetCapacitySpecificationHasBeenSet() const
FleetExcessCapacityTerminationPolicy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector