public void setPredicate(MetricsFilterPredicate predicate) {
        this.predicate = predicate;
    }
Sets the {@link MetricsFilterPredicate} to be used when evaluating a metrics filter.

The predicate should be one of {@link MetricsPrefixPredicate}, {@link MetricsTagPredicate}
or {@link MetricsAndOperator}.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/metrics/MetricsFilter.java