Class ManagedScalingPolicy

    • Method Detail

      • computeLimits

        public final ComputeLimits computeLimits()

        The Amazon EC2 unit limits for a managed scaling policy. The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.

        Returns:
        The Amazon EC2 unit limits for a managed scaling policy. The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
      • utilizationPerformanceIndex

        public final Integer utilizationPerformanceIndex()

        An integer value that represents an advanced scaling strategy. Setting a higher value optimizes for performance. Setting a lower value optimizes for resource conservation. Setting the value to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100.

        Returns:
        An integer value that represents an advanced scaling strategy. Setting a higher value optimizes for performance. Setting a lower value optimizes for resource conservation. Setting the value to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100.
      • scalingStrategy

        public final ScalingStrategy scalingStrategy()

        Determines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT.

        If the service returns an enum value that is not available in the current SDK version, scalingStrategy will return ScalingStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from scalingStrategyAsString().

        Returns:
        Determines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT.
        See Also:
        ScalingStrategy
      • scalingStrategyAsString

        public final String scalingStrategyAsString()

        Determines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT.

        If the service returns an enum value that is not available in the current SDK version, scalingStrategy will return ScalingStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from scalingStrategyAsString().

        Returns:
        Determines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT.
        See Also:
        ScalingStrategy
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)