@Generated(value="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 and Description |
---|---|
static interface |
TaskDefinitionPlacementConstraint.Builder |
Modifier and Type | Method and Description |
---|---|
static TaskDefinitionPlacementConstraint.Builder |
builder() |
boolean |
equals(Object obj) |
String |
expression()
A cluster query language expression to apply to the constraint.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
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() |
TaskDefinitionPlacementConstraintType |
type()
The type of constraint.
|
String |
typeString()
The type of constraint.
|
copy
public TaskDefinitionPlacementConstraintType 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.
If the service returns an enum value that is not available in the current SDK version, type
will return
TaskDefinitionPlacementConstraintType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from typeString()
.
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.TaskDefinitionPlacementConstraintType
public String typeString()
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.
If the service returns an enum value that is not available in the current SDK version, type
will return
TaskDefinitionPlacementConstraintType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from typeString()
.
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.TaskDefinitionPlacementConstraintType
public 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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TaskDefinitionPlacementConstraint.Builder,TaskDefinitionPlacementConstraint>
public static TaskDefinitionPlacementConstraint.Builder builder()
public static Class<? extends TaskDefinitionPlacementConstraint.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.