public Cluster withVisibleToAllUsers(Boolean visibleToAllUsers) {
        setVisibleToAllUsers(visibleToAllUsers);
        return this;
    }
<p>
Indicates whether the cluster is visible to IAM principals in the Amazon Web Services account associated with the
cluster. When <code>true</code>, IAM principals in the Amazon Web Services account can perform Amazon EMR cluster
actions on the cluster that their IAM policies allow. When <code>false</code>, only the IAM principal that
created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions, regardless of
IAM permissions policies attached to other IAM principals.
</p>
<p>
The default value is <code>true</code> if a value is not provided when creating a cluster using the Amazon EMR
API <a>RunJobFlow</a> command, the CLI <a
href="https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html">create-cluster</a> command, or
the Amazon Web Services Management Console.
</p>

@param visibleToAllUsers
       Indicates whether the cluster is visible to IAM principals in the Amazon Web Services account associated
       with the cluster. When <code>true</code>, IAM principals in the Amazon Web Services account can perform
       Amazon EMR cluster actions on the cluster that their IAM policies allow. When <code>false</code>, only the
       IAM principal that created the cluster and the Amazon Web Services account root user can perform Amazon
       EMR actions, regardless of IAM permissions policies attached to other IAM principals.</p>
       <p>
       The default value is <code>true</code> if a value is not provided when creating a cluster using the Amazon
       EMR API <a>RunJobFlow</a> command, the CLI <a
       href="https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html">create-cluster</a>
       command, or the Amazon Web Services Management Console.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/Cluster.java