Class ManagedScalableTarget
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.ManagedScalableTarget
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ManagedScalableTarget.Builder,ManagedScalableTarget>
@Generated("software.amazon.awssdk:codegen") public final class ManagedScalableTarget extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ManagedScalableTarget.Builder,ManagedScalableTarget>
Represents a scalable target.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceManagedScalableTarget.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The ARN of the scalable target.static ManagedScalableTarget.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxCapacity()The maximum value to scale to in response to a scale-out activity.IntegerminCapacity()The minimum value to scale to in response to a scale-in activity.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ManagedScalableTarget.Builder>serializableBuilderClass()ManagedResourceStatusstatus()The status of the scalable target.StringstatusAsString()The status of the scalable target.StringstatusReason()Information about why the scalable target is in the current status.ManagedScalableTarget.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The Unix timestamp for when the target was most recently updated.-
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
-
arn
public final String arn()
The ARN of the scalable target.
- Returns:
- The ARN of the scalable target.
-
status
public final ManagedResourceStatus status()
The status of the scalable target.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnManagedResourceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the scalable target.
- See Also:
ManagedResourceStatus
-
statusAsString
public final String statusAsString()
The status of the scalable target.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnManagedResourceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the scalable target.
- See Also:
ManagedResourceStatus
-
statusReason
public final String statusReason()
Information about why the scalable target is in the current status.
- Returns:
- Information about why the scalable target is in the current status.
-
updatedAt
public final Instant updatedAt()
The Unix timestamp for when the target was most recently updated.
- Returns:
- The Unix timestamp for when the target was most recently updated.
-
minCapacity
public final Integer minCapacity()
The minimum value to scale to in response to a scale-in activity.
- Returns:
- The minimum value to scale to in response to a scale-in activity.
-
maxCapacity
public final Integer maxCapacity()
The maximum value to scale to in response to a scale-out activity.
- Returns:
- The maximum value to scale to in response to a scale-out activity.
-
toBuilder
public ManagedScalableTarget.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ManagedScalableTarget.Builder,ManagedScalableTarget>
-
builder
public static ManagedScalableTarget.Builder builder()
-
serializableBuilderClass
public static Class<? extends ManagedScalableTarget.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
-
-