public Component withKmsKeyId(String kmsKeyId) {
        setKmsKeyId(kmsKeyId);
        return this;
    }
<p>
The KMS key identifier used to encrypt the component.
</p>

@param kmsKeyId
       The KMS key identifier used to encrypt the component.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/Component.java