Class AwsEcsServicePlacementStrategiesDetails
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsEcsServicePlacementStrategiesDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsEcsServicePlacementStrategiesDetails.Builder,AwsEcsServicePlacementStrategiesDetails>
@Generated("software.amazon.awssdk:codegen") public final class AwsEcsServicePlacementStrategiesDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEcsServicePlacementStrategiesDetails.Builder,AwsEcsServicePlacementStrategiesDetails>
A placement strategy that determines how to place the tasks for the service.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsEcsServicePlacementStrategiesDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsEcsServicePlacementStrategiesDetails.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringfield()The field to apply the placement strategy against.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends AwsEcsServicePlacementStrategiesDetails.Builder>serializableBuilderClass()AwsEcsServicePlacementStrategiesDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringtype()The type of placement strategy.-
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
-
field
public final String field()
The field to apply the placement strategy against.
For the
spreadplacement strategy, valid values areinstanceId(orhost, which has the same effect), or any platform or custom attribute that is applied to a container instance, such asattribute:ecs.availability-zone.For the
binpackplacement strategy, valid values arecpuandmemory.For the
randomplacement strategy, this attribute is not used.- Returns:
- The field to apply the placement strategy against.
For the
spreadplacement strategy, valid values areinstanceId(orhost, which has the same effect), or any platform or custom attribute that is applied to a container instance, such asattribute:ecs.availability-zone.For the
binpackplacement strategy, valid values arecpuandmemory.For the
randomplacement strategy, this attribute is not used.
-
type
public final String type()
The type of placement strategy.
The
randomplacement strategy randomly places tasks on available candidates.The
spreadplacement strategy spreads placement across available candidates evenly based on the value ofField.The
binpackstrategy places tasks on available candidates that have the least available amount of the resource that is specified inField.Valid values:
random|spread|binpack- Returns:
- The type of placement strategy.
The
randomplacement strategy randomly places tasks on available candidates.The
spreadplacement strategy spreads placement across available candidates evenly based on the value ofField.The
binpackstrategy places tasks on available candidates that have the least available amount of the resource that is specified inField.Valid values:
random|spread|binpack
-
toBuilder
public AwsEcsServicePlacementStrategiesDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsEcsServicePlacementStrategiesDetails.Builder,AwsEcsServicePlacementStrategiesDetails>
-
builder
public static AwsEcsServicePlacementStrategiesDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsEcsServicePlacementStrategiesDetails.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.
-
-