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

#include <PlacementConstraint.h>

Public Member Functions

 PlacementConstraint ()
 
 PlacementConstraint (Aws::Utils::Json::JsonView jsonValue)
 
PlacementConstraintoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const PlacementConstraintTypeGetType () const
 
bool TypeHasBeenSet () const
 
void SetType (const PlacementConstraintType &value)
 
void SetType (PlacementConstraintType &&value)
 
PlacementConstraintWithType (const PlacementConstraintType &value)
 
PlacementConstraintWithType (PlacementConstraintType &&value)
 
const Aws::StringGetExpression () const
 
bool ExpressionHasBeenSet () const
 
void SetExpression (const Aws::String &value)
 
void SetExpression (Aws::String &&value)
 
void SetExpression (const char *value)
 
PlacementConstraintWithExpression (const Aws::String &value)
 
PlacementConstraintWithExpression (Aws::String &&value)
 
PlacementConstraintWithExpression (const char *value)
 

Detailed Description

An object representing a constraint on task placement. For more information, see Task Placement Constraints in the Amazon Elastic Container Service Developer Guide.

If you are using the Fargate launch type, task placement constraints are not supported.

See Also:

AWS API Reference

Definition at line 37 of file PlacementConstraint.h.

Constructor & Destructor Documentation

◆ PlacementConstraint() [1/2]

Aws::ECS::Model::PlacementConstraint::PlacementConstraint ( )

◆ PlacementConstraint() [2/2]

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

Member Function Documentation

◆ ExpressionHasBeenSet()

bool Aws::ECS::Model::PlacementConstraint::ExpressionHasBeenSet ( ) const
inline

A cluster query language expression to apply to the constraint. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.

Definition at line 115 of file PlacementConstraint.h.

◆ GetExpression()

const Aws::String& Aws::ECS::Model::PlacementConstraint::GetExpression ( ) const
inline

A cluster query language expression to apply to the constraint. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.

Definition at line 104 of file PlacementConstraint.h.

◆ GetType()

const PlacementConstraintType& Aws::ECS::Model::PlacementConstraint::GetType ( ) const
inline

The type of constraint. Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.

Definition at line 52 of file PlacementConstraint.h.

◆ Jsonize()

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

◆ operator=()

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

◆ SetExpression() [1/3]

void Aws::ECS::Model::PlacementConstraint::SetExpression ( Aws::String &&  value)
inline

A cluster query language expression to apply to the constraint. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.

Definition at line 137 of file PlacementConstraint.h.

◆ SetExpression() [2/3]

void Aws::ECS::Model::PlacementConstraint::SetExpression ( const Aws::String value)
inline

A cluster query language expression to apply to the constraint. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.

Definition at line 126 of file PlacementConstraint.h.

◆ SetExpression() [3/3]

void Aws::ECS::Model::PlacementConstraint::SetExpression ( const char *  value)
inline

A cluster query language expression to apply to the constraint. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.

Definition at line 148 of file PlacementConstraint.h.

◆ SetType() [1/2]

void Aws::ECS::Model::PlacementConstraint::SetType ( const PlacementConstraintType value)
inline

The type of constraint. Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.

Definition at line 68 of file PlacementConstraint.h.

◆ SetType() [2/2]

void Aws::ECS::Model::PlacementConstraint::SetType ( PlacementConstraintType &&  value)
inline

The type of constraint. Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.

Definition at line 76 of file PlacementConstraint.h.

◆ TypeHasBeenSet()

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

The type of constraint. Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.

Definition at line 60 of file PlacementConstraint.h.

◆ WithExpression() [1/3]

PlacementConstraint& Aws::ECS::Model::PlacementConstraint::WithExpression ( Aws::String &&  value)
inline

A cluster query language expression to apply to the constraint. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.

Definition at line 170 of file PlacementConstraint.h.

◆ WithExpression() [2/3]

PlacementConstraint& Aws::ECS::Model::PlacementConstraint::WithExpression ( const Aws::String value)
inline

A cluster query language expression to apply to the constraint. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.

Definition at line 159 of file PlacementConstraint.h.

◆ WithExpression() [3/3]

PlacementConstraint& Aws::ECS::Model::PlacementConstraint::WithExpression ( const char *  value)
inline

A cluster query language expression to apply to the constraint. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.

Definition at line 181 of file PlacementConstraint.h.

◆ WithType() [1/2]

PlacementConstraint& Aws::ECS::Model::PlacementConstraint::WithType ( const PlacementConstraintType value)
inline

The type of constraint. Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.

Definition at line 84 of file PlacementConstraint.h.

◆ WithType() [2/2]

PlacementConstraint& Aws::ECS::Model::PlacementConstraint::WithType ( PlacementConstraintType &&  value)
inline

The type of constraint. Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.

Definition at line 92 of file PlacementConstraint.h.


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