Interface AutoScalingGroupConfiguration.Builder

    • Method Detail

      • desiredCapacity

        AutoScalingGroupConfiguration.Builder desiredCapacity​(Integer desiredCapacity)

        The desired capacity, or number of instances, for the EC2 Auto Scaling group.

        Parameters:
        desiredCapacity - The desired capacity, or number of instances, for the EC2 Auto Scaling group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • minSize

        AutoScalingGroupConfiguration.Builder minSize​(Integer minSize)

        The minimum size, or minimum number of instances, for the EC2 Auto Scaling group.

        Parameters:
        minSize - The minimum size, or minimum number of instances, for the EC2 Auto Scaling group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxSize

        AutoScalingGroupConfiguration.Builder maxSize​(Integer maxSize)

        The maximum size, or maximum number of instances, for the EC2 Auto Scaling group.

        Parameters:
        maxSize - The maximum size, or maximum number of instances, for the EC2 Auto Scaling group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceType

        AutoScalingGroupConfiguration.Builder instanceType​(String instanceType)

        The instance type for the EC2 Auto Scaling group.

        Parameters:
        instanceType - The instance type for the EC2 Auto Scaling group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • allocationStrategy

        AutoScalingGroupConfiguration.Builder allocationStrategy​(String allocationStrategy)

        Describes the allocation strategy that the EC2 Auto Scaling group uses. This field is only available for EC2 Auto Scaling groups with mixed instance types.

        Parameters:
        allocationStrategy - Describes the allocation strategy that the EC2 Auto Scaling group uses. This field is only available for EC2 Auto Scaling groups with mixed instance types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AllocationStrategy, AllocationStrategy
      • allocationStrategy

        AutoScalingGroupConfiguration.Builder allocationStrategy​(AllocationStrategy allocationStrategy)

        Describes the allocation strategy that the EC2 Auto Scaling group uses. This field is only available for EC2 Auto Scaling groups with mixed instance types.

        Parameters:
        allocationStrategy - Describes the allocation strategy that the EC2 Auto Scaling group uses. This field is only available for EC2 Auto Scaling groups with mixed instance types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AllocationStrategy, AllocationStrategy
      • estimatedInstanceHourReductionPercentage

        AutoScalingGroupConfiguration.Builder estimatedInstanceHourReductionPercentage​(Double estimatedInstanceHourReductionPercentage)

        Describes the projected percentage reduction in instance hours after adopting the recommended configuration. This field is only available for EC2 Auto Scaling groups with scaling policies.

        Parameters:
        estimatedInstanceHourReductionPercentage - Describes the projected percentage reduction in instance hours after adopting the recommended configuration. This field is only available for EC2 Auto Scaling groups with scaling policies.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • type

        AutoScalingGroupConfiguration.Builder type​(String type)

        Describes whether the EC2 Auto Scaling group has a single instance type or a mixed instance type configuration.

        Parameters:
        type - Describes whether the EC2 Auto Scaling group has a single instance type or a mixed instance type configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AsgType, AsgType
      • type

        AutoScalingGroupConfiguration.Builder type​(AsgType type)

        Describes whether the EC2 Auto Scaling group has a single instance type or a mixed instance type configuration.

        Parameters:
        type - Describes whether the EC2 Auto Scaling group has a single instance type or a mixed instance type configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AsgType, AsgType
      • mixedInstanceTypes

        AutoScalingGroupConfiguration.Builder mixedInstanceTypes​(Collection<String> mixedInstanceTypes)

        List the instance types within an EC2 Auto Scaling group that has mixed instance types.

        Parameters:
        mixedInstanceTypes - List the instance types within an EC2 Auto Scaling group that has mixed instance types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • mixedInstanceTypes

        AutoScalingGroupConfiguration.Builder mixedInstanceTypes​(String... mixedInstanceTypes)

        List the instance types within an EC2 Auto Scaling group that has mixed instance types.

        Parameters:
        mixedInstanceTypes - List the instance types within an EC2 Auto Scaling group that has mixed instance types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.