@Override
    public SetVisibleToAllUsersResult setVisibleToAllUsers(SetVisibleToAllUsersRequest request) {
        request = beforeClientExecution(request);
        return executeSetVisibleToAllUsers(request);
    }
<important>
<p>
The SetVisibleToAllUsers parameter is no longer supported. Your cluster may be visible to all users in your
account. To restrict cluster access using an IAM policy, see <a
href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-access-IAM.html">Identity and Access
Management for Amazon EMR</a>.
</p>
</important>
<p>
Sets the <a>Cluster$VisibleToAllUsers</a> value for an Amazon EMR cluster. When <code>true</code>, IAM principals
in the Amazon Web Services account can perform Amazon EMR cluster actions 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 on the cluster, regardless of IAM permissions policies attached to other IAM
principals.
</p>
<p>
This action works on running clusters. When you create a cluster, use the
<a>RunJobFlowInput$VisibleToAllUsers</a> parameter.
</p>
<p>
For more information, see <a href=
"https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_IAM_emr-with-IAM.html#security_set_visible_to_all_users"
>Understanding the Amazon EMR Cluster VisibleToAllUsers Setting</a> in the <i>Amazon EMR Management Guide</i>.
</p>

@param setVisibleToAllUsersRequest
       The input to the SetVisibleToAllUsers action.
@return Result of the SetVisibleToAllUsers operation returned by the service.
@throws InternalServerErrorException
        Indicates that an error occurred while processing the request and that the request was not completed.
@sample AmazonElasticMapReduce.SetVisibleToAllUsers
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetVisibleToAllUsers"
     target="_top">AWS API Documentation</a>
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/AmazonElasticMapReduceClient.java