public CreateVolumeRequest withKmsKeyId(String kmsKeyId) {
        setKmsKeyId(kmsKeyId);
        return this;
    }
<p>
The identifier of the KMS key to use for Amazon EBS encryption. If this parameter is not specified, your KMS key
for Amazon EBS is used. If <code>KmsKeyId</code> is specified, the encrypted state must be <code>true</code>.
</p>
<p>
You can specify the KMS key using any of the following:
</p>
<ul>
<li>
<p>
Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab.
</p>
</li>
<li>
<p>
Key alias. For example, alias/ExampleAlias.
</p>
</li>
<li>
<p>
Key ARN. For example, arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.
</p>
</li>
<li>
<p>
Alias ARN. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
</p>
</li>
</ul>
<p>
Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an ID, alias, or ARN that
is not valid, the action can appear to complete, but eventually fails.
</p>

@param kmsKeyId
       The identifier of the KMS key to use for Amazon EBS encryption. If this parameter is not specified, your
       KMS key for Amazon EBS is used. If <code>KmsKeyId</code> is specified, the encrypted state must be
       <code>true</code>.</p>
       <p>
       You can specify the KMS key using any of the following:
       </p>
       <ul>
       <li>
       <p>
       Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab.
       </p>
       </li>
       <li>
       <p>
       Key alias. For example, alias/ExampleAlias.
       </p>
       </li>
       <li>
       <p>
       Key ARN. For example, arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.
       </p>
       </li>
       <li>
       <p>
       Alias ARN. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
       </p>
       </li>
       </ul>
       <p>
       Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an ID, alias, or
       ARN that is not valid, the action can appear to complete, but eventually fails.
@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/CreateVolumeRequest.java