public void setKeyPairs(java.util.Collection<KeyPair> keyPairs) {
        if (keyPairs == null) {
            this.keyPairs = null;
            return;
        }

        this.keyPairs = new java.util.ArrayList<KeyPair>(keyPairs);
    }
<p>
An array of key-value pairs containing information about the key pairs.
</p>

@param keyPairs
       An array of key-value pairs containing information about the key pairs.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetKeyPairsResult.java