Class AwsEcsServiceCapacityProviderStrategyDetails
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsEcsServiceCapacityProviderStrategyDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsEcsServiceCapacityProviderStrategyDetails.Builder,AwsEcsServiceCapacityProviderStrategyDetails>
@Generated("software.amazon.awssdk:codegen") public final class AwsEcsServiceCapacityProviderStrategyDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEcsServiceCapacityProviderStrategyDetails.Builder,AwsEcsServiceCapacityProviderStrategyDetails>
Strategy item for the capacity provider strategy that the service uses.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsEcsServiceCapacityProviderStrategyDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerbase()The minimum number of tasks to run on the capacity provider.static AwsEcsServiceCapacityProviderStrategyDetails.Builderbuilder()StringcapacityProvider()The short name of the capacity provider.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AwsEcsServiceCapacityProviderStrategyDetails.Builder>serializableBuilderClass()AwsEcsServiceCapacityProviderStrategyDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.Integerweight()The relative percentage of the total number of tasks that should use the capacity provider.-
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
-
base
public final Integer base()
The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value for
Base.The value must be between 0 and 100000.
- Returns:
- The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value
for
Base.The value must be between 0 and 100000.
-
capacityProvider
public final String capacityProvider()
The short name of the capacity provider.
- Returns:
- The short name of the capacity provider.
-
weight
public final Integer weight()
The relative percentage of the total number of tasks that should use the capacity provider.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
- Returns:
- The relative percentage of the total number of tasks that should use the capacity provider.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
-
toBuilder
public AwsEcsServiceCapacityProviderStrategyDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsEcsServiceCapacityProviderStrategyDetails.Builder,AwsEcsServiceCapacityProviderStrategyDetails>
-
builder
public static AwsEcsServiceCapacityProviderStrategyDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsEcsServiceCapacityProviderStrategyDetails.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
-
-