public AwsCloudTrailTrailDetails withKmsKeyId(String kmsKeyId) {
        setKmsKeyId(kmsKeyId);
        return this;
    }
<p>
The KMS key ID to use to encrypt the logs.
</p>

@param kmsKeyId
       The KMS key ID to use to encrypt the logs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsCloudTrailTrailDetails.java