public InventorySchedule withFrequency(InventoryFrequency frequency) {
        setFrequency(frequency);
        return this;
    }
Sets the frequency for producing inventory results
and returns {@link InventorySchedule} object
for method chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/inventory/InventorySchedule.java