Interface ManagedScalingPolicy.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ManagedScalingPolicy.Builder,ManagedScalingPolicy>, SdkBuilder<ManagedScalingPolicy.Builder,ManagedScalingPolicy>, SdkPojo
Enclosing class:
ManagedScalingPolicy

public static interface ManagedScalingPolicy.Builder extends SdkPojo, CopyableBuilder<ManagedScalingPolicy.Builder,ManagedScalingPolicy>
  • Method Details

    • computeLimits

      ManagedScalingPolicy.Builder computeLimits(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • computeLimits

      default ManagedScalingPolicy.Builder computeLimits(Consumer<ComputeLimits.Builder> 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.

      This is a convenience method that creates an instance of the ComputeLimits.Builder avoiding the need to create one manually via ComputeLimits.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to computeLimits(ComputeLimits).

      Parameters:
      computeLimits - a consumer that will call methods on ComputeLimits.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: