Class ScalingPolicy.Jsii$Proxy

  • All Implemented Interfaces:
    ScalingPolicy, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    ScalingPolicy

    @Stability(Stable)
    @Internal
    public static final class ScalingPolicy.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements ScalingPolicy
    An implementation for ScalingPolicy
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Jsii$Proxy​(ScalingPolicy.Builder builder)
      Constructor that initializes the object based on literal property values passed by the ScalingPolicy.Builder.
      protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getDuration

        public final org.cdk8s.Duration getDuration()
        Description copied from interface: ScalingPolicy
        The amount of time the scaling policy has to continue scaling before the target metric must be revalidated.

        Must be greater than 0 seconds and no longer than 30 minutes.

        Default: - 15 seconds

        Specified by:
        getDuration in interface ScalingPolicy
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object