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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Statistics.BuilderaggregationEndTime(Instant aggregationEndTime)The end time for the aggregation.Statistics.BuilderaggregationStartTime(Instant aggregationStartTime)The start time for the aggregation.default Statistics.BuildercostInUsd(Consumer<Stats.Builder> costInUsd)How the statistics should appear in USD.Statistics.BuildercostInUsd(Stats costInUsd)How the statistics should appear in USD.Statistics.Buildercount(Integer count)The number of instances in a list of statistics.Statistics.BuilderfleetId(String fleetId)The fleet ID.Statistics.BuilderinstanceType(String instanceType)The type of instance.Statistics.BuilderjobId(String jobId)The job ID.Statistics.BuilderjobName(String jobName)The job name.Statistics.BuilderlicenseProduct(String licenseProduct)The licensed product.Statistics.BuilderqueueId(String queueId)The queue ID.default Statistics.BuilderruntimeInSeconds(Consumer<Stats.Builder> runtimeInSeconds)The total aggregated runtime.Statistics.BuilderruntimeInSeconds(Stats runtimeInSeconds)The total aggregated runtime.Statistics.BuilderusageType(String usageType)The type of usage for the statistics.Statistics.BuilderusageType(UsageType usageType)The type of usage for the statistics.Statistics.BuilderuserId(String userId)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 Detail
-
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 theStats.Builderavoiding the need to create one manually viaStats.builder().When the
Consumercompletes,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:
costInUsd(Stats)
-
count
Statistics.Builder count(Integer 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 theStats.Builderavoiding the need to create one manually viaStats.builder().When the
Consumercompletes,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:
runtimeInSeconds(Stats)
-
usageType
Statistics.Builder usageType(String usageType)
The type of usage for the statistics.
-
usageType
Statistics.Builder usageType(UsageType usageType)
The type of usage for the statistics.
-
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.
-
-