StructuredPojo
, ToCopyableBuilder<PlacementConstraint.Builder,PlacementConstraint>
@Generated("software.amazon.awssdk:codegen") public class PlacementConstraint extends Object implements StructuredPojo, ToCopyableBuilder<PlacementConstraint.Builder,PlacementConstraint>
An object representing a constraint on task placement. For more information, see Task Placement Constraints in the Amazon EC2 Container Service Developer Guide.
Modifier and Type | Class | Description |
---|---|---|
static interface |
PlacementConstraint.Builder |
Modifier and Type | Method | Description |
---|---|---|
static PlacementConstraint.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
String |
expression() |
A cluster query language expression to apply to the constraint.
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends PlacementConstraint.Builder> |
serializableBuilderClass() |
|
PlacementConstraint.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
String |
type() |
The type of constraint.
|
public String type()
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 selection to a group of valid
candidates. Note that distinctInstance
is not supported in task definitions.
distinctInstance
to ensure that each task in a particular group
is running on a different container instance. Use memberOf
to restrict selection to a group
of valid candidates. Note that distinctInstance
is not supported in task definitions.PlacementConstraintType
public String expression()
A cluster query language expression to apply to the constraint. Note you cannot specify an expression if the
constraint type is distinctInstance
. For more information, see Cluster Query
Language in the Amazon EC2 Container Service Developer Guide.
distinctInstance
. For more information, see Cluster
Query Language in the Amazon EC2 Container Service Developer Guide.public PlacementConstraint.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PlacementConstraint.Builder,PlacementConstraint>
public static PlacementConstraint.Builder builder()
public static Class<? extends PlacementConstraint.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.