@Generated(value="software.amazon.awssdk:codegen") public final class PlacementConstraint extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PlacementConstraint.Builder,PlacementConstraint>
An object representing a constraint on task placement. To learn more, see Task Placement Constraints in the Amazon Elastic Container Service Developer Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PlacementConstraint.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PlacementConstraint.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 PlacementConstraint.Builder> |
serializableBuilderClass() |
PlacementConstraint.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PlacementConstraintType |
type()
The type of constraint.
|
String |
typeAsString()
The type of constraint.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final PlacementConstraintType type()
The type of constraint. Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.
If the service returns an enum value that is not available in the current SDK version, type will return
PlacementConstraintType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PlacementConstraintTypepublic final String typeAsString()
The type of constraint. Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.
If the service returns an enum value that is not available in the current SDK version, type will return
PlacementConstraintType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PlacementConstraintTypepublic final String expression()
A cluster query language expression to apply to the constraint. You cannot specify an expression if the
constraint type is distinctInstance. To learn more, see Cluster Query
Language in the Amazon Elastic Container Service Developer Guide.
distinctInstance. To learn more, see Cluster
Query Language in the Amazon Elastic Container Service Developer Guide.public PlacementConstraint.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PlacementConstraint.Builder,PlacementConstraint>public static PlacementConstraint.Builder builder()
public static Class<? extends PlacementConstraint.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.