@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getRules() != null) {
            sb.append("Rules: ").append(getRules()).append(",");
        }
        sb.append("}");
        return sb.toString();
    }
<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