public DockerSettings withVpcOnlyTrustedAccounts(String... vpcOnlyTrustedAccounts) {
        if (this.vpcOnlyTrustedAccounts == null) {
            setVpcOnlyTrustedAccounts(new java.util.ArrayList<String>(vpcOnlyTrustedAccounts.length));
        }
        for (String ele : vpcOnlyTrustedAccounts) {
            this.vpcOnlyTrustedAccounts.add(ele);
        }
        return this;
    }
<p>
The list of Amazon Web Services accounts that are trusted when the domain is created in VPC-only mode.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setVpcOnlyTrustedAccounts(java.util.Collection)} or
{@link #withVpcOnlyTrustedAccounts(java.util.Collection)} if you want to override the existing values.
</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