public AnalyzedResource withIsPublic(Boolean isPublic) {
        setIsPublic(isPublic);
        return this;
    }
<p>
Indicates whether the policy that generated the finding grants public access to the resource.
</p>

@param isPublic
       Indicates whether the policy that generated the finding grants public access to the resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/AnalyzedResource.java