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

        this.accounts = new com.amazonaws.internal.SdkInternalList<String>(accounts);
    }
<p>
The Amazon Web Services accounts targeted by the current Automation execution.
</p>

@param accounts
       The Amazon Web Services accounts targeted by the current Automation execution.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/TargetLocation.java