public S3Configuration withKmsKeyId(String kmsKeyId) {
        setKmsKeyId(kmsKeyId);
        return this;
    }
<p>
The KMS key ID for the customer S3 location when encrypting with an Amazon Web Services managed key.
</p>

@param kmsKeyId
       The KMS key ID for the customer S3 location when encrypting with an Amazon Web Services managed key.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-timestreamwrite/src/main/java/com/amazonaws/services/timestreamwrite/model/S3Configuration.java