Interface AvailableCapacity.Builder

    • Method Detail

      • availableInstanceCapacity

        AvailableCapacity.Builder availableInstanceCapacity​(Collection<InstanceCapacity> availableInstanceCapacity)

        The number of instances that can be launched onto the Dedicated Host depending on the host's available capacity. For Dedicated Hosts that support multiple instance types, this parameter represents the number of instances for each instance size that is supported on the host.

        Parameters:
        availableInstanceCapacity - The number of instances that can be launched onto the Dedicated Host depending on the host's available capacity. For Dedicated Hosts that support multiple instance types, this parameter represents the number of instances for each instance size that is supported on the host.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • availableInstanceCapacity

        AvailableCapacity.Builder availableInstanceCapacity​(InstanceCapacity... availableInstanceCapacity)

        The number of instances that can be launched onto the Dedicated Host depending on the host's available capacity. For Dedicated Hosts that support multiple instance types, this parameter represents the number of instances for each instance size that is supported on the host.

        Parameters:
        availableInstanceCapacity - The number of instances that can be launched onto the Dedicated Host depending on the host's available capacity. For Dedicated Hosts that support multiple instance types, this parameter represents the number of instances for each instance size that is supported on the host.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • availableInstanceCapacity

        AvailableCapacity.Builder availableInstanceCapacity​(Consumer<InstanceCapacity.Builder>... availableInstanceCapacity)

        The number of instances that can be launched onto the Dedicated Host depending on the host's available capacity. For Dedicated Hosts that support multiple instance types, this parameter represents the number of instances for each instance size that is supported on the host.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #availableInstanceCapacity(List).

        Parameters:
        availableInstanceCapacity - a consumer that will call methods on InstanceCapacity.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #availableInstanceCapacity(java.util.Collection)
      • availableVCpus

        AvailableCapacity.Builder availableVCpus​(Integer availableVCpus)

        The number of vCPUs available for launching instances onto the Dedicated Host.

        Parameters:
        availableVCpus - The number of vCPUs available for launching instances onto the Dedicated Host.
        Returns:
        Returns a reference to this object so that method calls can be chained together.