public TestAuthorizationRequest withAuthInfos(AuthInfo... authInfos) {
        if (this.authInfos == null) {
            setAuthInfos(new java.util.ArrayList<AuthInfo>(authInfos.length));
        }
        for (AuthInfo ele : authInfos) {
            this.authInfos.add(ele);
        }
        return this;
    }
<p>
A list of authorization info objects. Simulating authorization will create a response for each
<code>authInfo</code> object in the list.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAuthInfos(java.util.Collection)} or {@link #withAuthInfos(java.util.Collection)} if you want to
override the existing values.
</p>

@param authInfos
       A list of authorization info objects. Simulating authorization will create a response for each
       <code>authInfo</code> object in the list.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/TestAuthorizationRequest.java