@Generated(value="software.amazon.awssdk:codegen") public final class AwsEcsServicePlacementConstraintsDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEcsServicePlacementConstraintsDetails.Builder,AwsEcsServicePlacementConstraintsDetails>
A placement constraint for the tasks in the service.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEcsServicePlacementConstraintsDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AwsEcsServicePlacementConstraintsDetails.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 AwsEcsServicePlacementConstraintsDetails.Builder> |
serializableBuilderClass() |
AwsEcsServicePlacementConstraintsDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
type()
The type of constraint.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String expression()
A cluster query language expression to apply to the constraint. You cannot specify an expression if the
constraint type is distinctInstance.
distinctInstance.public final String type()
The type of constraint. Use distinctInstance to run each task in a particular group on a different
container instance. Use memberOf to restrict the selection to a group of valid candidates.
Valid values: distinctInstance | memberOf
distinctInstance to run each task in a particular group on a
different container instance. Use memberOf to restrict the selection to a group of valid
candidates.
Valid values: distinctInstance | memberOf
public AwsEcsServicePlacementConstraintsDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsEcsServicePlacementConstraintsDetails.Builder,AwsEcsServicePlacementConstraintsDetails>public static AwsEcsServicePlacementConstraintsDetails.Builder builder()
public static Class<? extends AwsEcsServicePlacementConstraintsDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.