@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. For more information, see Task placement constraints in the Amazon Elastic Container Service Developer Guide.
Task placement constraints are not supported for tasks run on Fargate.
Modifier and Type | Class and Description |
---|---|
static interface |
TaskDefinitionPlacementConstraint.Builder |
Modifier and Type | Method and Description |
---|---|
static TaskDefinitionPlacementConstraint.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(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() |
String |
toString()
Returns a string representation of this object.
|
TaskDefinitionPlacementConstraintType |
type()
The type of constraint.
|
String |
typeAsString()
The type of constraint.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final TaskDefinitionPlacementConstraintType type()
The type of constraint. 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()
.
MemberOf
constraint restricts selection to be from a group of
valid candidates.TaskDefinitionPlacementConstraintType
public final String typeAsString()
The type of constraint. 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()
.
MemberOf
constraint restricts selection to be from a group of
valid candidates.TaskDefinitionPlacementConstraintType
public final 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()
toBuilder
in interface ToCopyableBuilder<TaskDefinitionPlacementConstraint.Builder,TaskDefinitionPlacementConstraint>
public static TaskDefinitionPlacementConstraint.Builder builder()
public static Class<? extends TaskDefinitionPlacementConstraint.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.