public AuthorizeDataShareResult withAllowPubliclyAccessibleConsumers(Boolean allowPubliclyAccessibleConsumers) {
        setAllowPubliclyAccessibleConsumers(allowPubliclyAccessibleConsumers);
        return this;
    }
<p>
A value that specifies whether the datashare can be shared to a publicly accessible cluster.
</p>

@param allowPubliclyAccessibleConsumers
       A value that specifies whether the datashare can be shared to a publicly accessible cluster.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/AuthorizeDataShareResult.java