public JobWorkerExecutorConfiguration withPollingAccounts(String... pollingAccounts) {
        if (this.pollingAccounts == null) {
            setPollingAccounts(new java.util.ArrayList<String>(pollingAccounts.length));
        }
        for (String ele : pollingAccounts) {
            this.pollingAccounts.add(ele);
        }
        return this;
    }
<p>
The accounts in which the job worker is configured and might poll for jobs as part of the action execution.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPollingAccounts(java.util.Collection)} or {@link #withPollingAccounts(java.util.Collection)} if you
want to override the existing values.
</p>

@param pollingAccounts
       The accounts in which the job worker is configured and might poll for jobs as part of the action
       execution.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/JobWorkerExecutorConfiguration.java