public void setKeyNames(java.util.Collection<String> keyNames) {
        if (keyNames == null) {
            this.keyNames = null;
            return;
        }

        this.keyNames = new com.amazonaws.internal.SdkInternalList<String>(keyNames);
    }
<p>
The key pair names.
</p>
<p>
Default: Describes all of your key pairs.
</p>

@param keyNames
       The key pair names.</p>
       <p>
       Default: Describes all of your key pairs.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeKeyPairsRequest.java