public DockerSettings withVpcOnlyTrustedAccounts(java.util.Collection<String> vpcOnlyTrustedAccounts) {
        setVpcOnlyTrustedAccounts(vpcOnlyTrustedAccounts);
        return this;
    }
<p>
The list of Amazon Web Services accounts that are trusted when the domain is created in VPC-only mode.
</p>

@param vpcOnlyTrustedAccounts
       The list of Amazon Web Services accounts that are trusted when the domain is created in VPC-only mode.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/DockerSettings.java