public GetKeyPairsResult withKeyPairs(KeyPair... keyPairs) {
        if (this.keyPairs == null) {
            setKeyPairs(new java.util.ArrayList<KeyPair>(keyPairs.length));
        }
        for (KeyPair ele : keyPairs) {
            this.keyPairs.add(ele);
        }
        return this;
    }
<p>
An array of key-value pairs containing information about the key pairs.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setKeyPairs(java.util.Collection)} or {@link #withKeyPairs(java.util.Collection)} if you want to override
the existing values.
</p>

@param keyPairs
       An array of key-value pairs containing information about the key pairs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetKeyPairsResult.java