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

        OwnershipControlsRule that = (OwnershipControlsRule) o;

        return objectOwnership != null ? objectOwnership.equals(that.objectOwnership) : that.objectOwnership == null;
    }
<p>The container element for an ownership control rule.</p>
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ownership/OwnershipControlsRule.java