AWS SDK for C++  1.8.95
AWS SDK for C++
Public Member Functions | List of all members
Aws::ECS::Model::PlacementStrategy Class Reference

#include <PlacementStrategy.h>

Public Member Functions

 PlacementStrategy ()
 
 PlacementStrategy (Aws::Utils::Json::JsonView jsonValue)
 
PlacementStrategyoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const PlacementStrategyTypeGetType () const
 
bool TypeHasBeenSet () const
 
void SetType (const PlacementStrategyType &value)
 
void SetType (PlacementStrategyType &&value)
 
PlacementStrategyWithType (const PlacementStrategyType &value)
 
PlacementStrategyWithType (PlacementStrategyType &&value)
 
const Aws::StringGetField () const
 
bool FieldHasBeenSet () const
 
void SetField (const Aws::String &value)
 
void SetField (Aws::String &&value)
 
void SetField (const char *value)
 
PlacementStrategyWithField (const Aws::String &value)
 
PlacementStrategyWithField (Aws::String &&value)
 
PlacementStrategyWithField (const char *value)
 

Detailed Description

The task placement strategy for a task or service. For more information, see Task Placement Strategies in the Amazon Elastic Container Service Developer Guide.

See Also:

AWS API Reference

Definition at line 36 of file PlacementStrategy.h.

Constructor & Destructor Documentation

◆ PlacementStrategy() [1/2]

Aws::ECS::Model::PlacementStrategy::PlacementStrategy ( )

◆ PlacementStrategy() [2/2]

Aws::ECS::Model::PlacementStrategy::PlacementStrategy ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ FieldHasBeenSet()

bool Aws::ECS::Model::PlacementStrategy::FieldHasBeenSet ( ) const
inline

The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used.

Definition at line 138 of file PlacementStrategy.h.

◆ GetField()

const Aws::String& Aws::ECS::Model::PlacementStrategy::GetField ( ) const
inline

The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used.

Definition at line 127 of file PlacementStrategy.h.

◆ GetType()

const PlacementStrategyType& Aws::ECS::Model::PlacementStrategy::GetType ( ) const
inline

The type of placement strategy. The random placement strategy randomly places tasks on available candidates. The spread placement strategy spreads placement across available candidates evenly based on the field parameter. The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified with the field parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory (but still enough to run the task).

Definition at line 55 of file PlacementStrategy.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::ECS::Model::PlacementStrategy::Jsonize ( ) const

◆ operator=()

PlacementStrategy& Aws::ECS::Model::PlacementStrategy::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetField() [1/3]

void Aws::ECS::Model::PlacementStrategy::SetField ( const Aws::String value)
inline

The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used.

Definition at line 149 of file PlacementStrategy.h.

◆ SetField() [2/3]

void Aws::ECS::Model::PlacementStrategy::SetField ( Aws::String &&  value)
inline

The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used.

Definition at line 160 of file PlacementStrategy.h.

◆ SetField() [3/3]

void Aws::ECS::Model::PlacementStrategy::SetField ( const char *  value)
inline

The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used.

Definition at line 171 of file PlacementStrategy.h.

◆ SetType() [1/2]

void Aws::ECS::Model::PlacementStrategy::SetType ( const PlacementStrategyType value)
inline

The type of placement strategy. The random placement strategy randomly places tasks on available candidates. The spread placement strategy spreads placement across available candidates evenly based on the field parameter. The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified with the field parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory (but still enough to run the task).

Definition at line 79 of file PlacementStrategy.h.

◆ SetType() [2/2]

void Aws::ECS::Model::PlacementStrategy::SetType ( PlacementStrategyType &&  value)
inline

The type of placement strategy. The random placement strategy randomly places tasks on available candidates. The spread placement strategy spreads placement across available candidates evenly based on the field parameter. The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified with the field parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory (but still enough to run the task).

Definition at line 91 of file PlacementStrategy.h.

◆ TypeHasBeenSet()

bool Aws::ECS::Model::PlacementStrategy::TypeHasBeenSet ( ) const
inline

The type of placement strategy. The random placement strategy randomly places tasks on available candidates. The spread placement strategy spreads placement across available candidates evenly based on the field parameter. The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified with the field parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory (but still enough to run the task).

Definition at line 67 of file PlacementStrategy.h.

◆ WithField() [1/3]

PlacementStrategy& Aws::ECS::Model::PlacementStrategy::WithField ( const Aws::String value)
inline

The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used.

Definition at line 182 of file PlacementStrategy.h.

◆ WithField() [2/3]

PlacementStrategy& Aws::ECS::Model::PlacementStrategy::WithField ( Aws::String &&  value)
inline

The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used.

Definition at line 193 of file PlacementStrategy.h.

◆ WithField() [3/3]

PlacementStrategy& Aws::ECS::Model::PlacementStrategy::WithField ( const char *  value)
inline

The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used.

Definition at line 204 of file PlacementStrategy.h.

◆ WithType() [1/2]

PlacementStrategy& Aws::ECS::Model::PlacementStrategy::WithType ( const PlacementStrategyType value)
inline

The type of placement strategy. The random placement strategy randomly places tasks on available candidates. The spread placement strategy spreads placement across available candidates evenly based on the field parameter. The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified with the field parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory (but still enough to run the task).

Definition at line 103 of file PlacementStrategy.h.

◆ WithType() [2/2]

PlacementStrategy& Aws::ECS::Model::PlacementStrategy::WithType ( PlacementStrategyType &&  value)
inline

The type of placement strategy. The random placement strategy randomly places tasks on available candidates. The spread placement strategy spreads placement across available candidates evenly based on the field parameter. The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified with the field parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory (but still enough to run the task).

Definition at line 115 of file PlacementStrategy.h.


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