AWS SDK for C++  1.9.108
AWS SDK for C++
Public Member Functions | List of all members
Aws::EC2::Model::FleetSpotCapacityRebalanceRequest Class Reference

#include <FleetSpotCapacityRebalanceRequest.h>

Public Member Functions

 FleetSpotCapacityRebalanceRequest ()
 
 FleetSpotCapacityRebalanceRequest (const Aws::Utils::Xml::XmlNode &xmlNode)
 
FleetSpotCapacityRebalanceRequestoperator= (const Aws::Utils::Xml::XmlNode &xmlNode)
 
void OutputToStream (Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
 
void OutputToStream (Aws::OStream &oStream, const char *location) const
 
const FleetReplacementStrategyGetReplacementStrategy () const
 
bool ReplacementStrategyHasBeenSet () const
 
void SetReplacementStrategy (const FleetReplacementStrategy &value)
 
void SetReplacementStrategy (FleetReplacementStrategy &&value)
 
FleetSpotCapacityRebalanceRequestWithReplacementStrategy (const FleetReplacementStrategy &value)
 
FleetSpotCapacityRebalanceRequestWithReplacementStrategy (FleetReplacementStrategy &&value)
 

Detailed Description

The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide.

See Also:


AWS API Reference

Definition at line 36 of file FleetSpotCapacityRebalanceRequest.h.

Constructor & Destructor Documentation

◆ FleetSpotCapacityRebalanceRequest() [1/2]

Aws::EC2::Model::FleetSpotCapacityRebalanceRequest::FleetSpotCapacityRebalanceRequest ( )

◆ FleetSpotCapacityRebalanceRequest() [2/2]

Aws::EC2::Model::FleetSpotCapacityRebalanceRequest::FleetSpotCapacityRebalanceRequest ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ GetReplacementStrategy()

const FleetReplacementStrategy& Aws::EC2::Model::FleetSpotCapacityRebalanceRequest::GetReplacementStrategy ( ) const
inline

The replacement strategy to use. Only available for fleets of type maintain.

To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for an existing Spot Instance in the fleet, specify launch. You must specify a value, otherwise you get an error.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 57 of file FleetSpotCapacityRebalanceRequest.h.

◆ operator=()

FleetSpotCapacityRebalanceRequest& Aws::EC2::Model::FleetSpotCapacityRebalanceRequest::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutputToStream() [1/2]

void Aws::EC2::Model::FleetSpotCapacityRebalanceRequest::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ OutputToStream() [2/2]

void Aws::EC2::Model::FleetSpotCapacityRebalanceRequest::OutputToStream ( Aws::OStream ostream,
const char *  location,
unsigned  index,
const char *  locationValue 
) const

◆ ReplacementStrategyHasBeenSet()

bool Aws::EC2::Model::FleetSpotCapacityRebalanceRequest::ReplacementStrategyHasBeenSet ( ) const
inline

The replacement strategy to use. Only available for fleets of type maintain.

To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for an existing Spot Instance in the fleet, specify launch. You must specify a value, otherwise you get an error.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 69 of file FleetSpotCapacityRebalanceRequest.h.

◆ SetReplacementStrategy() [1/2]

void Aws::EC2::Model::FleetSpotCapacityRebalanceRequest::SetReplacementStrategy ( const FleetReplacementStrategy value)
inline

The replacement strategy to use. Only available for fleets of type maintain.

To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for an existing Spot Instance in the fleet, specify launch. You must specify a value, otherwise you get an error.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 81 of file FleetSpotCapacityRebalanceRequest.h.

◆ SetReplacementStrategy() [2/2]

void Aws::EC2::Model::FleetSpotCapacityRebalanceRequest::SetReplacementStrategy ( FleetReplacementStrategy &&  value)
inline

The replacement strategy to use. Only available for fleets of type maintain.

To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for an existing Spot Instance in the fleet, specify launch. You must specify a value, otherwise you get an error.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 93 of file FleetSpotCapacityRebalanceRequest.h.

◆ WithReplacementStrategy() [1/2]

FleetSpotCapacityRebalanceRequest& Aws::EC2::Model::FleetSpotCapacityRebalanceRequest::WithReplacementStrategy ( const FleetReplacementStrategy value)
inline

The replacement strategy to use. Only available for fleets of type maintain.

To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for an existing Spot Instance in the fleet, specify launch. You must specify a value, otherwise you get an error.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 105 of file FleetSpotCapacityRebalanceRequest.h.

◆ WithReplacementStrategy() [2/2]

FleetSpotCapacityRebalanceRequest& Aws::EC2::Model::FleetSpotCapacityRebalanceRequest::WithReplacementStrategy ( FleetReplacementStrategy &&  value)
inline

The replacement strategy to use. Only available for fleets of type maintain.

To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for an existing Spot Instance in the fleet, specify launch. You must specify a value, otherwise you get an error.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 117 of file FleetSpotCapacityRebalanceRequest.h.


The documentation for this class was generated from the following file: