Interface GetCapacityReservationUsageResponse.Builder

  • Method Details

    • smCapacityReservationId

      GetCapacityReservationUsageResponse.Builder smCapacityReservationId(String smCapacityReservationId)

      The ID of the SageMaker Capacity Reservation. The ID is the last part of the ARN and starts with smcr-.

      Parameters:
      smCapacityReservationId - The ID of the SageMaker Capacity Reservation. The ID is the last part of the ARN and starts with smcr-.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalInstanceCount

      GetCapacityReservationUsageResponse.Builder totalInstanceCount(Integer totalInstanceCount)

      The number of instances in the SageMaker Capacity Reservation.

      Parameters:
      totalInstanceCount - The number of instances in the SageMaker Capacity Reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availableInstanceCount

      GetCapacityReservationUsageResponse.Builder availableInstanceCount(Integer availableInstanceCount)

      The number of instances in the SageMaker Capacity Reservation that are not in use.

      Parameters:
      availableInstanceCount - The number of instances in the SageMaker Capacity Reservation that are not in use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastRefreshTime

      GetCapacityReservationUsageResponse.Builder lastRefreshTime(Instant lastRefreshTime)

      The time when SageMaker AI last refreshed the usage counts in this response.

      Parameters:
      lastRefreshTime - The time when SageMaker AI last refreshed the usage counts in this response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceUsageSet

      The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID. Each account appears at most once across all pages. The list is empty when no instances are in use.

      Parameters:
      instanceUsageSet - The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID. Each account appears at most once across all pages. The list is empty when no instances are in use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceUsageSet

      The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID. Each account appears at most once across all pages. The list is empty when no instances are in use.

      Parameters:
      instanceUsageSet - The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID. Each account appears at most once across all pages. The list is empty when no instances are in use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceUsageSet

      The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID. Each account appears at most once across all pages. The list is empty when no instances are in use.

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

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

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

      If the response is truncated, SageMaker AI returns this token. To retrieve the next set of results, use this token in your next request.

      Parameters:
      nextToken - If the response is truncated, SageMaker AI returns this token. To retrieve the next set of results, use this token in your next request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.