Interface TotalAggregationOption.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TotalAggregationOption.Builder,,TotalAggregationOption> SdkBuilder<TotalAggregationOption.Builder,,TotalAggregationOption> SdkPojo
- Enclosing class:
TotalAggregationOption
@Mutable
@NotThreadSafe
public static interface TotalAggregationOption.Builder
extends SdkPojo, CopyableBuilder<TotalAggregationOption.Builder,TotalAggregationOption>
-
Method Summary
Modifier and TypeMethodDescriptionThe field id that's associated with the total aggregation option.default TotalAggregationOption.BuildertotalAggregationFunction(Consumer<TotalAggregationFunction.Builder> totalAggregationFunction) The total aggregation function that you want to set for a specified field id.totalAggregationFunction(TotalAggregationFunction totalAggregationFunction) The total aggregation function that you want to set for a specified field id.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
fieldId
The field id that's associated with the total aggregation option.
- Parameters:
fieldId- The field id that's associated with the total aggregation option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalAggregationFunction
TotalAggregationOption.Builder totalAggregationFunction(TotalAggregationFunction totalAggregationFunction) The total aggregation function that you want to set for a specified field id.
- Parameters:
totalAggregationFunction- The total aggregation function that you want to set for a specified field id.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalAggregationFunction
default TotalAggregationOption.Builder totalAggregationFunction(Consumer<TotalAggregationFunction.Builder> totalAggregationFunction) The total aggregation function that you want to set for a specified field id.
This is a convenience method that creates an instance of theTotalAggregationFunction.Builderavoiding the need to create one manually viaTotalAggregationFunction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tototalAggregationFunction(TotalAggregationFunction).- Parameters:
totalAggregationFunction- a consumer that will call methods onTotalAggregationFunction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-