public java.nio.ByteBuffer getPublicKey() {
        return this.publicKey;
    }
<p>
The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is
Base64-encoded. Otherwise, it is not Base64-encoded.
</p>
<p>
{@code ByteBuffer}s are stateful. Calling their {@code get} methods changes their {@code position}. We recommend
using {@link java.nio.ByteBuffer#asReadOnlyBuffer()} to create a read-only view of the buffer with an independent
{@code position}, and calling {@code get} methods on this rather than directly on the returned {@code ByteBuffer}.
Doing so will ensure that anyone else using the {@code ByteBuffer} will not be affected by changes to the
{@code position}.
</p>

@return The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is
        Base64-encoded. Otherwise, it is not Base64-encoded.
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateDataKeyPairResult.java