public void setKeyPair(KeyPair keyPair) {
        this.keyPair = keyPair;
    }
<p>
Describes a key pair.
</p>

@param keyPair
       Describes a key pair.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateKeyPairResult.java