public JobWorkerExecutorConfiguration withPollingServicePrincipals(String... pollingServicePrincipals) {
        if (this.pollingServicePrincipals == null) {
            setPollingServicePrincipals(new java.util.ArrayList<String>(pollingServicePrincipals.length));
        }
        for (String ele : pollingServicePrincipals) {
            this.pollingServicePrincipals.add(ele);
        }
        return this;
    }
<p>
The service Principals 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 #setPollingServicePrincipals(java.util.Collection)} or
{@link #withPollingServicePrincipals(java.util.Collection)} if you want to override the existing values.
</p>

@param pollingServicePrincipals
       The service Principals 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