public CategoricalMeasureField withAggregationFunction(String aggregationFunction) {
        setAggregationFunction(aggregationFunction);
        return this;
    }
<p>
The aggregation function of the measure field.
</p>

@param aggregationFunction
       The aggregation function of the measure field.
@return Returns a reference to this object so that method calls can be chained together.
@see CategoricalAggregationFunction
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/CategoricalMeasureField.java