Interface Statistics.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Statistics.Builder,
,Statistics> SdkBuilder<Statistics.Builder,
,Statistics> SdkPojo
- Enclosing class:
Statistics
-
Method Summary
Modifier and TypeMethodDescriptionaggregationEndTime
(Instant aggregationEndTime) The end time for the aggregation.aggregationStartTime
(Instant aggregationStartTime) The start time for the aggregation.default Statistics.Builder
costInUsd
(Consumer<Stats.Builder> costInUsd) How the statistics should appear in USD.How the statistics should appear in USD.The number of instances in a list of statistics.The fleet ID.instanceType
(String instanceType) The type of instance.The job ID.The job name.licenseProduct
(String licenseProduct) The licensed product.The queue ID.default Statistics.Builder
runtimeInSeconds
(Consumer<Stats.Builder> runtimeInSeconds) The total aggregated runtime.runtimeInSeconds
(Stats runtimeInSeconds) The total aggregated runtime.The type of usage for the statistics.The type of usage for the statistics.The user ID.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
How the statistics should appear in USD. Options include: minimum, maximum, average or sum.
This is a convenience method that creates an instance of theStats.Builder
avoiding the need to create one manually viaStats.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocostInUsd(Stats)
.- Parameters:
costInUsd
- a consumer that will call methods onStats.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
The fleet ID.
- Parameters:
fleetId
- The fleet ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The job ID.
- Parameters:
jobId
- The job ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The licensed product.
- Parameters:
licenseProduct
- The licensed product.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
The total aggregated runtime.
This is a convenience method that creates an instance of theStats.Builder
avoiding the need to create one manually viaStats.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toruntimeInSeconds(Stats)
.- Parameters:
runtimeInSeconds
- a consumer that will call methods onStats.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
The user ID.
- Parameters:
userId
- The user ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-