Interface ProductionVariantCapacityReservationSummary.Builder

  • Method Details

    • mlReservationArn

      ProductionVariantCapacityReservationSummary.Builder mlReservationArn(String mlReservationArn)

      The Amazon Resource Name (ARN) that uniquely identifies the ML capacity reservation that SageMaker AI applies when it deploys the endpoint.

      Parameters:
      mlReservationArn - The Amazon Resource Name (ARN) that uniquely identifies the ML capacity reservation that SageMaker AI applies when it deploys the endpoint.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityReservationPreference

      ProductionVariantCapacityReservationSummary.Builder capacityReservationPreference(String capacityReservationPreference)

      The option that you chose for the capacity reservation. SageMaker AI supports the following options:

      capacity-reservations-only

      SageMaker AI launches instances only into an ML capacity reservation. If no capacity is available, the instances fail to launch.

      Parameters:
      capacityReservationPreference - The option that you chose for the capacity reservation. SageMaker AI supports the following options:

      capacity-reservations-only

      SageMaker AI launches instances only into an ML capacity reservation. If no capacity is available, the instances fail to launch.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • capacityReservationPreference

      ProductionVariantCapacityReservationSummary.Builder capacityReservationPreference(CapacityReservationPreference capacityReservationPreference)

      The option that you chose for the capacity reservation. SageMaker AI supports the following options:

      capacity-reservations-only

      SageMaker AI launches instances only into an ML capacity reservation. If no capacity is available, the instances fail to launch.

      Parameters:
      capacityReservationPreference - The option that you chose for the capacity reservation. SageMaker AI supports the following options:

      capacity-reservations-only

      SageMaker AI launches instances only into an ML capacity reservation. If no capacity is available, the instances fail to launch.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • totalInstanceCount

      ProductionVariantCapacityReservationSummary.Builder totalInstanceCount(Integer totalInstanceCount)

      The number of instances that you allocated to the ML capacity reservation.

      Parameters:
      totalInstanceCount - The number of instances that you allocated to the ML capacity reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availableInstanceCount

      ProductionVariantCapacityReservationSummary.Builder availableInstanceCount(Integer availableInstanceCount)

      The number of instances that are currently available in the ML capacity reservation.

      Parameters:
      availableInstanceCount - The number of instances that are currently available in the ML capacity reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usedByCurrentEndpoint

      ProductionVariantCapacityReservationSummary.Builder usedByCurrentEndpoint(Integer usedByCurrentEndpoint)

      The number of instances from the ML capacity reservation that are being used by the endpoint.

      Parameters:
      usedByCurrentEndpoint - The number of instances from the ML capacity reservation that are being used by the endpoint.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ec2CapacityReservations

      The EC2 capacity reservations that are shared to this ML capacity reservation, if any.

      Parameters:
      ec2CapacityReservations - The EC2 capacity reservations that are shared to this ML capacity reservation, if any.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ec2CapacityReservations

      ProductionVariantCapacityReservationSummary.Builder ec2CapacityReservations(Ec2CapacityReservation... ec2CapacityReservations)

      The EC2 capacity reservations that are shared to this ML capacity reservation, if any.

      Parameters:
      ec2CapacityReservations - The EC2 capacity reservations that are shared to this ML capacity reservation, if any.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ec2CapacityReservations

      The EC2 capacity reservations that are shared to this ML capacity reservation, if any.

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

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

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