Class ManagedApplicationAutoScalingPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.ManagedApplicationAutoScalingPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ManagedApplicationAutoScalingPolicy.Builder,ManagedApplicationAutoScalingPolicy>
@Generated("software.amazon.awssdk:codegen") public final class ManagedApplicationAutoScalingPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ManagedApplicationAutoScalingPolicy.Builder,ManagedApplicationAutoScalingPolicy>
The Application Auto Scaling policy created by Amazon ECS when you create an Express service.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceManagedApplicationAutoScalingPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon Resource Name (ARN) of the Application Auto Scaling policy associated with the Express service.static ManagedApplicationAutoScalingPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmetric()The metric used for auto scaling decisions.StringpolicyType()The type of Application Auto Scaling policy associated with the Express service.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ManagedApplicationAutoScalingPolicy.Builder>serializableBuilderClass()ManagedResourceStatusstatus()The status of Application Auto Scaling policy creation.StringstatusAsString()The status of Application Auto Scaling policy creation.StringstatusReason()Information about why the Application Auto Scaling policy is in the current status.DoubletargetValue()The target value for the auto scaling metric.ManagedApplicationAutoScalingPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The Unix timestamp for when the Application Auto Scaling policy was last 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 Amazon Resource Name (ARN) of the Application Auto Scaling policy associated with the Express service.
- Returns:
- The Amazon Resource Name (ARN) of the Application Auto Scaling policy associated with the Express service.
-
status
public final ManagedResourceStatus status()
The status of Application Auto Scaling policy creation.
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 Application Auto Scaling policy creation.
- See Also:
ManagedResourceStatus
-
statusAsString
public final String statusAsString()
The status of Application Auto Scaling policy creation.
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 Application Auto Scaling policy creation.
- See Also:
ManagedResourceStatus
-
statusReason
public final String statusReason()
Information about why the Application Auto Scaling policy is in the current status.
- Returns:
- Information about why the Application Auto Scaling policy is in the current status.
-
updatedAt
public final Instant updatedAt()
The Unix timestamp for when the Application Auto Scaling policy was last updated.
- Returns:
- The Unix timestamp for when the Application Auto Scaling policy was last updated.
-
policyType
public final String policyType()
The type of Application Auto Scaling policy associated with the Express service. Valid values are
TargetTrackingScaling,StepScaling, andPredictiveScaling.- Returns:
- The type of Application Auto Scaling policy associated with the Express service. Valid values are
TargetTrackingScaling,StepScaling, andPredictiveScaling.
-
targetValue
public final Double targetValue()
The target value for the auto scaling metric.
- Returns:
- The target value for the auto scaling metric.
-
metric
public final String metric()
The metric used for auto scaling decisions. The available metrics are
ECSServiceAverageCPUUtilization,ECSServiceAverageMemoryUtilization, andALBRequestCOuntPerTarget.- Returns:
- The metric used for auto scaling decisions. The available metrics are
ECSServiceAverageCPUUtilization,ECSServiceAverageMemoryUtilization, andALBRequestCOuntPerTarget.
-
toBuilder
public ManagedApplicationAutoScalingPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ManagedApplicationAutoScalingPolicy.Builder,ManagedApplicationAutoScalingPolicy>
-
builder
public static ManagedApplicationAutoScalingPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends ManagedApplicationAutoScalingPolicy.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
-
-