Interface InstanceGroupModifyConfig.Builder

  • Method Details

    • instanceGroupId

      InstanceGroupModifyConfig.Builder instanceGroupId(String instanceGroupId)

      Unique ID of the instance group to modify.

      Parameters:
      instanceGroupId - Unique ID of the instance group to modify.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceCount

      InstanceGroupModifyConfig.Builder instanceCount(Integer instanceCount)

      Target size for the instance group.

      Parameters:
      instanceCount - Target size for the instance group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ec2InstanceIdsToTerminate

      InstanceGroupModifyConfig.Builder ec2InstanceIdsToTerminate(Collection<String> ec2InstanceIdsToTerminate)

      The Amazon EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.

      Parameters:
      ec2InstanceIdsToTerminate - The Amazon EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ec2InstanceIdsToTerminate

      InstanceGroupModifyConfig.Builder ec2InstanceIdsToTerminate(String... ec2InstanceIdsToTerminate)

      The Amazon EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.

      Parameters:
      ec2InstanceIdsToTerminate - The Amazon EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • shrinkPolicy

      InstanceGroupModifyConfig.Builder shrinkPolicy(ShrinkPolicy shrinkPolicy)

      Policy for customizing shrink operations.

      Parameters:
      shrinkPolicy - Policy for customizing shrink operations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • shrinkPolicy

      default InstanceGroupModifyConfig.Builder shrinkPolicy(Consumer<ShrinkPolicy.Builder> shrinkPolicy)

      Policy for customizing shrink operations.

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

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

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

      InstanceGroupModifyConfig.Builder reconfigurationType(String reconfigurationType)

      Type of reconfiguration requested. Valid values are MERGE and OVERWRITE.

      Parameters:
      reconfigurationType - Type of reconfiguration requested. Valid values are MERGE and OVERWRITE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reconfigurationType

      InstanceGroupModifyConfig.Builder reconfigurationType(ReconfigurationType reconfigurationType)

      Type of reconfiguration requested. Valid values are MERGE and OVERWRITE.

      Parameters:
      reconfigurationType - Type of reconfiguration requested. Valid values are MERGE and OVERWRITE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • configurations

      A list of new or modified configurations to apply for an instance group.

      Parameters:
      configurations - A list of new or modified configurations to apply for an instance group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configurations

      InstanceGroupModifyConfig.Builder configurations(Configuration... configurations)

      A list of new or modified configurations to apply for an instance group.

      Parameters:
      configurations - A list of new or modified configurations to apply for an instance group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configurations

      A list of new or modified configurations to apply for an instance group.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to configurations(List<Configuration>).

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