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>
92 inline void SetFleetId(
const char* value) { m_fleetIdHasBeenSet =
true; m_fleetId.assign(value); }
121 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
148 inline void SetFulfilledCapacity(
double value) { m_fulfilledCapacityHasBeenSet =
true; m_fulfilledCapacity = value; }
219 inline void SetType(
FleetType&& value) { m_typeHasBeenSet =
true; m_type = std::move(value); }
301 inline FleetData&
AddTags(
const Tag& value) { m_tagsHasBeenSet =
true; m_tags.push_back(value);
return *
this; }
302 inline FleetData&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
343 inline void SetContext(
const char* value) { m_contextHasBeenSet =
true; m_context.assign(value); }
351 bool m_activityStatusHasBeenSet =
false;
354 bool m_createTimeHasBeenSet =
false;
357 bool m_fleetIdHasBeenSet =
false;
360 bool m_fleetStateHasBeenSet =
false;
363 bool m_clientTokenHasBeenSet =
false;
366 bool m_excessCapacityTerminationPolicyHasBeenSet =
false;
368 double m_fulfilledCapacity;
369 bool m_fulfilledCapacityHasBeenSet =
false;
371 double m_fulfilledOnDemandCapacity;
372 bool m_fulfilledOnDemandCapacityHasBeenSet =
false;
375 bool m_launchTemplateConfigsHasBeenSet =
false;
378 bool m_targetCapacitySpecificationHasBeenSet =
false;
380 bool m_terminateInstancesWithExpiration;
381 bool m_terminateInstancesWithExpirationHasBeenSet =
false;
384 bool m_typeHasBeenSet =
false;
387 bool m_validFromHasBeenSet =
false;
390 bool m_validUntilHasBeenSet =
false;
392 bool m_replaceUnhealthyInstances;
393 bool m_replaceUnhealthyInstancesHasBeenSet =
false;
396 bool m_spotOptionsHasBeenSet =
false;
399 bool m_onDemandOptionsHasBeenSet =
false;
402 bool m_tagsHasBeenSet =
false;
405 bool m_errorsHasBeenSet =
false;
408 bool m_instancesHasBeenSet =
false;
411 bool m_contextHasBeenSet =
false;
FleetData & WithActivityStatus(FleetActivityStatus &&value)
bool ErrorsHasBeenSet() const
FleetData & WithErrors(const Aws::Vector< DescribeFleetError > &value)
FleetData & WithExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy &&value)
bool TerminateInstancesWithExpirationHasBeenSet() const
const FleetType & GetType() const
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 & WithContext(Aws::String &&value)
void SetValidUntil(const Aws::Utils::DateTime &value)
FleetData & WithType(const FleetType &value)
FleetData & WithTerminateInstancesWithExpiration(bool value)
const FleetActivityStatus & GetActivityStatus() const
FleetData & WithCreateTime(Aws::Utils::DateTime &&value)
const TargetCapacitySpecification & GetTargetCapacitySpecification() const
FleetData & WithFleetId(const Aws::String &value)
const Aws::Vector< DescribeFleetError > & GetErrors() const
FleetData & WithValidFrom(const Aws::Utils::DateTime &value)
void SetFleetId(Aws::String &&value)
void SetActivityStatus(FleetActivityStatus &&value)
void SetType(const FleetType &value)
bool SpotOptionsHasBeenSet() const
bool ActivityStatusHasBeenSet() const
bool GetReplaceUnhealthyInstances() const
FleetData & WithSpotOptions(SpotOptions &&value)
bool ReplaceUnhealthyInstancesHasBeenSet() const
void SetReplaceUnhealthyInstances(bool value)
const FleetStateCode & GetFleetState() const
bool TargetCapacitySpecificationHasBeenSet() const
double GetFulfilledOnDemandCapacity() const
void SetActivityStatus(const FleetActivityStatus &value)
const Aws::String & GetContext() const
void SetValidUntil(Aws::Utils::DateTime &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTags(const Aws::Vector< Tag > &value)
FleetData & WithFleetState(FleetStateCode &&value)
FleetData & WithValidUntil(Aws::Utils::DateTime &&value)
const Aws::String & GetFleetId() const
FleetData & WithValidUntil(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetValidFrom() const
FleetData & AddTags(Tag &&value)
const Aws::Utils::DateTime & GetValidUntil() const
void SetLaunchTemplateConfigs(const Aws::Vector< FleetLaunchTemplateConfig > &value)
const OnDemandOptions & GetOnDemandOptions() const
void SetInstances(Aws::Vector< DescribeFleetsInstances > &&value)
void SetOnDemandOptions(const OnDemandOptions &value)
bool TypeHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
void SetExcessCapacityTerminationPolicy(const FleetExcessCapacityTerminationPolicy &value)
FleetData & WithActivityStatus(const FleetActivityStatus &value)
void SetExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy &&value)
bool LaunchTemplateConfigsHasBeenSet() const
const Aws::Utils::DateTime & GetCreateTime() const
FleetData & AddInstances(DescribeFleetsInstances &&value)
FleetData & AddLaunchTemplateConfigs(const FleetLaunchTemplateConfig &value)
FleetData & WithFulfilledOnDemandCapacity(double value)
double GetFulfilledCapacity() const
FleetData & WithLaunchTemplateConfigs(Aws::Vector< FleetLaunchTemplateConfig > &&value)
void SetTargetCapacitySpecification(const TargetCapacitySpecification &value)
void SetCreateTime(const Aws::Utils::DateTime &value)
bool CreateTimeHasBeenSet() const
bool ValidFromHasBeenSet() const
FleetData & AddErrors(DescribeFleetError &&value)
FleetData & WithInstances(const Aws::Vector< DescribeFleetsInstances > &value)
bool FleetIdHasBeenSet() const
void SetOnDemandOptions(OnDemandOptions &&value)
void SetClientToken(const char *value)
FleetData & WithTargetCapacitySpecification(TargetCapacitySpecification &&value)
const Aws::Vector< DescribeFleetsInstances > & GetInstances() const
FleetData & AddTags(const Tag &value)
void SetContext(const Aws::String &value)
void SetContext(Aws::String &&value)
void SetErrors(const Aws::Vector< DescribeFleetError > &value)
bool GetTerminateInstancesWithExpiration() const
void SetValidFrom(Aws::Utils::DateTime &&value)
FleetData & WithClientToken(Aws::String &&value)
void SetTerminateInstancesWithExpiration(bool value)
void SetErrors(Aws::Vector< DescribeFleetError > &&value)
void SetClientToken(Aws::String &&value)
FleetData & WithErrors(Aws::Vector< DescribeFleetError > &&value)
FleetData & WithType(FleetType &&value)
bool InstancesHasBeenSet() const
const FleetExcessCapacityTerminationPolicy & GetExcessCapacityTerminationPolicy() const
bool FleetStateHasBeenSet() const
FleetData & WithClientToken(const Aws::String &value)
FleetData & WithFleetId(const char *value)
FleetData & WithReplaceUnhealthyInstances(bool value)
void SetFleetId(const char *value)
bool FulfilledOnDemandCapacityHasBeenSet() const
FleetData & AddErrors(const DescribeFleetError &value)
void SetFleetId(const Aws::String &value)
void SetValidFrom(const Aws::Utils::DateTime &value)
void SetFleetState(FleetStateCode &&value)
bool ValidUntilHasBeenSet() const
FleetData & WithValidFrom(Aws::Utils::DateTime &&value)
FleetData & WithSpotOptions(const SpotOptions &value)
FleetData & WithCreateTime(const Aws::Utils::DateTime &value)
void SetFleetState(const FleetStateCode &value)
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
const SpotOptions & GetSpotOptions() const
void SetType(FleetType &&value)
bool ExcessCapacityTerminationPolicyHasBeenSet() const
bool ContextHasBeenSet() const
FleetData & WithFleetState(const FleetStateCode &value)
FleetData & WithTags(Aws::Vector< Tag > &&value)
FleetData & WithExcessCapacityTerminationPolicy(const FleetExcessCapacityTerminationPolicy &value)
bool ClientTokenHasBeenSet() const
FleetData & WithTargetCapacitySpecification(const TargetCapacitySpecification &value)
FleetData & WithTags(const Aws::Vector< Tag > &value)
FleetData & WithOnDemandOptions(OnDemandOptions &&value)
void SetCreateTime(Aws::Utils::DateTime &&value)
FleetData & AddLaunchTemplateConfigs(FleetLaunchTemplateConfig &&value)
bool TagsHasBeenSet() const
FleetData & WithInstances(Aws::Vector< DescribeFleetsInstances > &&value)
FleetData & WithLaunchTemplateConfigs(const Aws::Vector< FleetLaunchTemplateConfig > &value)
bool FulfilledCapacityHasBeenSet() const
FleetData & WithOnDemandOptions(const OnDemandOptions &value)
FleetData & WithFleetId(Aws::String &&value)
void SetSpotOptions(SpotOptions &&value)
void SetInstances(const Aws::Vector< DescribeFleetsInstances > &value)
const Aws::Vector< FleetLaunchTemplateConfig > & GetLaunchTemplateConfigs() const
FleetData & WithContext(const Aws::String &value)
void SetLaunchTemplateConfigs(Aws::Vector< FleetLaunchTemplateConfig > &&value)
FleetData & WithContext(const char *value)
void SetClientToken(const Aws::String &value)
FleetData & WithFulfilledCapacity(double value)
void SetSpotOptions(const SpotOptions &value)
void SetTargetCapacitySpecification(TargetCapacitySpecification &&value)
FleetData & WithClientToken(const char *value)
FleetData & AddInstances(const DescribeFleetsInstances &value)
void SetContext(const char *value)
void SetTags(Aws::Vector< Tag > &&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