public void setFunction(AggFunction function) {
        this.function = function;
    }
<p>
The function for the <code>TopicIRMetric</code>.
</p>

@param function
       The function for the <code>TopicIRMetric</code>.
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/TopicIRMetric.java