public void setSharedVia(java.util.Collection<String> sharedVia) {
        if (sharedVia == null) {
            this.sharedVia = null;
            return;
        }

        this.sharedVia = new java.util.ArrayList<String>(sharedVia);
    }
<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.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/AnalyzedResource.java