public DescribeChapCredentialsResult withChapCredentials(ChapInfo... chapCredentials) {
        if (this.chapCredentials == null) {
            setChapCredentials(new com.amazonaws.internal.SdkInternalList<ChapInfo>(chapCredentials.length));
        }
        for (ChapInfo ele : chapCredentials) {
            this.chapCredentials.add(ele);
        }
        return this;
    }
public DescribeChapCredentialsResult withChapCredentials ( ChapInfo ... chapCredentials ) { if ( this . chapCredentials == null ) { setChapCredentials ( new com . amazonaws . internal . SdkInternalList < ChapInfo > ( chapCredentials . length ) ) ; } for ( ChapInfo ele : chapCredentials ) { this . chapCredentials . add ( ele ) ; } return this ; }
<p>
An array of <a>ChapInfo</a> objects that represent CHAP credentials. Each object in the array contains CHAP
credential information for one target-initiator pair. If no CHAP credentials are set, an empty array is returned.
CHAP credential information is provided in a JSON object with the following fields:
</p>
<ul>
<li>
<p>
<b>InitiatorName</b>: The iSCSI initiator that connects to the target.
</p>
</li>
<li>
<p>
<b>SecretToAuthenticateInitiator</b>: The secret key that the initiator (for example, the Windows client) must
provide to participate in mutual CHAP with the target.
</p>
</li>
<li>
<p>
<b>SecretToAuthenticateTarget</b>: The secret key that the target must provide to participate in mutual CHAP with
the initiator (e.g. Windows client).
</p>
</li>
<li>
<p>
<b>TargetARN</b>: The Amazon Resource Name (ARN) of the storage volume.
</p>
</li>
</ul>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setChapCredentials(java.util.Collection)} or {@link #withChapCredentials(java.util.Collection)} if you
want to override the existing values.
</p>

@param chapCredentials
An array of <a>ChapInfo</a> objects that represent CHAP credentials. Each object in the array contains
CHAP credential information for one target-initiator pair. If no CHAP credentials are set, an empty array
is returned. CHAP credential information is provided in a JSON object with the following fields:</p>
<ul>
<li>
<p>
<b>InitiatorName</b>: The iSCSI initiator that connects to the target.
</p>
</li>
<li>
<p>
<b>SecretToAuthenticateInitiator</b>: The secret key that the initiator (for example, the Windows client)
must provide to participate in mutual CHAP with the target.
</p>
</li>
<li>
<p>
<b>SecretToAuthenticateTarget</b>: The secret key that the target must provide to participate in mutual
CHAP with the initiator (e.g. Windows client).
</p>
</li>
<li>
<p>
<b>TargetARN</b>: The Amazon Resource Name (ARN) of the storage volume.
</p>
</li>
@return Returns a reference to this object so that method calls can be chained together.