public ImportKeyPairRequest withPublicKeyMaterial(String publicKeyMaterial) {
        setPublicKeyMaterial(publicKeyMaterial);
        return this;
    }
<p>
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is
performed for you.
</p>

@param publicKeyMaterial
       The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is
       performed for you.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ImportKeyPairRequest.java