Class TaskDefinitionPlacementConstraint
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.TaskDefinitionPlacementConstraint
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<TaskDefinitionPlacementConstraint.Builder,TaskDefinitionPlacementConstraint>
@Generated("software.amazon.awssdk:codegen") public final class TaskDefinitionPlacementConstraint extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TaskDefinitionPlacementConstraint.Builder,TaskDefinitionPlacementConstraint>
The 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 aren't supported for tasks run on Fargate.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TaskDefinitionPlacementConstraint.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
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 returnTaskDefinitionPlacementConstraintType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of constraint. The
MemberOf
constraint restricts selection to be from a group of valid candidates. - See Also:
TaskDefinitionPlacementConstraintType
-
typeAsString
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 returnTaskDefinitionPlacementConstraintType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of constraint. The
MemberOf
constraint restricts selection to be from a group of valid candidates. - See Also:
TaskDefinitionPlacementConstraintType
-
expression
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.
- Returns:
- 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.
-
toBuilder
public TaskDefinitionPlacementConstraint.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<TaskDefinitionPlacementConstraint.Builder,TaskDefinitionPlacementConstraint>
-
builder
public static TaskDefinitionPlacementConstraint.Builder builder()
-
serializableBuilderClass
public static Class<? extends TaskDefinitionPlacementConstraint.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-