public DeriveSharedSecretResult withSharedSecret(java.nio.ByteBuffer sharedSecret) {
        setSharedSecret(sharedSecret);
        return this;
    }
<p>
The raw secret derived from the specified key agreement algorithm, private key in the asymmetric KMS key, and
your peer's public key.
</p>
<p>
If the response includes the <code>CiphertextForRecipient</code> field, the <code>SharedSecret</code> field is
null or empty.
</p>
<p>
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service.
Users of the SDK should not perform Base64 encoding on this field.
</p>
<p>
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will
be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or
ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future
major version of the SDK.
</p>

@param sharedSecret
       The raw secret derived from the specified key agreement algorithm, private key in the asymmetric KMS key,
       and your peer's public key.</p>
       <p>
       If the response includes the <code>CiphertextForRecipient</code> field, the <code>SharedSecret</code>
       field is null or empty.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/DeriveSharedSecretResult.java