public BatchGetFreeTrialInfoResult withAccounts(FreeTrialAccountInfo... accounts) {
        if (this.accounts == null) {
            setAccounts(new java.util.ArrayList<FreeTrialAccountInfo>(accounts.length));
        }
        for (FreeTrialAccountInfo ele : accounts) {
            this.accounts.add(ele);
        }
        return this;
    }
<p>
An array of objects that provide Amazon Inspector free trial details for each of the requested accounts.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAccounts(java.util.Collection)} or {@link #withAccounts(java.util.Collection)} if you want to override
the existing values.
</p>

@param accounts
       An array of objects that provide Amazon Inspector free trial details for each of the requested accounts.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/BatchGetFreeTrialInfoResult.java