Interface Statistics.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Statistics.Builder,Statistics>, SdkBuilder<Statistics.Builder,Statistics>, SdkPojo
Enclosing class:
Statistics

public static interface Statistics.Builder extends SdkPojo, CopyableBuilder<Statistics.Builder,Statistics>
  • Method Details

    • aggregationEndTime

      Statistics.Builder aggregationEndTime(Instant aggregationEndTime)

      The end time for the aggregation.

      Parameters:
      aggregationEndTime - The end time for the aggregation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • aggregationStartTime

      Statistics.Builder aggregationStartTime(Instant aggregationStartTime)

      The start time for the aggregation.

      Parameters:
      aggregationStartTime - The start time for the aggregation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • costInUsd

      Statistics.Builder costInUsd(Stats costInUsd)

      How the statistics should appear in USD. Options include: minimum, maximum, average or sum.

      Parameters:
      costInUsd - How the statistics should appear in USD. Options include: minimum, maximum, average or sum.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • costInUsd

      default Statistics.Builder costInUsd(Consumer<Stats.Builder> costInUsd)

      How the statistics should appear in USD. Options include: minimum, maximum, average or sum.

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

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

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

      The number of instances in a list of statistics.

      Parameters:
      count - The number of instances in a list of statistics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fleetId

      Statistics.Builder fleetId(String fleetId)

      The fleet ID.

      Parameters:
      fleetId - The fleet ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceType

      Statistics.Builder instanceType(String instanceType)

      The type of instance.

      Parameters:
      instanceType - The type of instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobId

      Statistics.Builder jobId(String jobId)

      The job ID.

      Parameters:
      jobId - The job ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobName

      Statistics.Builder jobName(String jobName)

      The job name.

      Parameters:
      jobName - The job name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • licenseProduct

      Statistics.Builder licenseProduct(String licenseProduct)

      The licensed product.

      Parameters:
      licenseProduct - The licensed product.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queueId

      Statistics.Builder queueId(String queueId)

      The queue ID.

      Parameters:
      queueId - The queue ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • runtimeInSeconds

      Statistics.Builder runtimeInSeconds(Stats runtimeInSeconds)

      The total aggregated runtime.

      Parameters:
      runtimeInSeconds - The total aggregated runtime.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • runtimeInSeconds

      default Statistics.Builder runtimeInSeconds(Consumer<Stats.Builder> runtimeInSeconds)

      The total aggregated runtime.

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

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

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

      Statistics.Builder usageType(String usageType)

      The type of usage for the statistics.

      Parameters:
      usageType - The type of usage for the statistics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • usageType

      Statistics.Builder usageType(UsageType usageType)

      The type of usage for the statistics.

      Parameters:
      usageType - The type of usage for the statistics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • userId

      Statistics.Builder userId(String userId)

      The user ID.

      Parameters:
      userId - The user ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.