public BucketPublicAccess withEffectivePermission(String effectivePermission) {
        setEffectivePermission(effectivePermission);
        return this;
    }
<p>
Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to
the bucket. Possible values are:
</p>
<ul>
<li>
<p>
NOT_PUBLIC - The bucket isn't publicly accessible.
</p>
</li>
<li>
<p>
PUBLIC - The bucket is publicly accessible.
</p>
</li>
<li>
<p>
UNKNOWN - Amazon Macie can't determine whether the bucket is publicly accessible.
</p>
</li>
</ul>

@param effectivePermission
       <p>
       Specifies whether the bucket is publicly accessible due to the combination of permissions settings that
       apply to the bucket. Possible values are:
       </p>
       <ul>
       <li>
       <p>
       NOT_PUBLIC - The bucket isn't publicly accessible.
       </p>
       </li>
       <li>
       <p>
       PUBLIC - The bucket is publicly accessible.
       </p>
       </li>
       <li>
       <p>
       UNKNOWN - Amazon Macie can't determine whether the bucket is publicly accessible.
       </p>
       </li>
       </ul>
@return Returns a reference to this object so that method calls can be chained together.
@see EffectivePermission
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/BucketPublicAccess.java