public TransformOutput withKmsKeyId(String kmsKeyId) {
        setKmsKeyId(kmsKeyId);
        return this;
    }
<p>
The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to
encrypt the model artifacts at rest using Amazon S3 server-side encryption. The <code>KmsKeyId</code> can be any
of the following formats:
</p>
<ul>
<li>
<p>
Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
</p>
</li>
<li>
<p>
Key ARN: <code>arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
</p>
</li>
<li>
<p>
Alias name: <code>alias/ExampleAlias</code>
</p>
</li>
<li>
<p>
Alias name ARN: <code>arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias</code>
</p>
</li>
</ul>
<p>
If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's
account. For more information, see <a
href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html">KMS-Managed Encryption Keys</a> in
the <i>Amazon Simple Storage Service Developer Guide.</i>
</p>
<p>
The KMS key policy must grant permission to the IAM role that you specify in your <a
href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateModel.html">CreateModel</a> request.
For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Using
Key Policies in Amazon Web Services KMS</a> in the <i>Amazon Web Services Key Management Service Developer
Guide</i>.
</p>

@param kmsKeyId
       The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to
       encrypt the model artifacts at rest using Amazon S3 server-side encryption. The <code>KmsKeyId</code> can
       be any of the following formats: </p>
       <ul>
       <li>
       <p>
       Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
       </p>
       </li>
       <li>
       <p>
       Key ARN: <code>arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
       </p>
       </li>
       <li>
       <p>
       Alias name: <code>alias/ExampleAlias</code>
       </p>
       </li>
       <li>
       <p>
       Alias name ARN: <code>arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias</code>
       </p>
       </li>
       </ul>
       <p>
       If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's
       account. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html">KMS-Managed Encryption
       Keys</a> in the <i>Amazon Simple Storage Service Developer Guide.</i>
       </p>
       <p>
       The KMS key policy must grant permission to the IAM role that you specify in your <a
       href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateModel.html">CreateModel</a>
       request. For more information, see <a
       href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Using Key Policies in
       Amazon Web Services KMS</a> in the <i>Amazon Web Services Key Management Service Developer Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/TransformOutput.java