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 interfaceTaskDefinitionPlacementConstraint.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaskDefinitionPlacementConstraint.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringexpression()A cluster query language expression to apply to the constraint.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TaskDefinitionPlacementConstraint.Builder>serializableBuilderClass()TaskDefinitionPlacementConstraint.BuildertoBuilder()StringtoString()Returns a string representation of this object.TaskDefinitionPlacementConstraintTypetype()The type of constraint.StringtypeAsString()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
MemberOfconstraint 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,
typewill returnTaskDefinitionPlacementConstraintType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of constraint. The
MemberOfconstraint restricts selection to be from a group of valid candidates. - See Also:
TaskDefinitionPlacementConstraintType
-
typeAsString
public final String typeAsString()
The type of constraint. The
MemberOfconstraint 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,
typewill returnTaskDefinitionPlacementConstraintType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of constraint. The
MemberOfconstraint 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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-