public AnalyzedResource withSharedVia(java.util.Collection<String> sharedVia) {
        setSharedVia(sharedVia);
        return this;
    }
<p>
Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
</p>

@param sharedVia
       Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket
       findings.
@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