public String getKeyId() {
        return this.keyId;
    }
<p>
Gets the key policy for the specified KMS key.
</p>
<p>
Specify the key ID or key ARN of the KMS key.
</p>
<p>
For example:
</p>
<ul>
<li>
<p>
Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
</p>
</li>
<li>
<p>
Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
</p>
</li>
</ul>
<p>
To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
</p>

@return Gets the key policy for the specified KMS key.</p>
        <p>
        Specify the key ID or key ARN of the KMS key.
        </p>
        <p>
        For example:
        </p>
        <ul>
        <li>
        <p>
        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
        </p>
        </li>
        <li>
        <p>
        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
        </p>
        </li>
        </ul>
        <p>
        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GetKeyPolicyRequest.java