7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/FleetActivityStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/FleetStateCode.h>
13#include <aws/ec2/model/FleetExcessCapacityTerminationPolicy.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/ec2/model/TargetCapacitySpecification.h>
16#include <aws/ec2/model/FleetType.h>
17#include <aws/ec2/model/SpotOptions.h>
18#include <aws/ec2/model/OnDemandOptions.h>
19#include <aws/ec2/model/FleetLaunchTemplateConfig.h>
20#include <aws/ec2/model/Tag.h>
21#include <aws/ec2/model/DescribeFleetError.h>
22#include <aws/ec2/model/DescribeFleetsInstances.h>
76 template<
typename CreateTimeT = Aws::Utils::DateTime>
77 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet =
true; m_createTime = std::forward<CreateTimeT>(value); }
78 template<
typename CreateTimeT = Aws::Utils::DateTime>
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>
113 template<
typename ClientTokenT = Aws::String>
114 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
115 template<
typename ClientTokenT = Aws::String>
138 inline void SetFulfilledCapacity(
double value) { m_fulfilledCapacityHasBeenSet =
true; m_fulfilledCapacity = value; }
159 template<
typename LaunchTemplateConfigsT = Aws::Vector<FleetLaunchTemplateConfig>>
160 void SetLaunchTemplateConfigs(LaunchTemplateConfigsT&& value) { m_launchTemplateConfigsHasBeenSet =
true; m_launchTemplateConfigs = std::forward<LaunchTemplateConfigsT>(value); }
161 template<
typename LaunchTemplateConfigsT = Aws::Vector<FleetLaunchTemplateConfig>>
163 template<
typename LaunchTemplateConfigsT = FleetLaunchTemplateConfig>
164 FleetData&
AddLaunchTemplateConfigs(LaunchTemplateConfigsT&& value) { m_launchTemplateConfigsHasBeenSet =
true; m_launchTemplateConfigs.emplace_back(std::forward<LaunchTemplateConfigsT>(value));
return *
this; }
177 template<
typename TargetCapacitySpecificationT = TargetCapacitySpecification>
178 void SetTargetCapacitySpecification(TargetCapacitySpecificationT&& value) { m_targetCapacitySpecificationHasBeenSet =
true; m_targetCapacitySpecification = std::forward<TargetCapacitySpecificationT>(value); }
179 template<
typename TargetCapacitySpecificationT = TargetCapacitySpecification>
220 template<
typename Val
idFromT = Aws::Utils::DateTime>
221 void SetValidFrom(ValidFromT&& value) { m_validFromHasBeenSet =
true; m_validFrom = std::forward<ValidFromT>(value); }
222 template<
typename Val
idFromT = Aws::Utils::DateTime>
235 template<
typename Val
idUntilT = Aws::Utils::DateTime>
236 void SetValidUntil(ValidUntilT&& value) { m_validUntilHasBeenSet =
true; m_validUntil = std::forward<ValidUntilT>(value); }
237 template<
typename Val
idUntilT = Aws::Utils::DateTime>
261 template<
typename SpotOptionsT = SpotOptions>
262 void SetSpotOptions(SpotOptionsT&& value) { m_spotOptionsHasBeenSet =
true; m_spotOptions = std::forward<SpotOptionsT>(value); }
263 template<
typename SpotOptionsT = SpotOptions>
273 template<
typename OnDemandOptionsT = OnDemandOptions>
274 void SetOnDemandOptions(OnDemandOptionsT&& value) { m_onDemandOptionsHasBeenSet =
true; m_onDemandOptions = std::forward<OnDemandOptionsT>(value); }
275 template<
typename OnDemandOptionsT = OnDemandOptions>
285 template<
typename TagsT = Aws::Vector<Tag>>
286 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
287 template<
typename TagsT = Aws::Vector<Tag>>
289 template<
typename TagsT = Tag>
290 FleetData&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
300 template<
typename ErrorsT = Aws::Vector<DescribeFleetError>>
301 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet =
true; m_errors = std::forward<ErrorsT>(value); }
302 template<
typename ErrorsT = Aws::Vector<DescribeFleetError>>
304 template<
typename ErrorsT = DescribeFleetError>
305 FleetData&
AddErrors(ErrorsT&& value) { m_errorsHasBeenSet =
true; m_errors.emplace_back(std::forward<ErrorsT>(value));
return *
this; }
315 template<
typename InstancesT = Aws::Vector<DescribeFleetsInstances>>
316 void SetInstances(InstancesT&& value) { m_instancesHasBeenSet =
true; m_instances = std::forward<InstancesT>(value); }
317 template<
typename InstancesT = Aws::Vector<DescribeFleetsInstances>>
319 template<
typename InstancesT = DescribeFleetsInstances>
320 FleetData&
AddInstances(InstancesT&& value) { m_instancesHasBeenSet =
true; m_instances.emplace_back(std::forward<InstancesT>(value));
return *
this; }
329 template<
typename ContextT = Aws::String>
330 void SetContext(ContextT&& value) { m_contextHasBeenSet =
true; m_context = std::forward<ContextT>(value); }
331 template<
typename ContextT = Aws::String>
337 bool m_activityStatusHasBeenSet =
false;
340 bool m_createTimeHasBeenSet =
false;
343 bool m_fleetIdHasBeenSet =
false;
346 bool m_fleetStateHasBeenSet =
false;
349 bool m_clientTokenHasBeenSet =
false;
352 bool m_excessCapacityTerminationPolicyHasBeenSet =
false;
354 double m_fulfilledCapacity{0.0};
355 bool m_fulfilledCapacityHasBeenSet =
false;
357 double m_fulfilledOnDemandCapacity{0.0};
358 bool m_fulfilledOnDemandCapacityHasBeenSet =
false;
361 bool m_launchTemplateConfigsHasBeenSet =
false;
363 TargetCapacitySpecification m_targetCapacitySpecification;
364 bool m_targetCapacitySpecificationHasBeenSet =
false;
366 bool m_terminateInstancesWithExpiration{
false};
367 bool m_terminateInstancesWithExpirationHasBeenSet =
false;
370 bool m_typeHasBeenSet =
false;
373 bool m_validFromHasBeenSet =
false;
376 bool m_validUntilHasBeenSet =
false;
378 bool m_replaceUnhealthyInstances{
false};
379 bool m_replaceUnhealthyInstancesHasBeenSet =
false;
381 SpotOptions m_spotOptions;
382 bool m_spotOptionsHasBeenSet =
false;
384 OnDemandOptions m_onDemandOptions;
385 bool m_onDemandOptionsHasBeenSet =
false;
388 bool m_tagsHasBeenSet =
false;
391 bool m_errorsHasBeenSet =
false;
394 bool m_instancesHasBeenSet =
false;
397 bool m_contextHasBeenSet =
false;
FleetData & WithInstances(InstancesT &&value)
bool ErrorsHasBeenSet() const
FleetData & AddErrors(ErrorsT &&value)
FleetType GetType() const
bool TerminateInstancesWithExpirationHasBeenSet() const
FleetData & WithValidUntil(ValidUntilT &&value)
void SetFulfilledCapacity(double value)
AWS_EC2_API FleetData(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API FleetData & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FleetData & WithErrors(ErrorsT &&value)
FleetData & WithTerminateInstancesWithExpiration(bool value)
const TargetCapacitySpecification & GetTargetCapacitySpecification() const
void SetOnDemandOptions(OnDemandOptionsT &&value)
void SetValidFrom(ValidFromT &&value)
void SetSpotOptions(SpotOptionsT &&value)
const Aws::Vector< DescribeFleetError > & GetErrors() const
FleetData & WithFleetId(FleetIdT &&value)
bool SpotOptionsHasBeenSet() const
bool ActivityStatusHasBeenSet() const
FleetData & AddInstances(InstancesT &&value)
bool GetReplaceUnhealthyInstances() const
bool ReplaceUnhealthyInstancesHasBeenSet() const
FleetStateCode GetFleetState() const
void SetFleetId(FleetIdT &&value)
void SetReplaceUnhealthyInstances(bool value)
FleetData & WithExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy value)
FleetData & WithValidFrom(ValidFromT &&value)
bool TargetCapacitySpecificationHasBeenSet() const
double GetFulfilledOnDemandCapacity() const
const Aws::String & GetContext() const
void SetClientToken(ClientTokenT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetFleetId() const
const Aws::Utils::DateTime & GetValidFrom() const
FleetData & AddLaunchTemplateConfigs(LaunchTemplateConfigsT &&value)
const Aws::Utils::DateTime & GetValidUntil() const
const OnDemandOptions & GetOnDemandOptions() const
FleetActivityStatus GetActivityStatus() const
bool TypeHasBeenSet() const
FleetData & WithClientToken(ClientTokenT &&value)
const Aws::Vector< Tag > & GetTags() const
bool LaunchTemplateConfigsHasBeenSet() const
void SetLaunchTemplateConfigs(LaunchTemplateConfigsT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
FleetData & WithFulfilledOnDemandCapacity(double value)
void SetTargetCapacitySpecification(TargetCapacitySpecificationT &&value)
void SetType(FleetType value)
double GetFulfilledCapacity() const
FleetData & WithFleetState(FleetStateCode value)
void SetTags(TagsT &&value)
bool CreateTimeHasBeenSet() const
FleetExcessCapacityTerminationPolicy GetExcessCapacityTerminationPolicy() const
FleetData & WithCreateTime(CreateTimeT &&value)
void SetErrors(ErrorsT &&value)
void SetCreateTime(CreateTimeT &&value)
bool ValidFromHasBeenSet() const
bool FleetIdHasBeenSet() const
AWS_EC2_API FleetData()=default
const Aws::Vector< DescribeFleetsInstances > & GetInstances() const
void SetInstances(InstancesT &&value)
FleetData & WithType(FleetType value)
FleetData & WithLaunchTemplateConfigs(LaunchTemplateConfigsT &&value)
bool GetTerminateInstancesWithExpiration() const
void SetContext(ContextT &&value)
void SetExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy value)
void SetActivityStatus(FleetActivityStatus value)
FleetData & WithTags(TagsT &&value)
void SetTerminateInstancesWithExpiration(bool value)
void SetValidUntil(ValidUntilT &&value)
bool InstancesHasBeenSet() const
bool FleetStateHasBeenSet() const
FleetData & WithReplaceUnhealthyInstances(bool value)
bool FulfilledOnDemandCapacityHasBeenSet() const
bool ValidUntilHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetFulfilledOnDemandCapacity(double value)
const Aws::String & GetClientToken() const
bool OnDemandOptionsHasBeenSet() const
FleetData & AddTags(TagsT &&value)
FleetData & WithContext(ContextT &&value)
const SpotOptions & GetSpotOptions() const
FleetData & WithTargetCapacitySpecification(TargetCapacitySpecificationT &&value)
bool ExcessCapacityTerminationPolicyHasBeenSet() const
bool ContextHasBeenSet() const
FleetData & WithSpotOptions(SpotOptionsT &&value)
bool ClientTokenHasBeenSet() const
bool TagsHasBeenSet() const
FleetData & WithOnDemandOptions(OnDemandOptionsT &&value)
bool FulfilledCapacityHasBeenSet() const
FleetData & WithActivityStatus(FleetActivityStatus value)
const Aws::Vector< FleetLaunchTemplateConfig > & GetLaunchTemplateConfigs() const
FleetData & WithFulfilledCapacity(double value)
void SetFleetState(FleetStateCode value)
FleetExcessCapacityTerminationPolicy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream