public TargetLocation withAccounts(java.util.Collection<String> accounts) {
        setAccounts(accounts);
        return this;
    }
<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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/TargetLocation.java