@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        OwnershipControls that = (OwnershipControls) o;

        return rules != null ? rules.equals(that.rules) : that.rules == null;
    }
<p>The container element for a bucket's ownership controls.</p>
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ownership/OwnershipControls.java