@Generated(value="software.amazon.awssdk:codegen") public final class TaskDefinitionPlacementConstraint extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TaskDefinitionPlacementConstraint.Builder,TaskDefinitionPlacementConstraint>
An object representing a constraint on task placement in the task definition.
If you are using the Fargate launch type, task placement constraints are not supported.
For more information, see Task Placement Constraints in the Amazon Elastic 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()  | 
List<SdkField<?>> | 
sdkFields()  | 
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 | 
typeAsString()
 The type of constraint. 
 | 
copypublic 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 typeAsString().
 
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 typeAsString()
 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 typeAsString().
 
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 Elastic 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()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.