StructuredPojo, ToCopyableBuilder<TaskDefinitionPlacementConstraint.Builder,TaskDefinitionPlacementConstraint>@Generated("software.amazon.awssdk:codegen") public class TaskDefinitionPlacementConstraint extends Object implements StructuredPojo, ToCopyableBuilder<TaskDefinitionPlacementConstraint.Builder,TaskDefinitionPlacementConstraint>
An object representing a constraint on task placement in the task definition. For more information, see Task Placement Constraints in the Amazon EC2 Container Service Developer Guide.
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
TaskDefinitionPlacementConstraint.Builder |
| Modifier and Type | Method | Description |
|---|---|---|
static TaskDefinitionPlacementConstraint.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 TaskDefinitionPlacementConstraint.Builder> |
serializableBuilderClass() |
|
TaskDefinitionPlacementConstraint.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. The DistinctInstance constraint ensures that each task in a particular group
is running on a different container instance. The MemberOf constraint restricts selection to be from
a group of valid candidates.
DistinctInstance constraint ensures that each task in a
particular group is running on a different container instance. The MemberOf constraint
restricts selection to be from a group of valid candidates.TaskDefinitionPlacementConstraintTypepublic String expression()
A cluster query language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide.
public TaskDefinitionPlacementConstraint.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<TaskDefinitionPlacementConstraint.Builder,TaskDefinitionPlacementConstraint>public static TaskDefinitionPlacementConstraint.Builder builder()
public static Class<? extends TaskDefinitionPlacementConstraint.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.