public Alarm withKeyValue(String keyValue) {
        setKeyValue(keyValue);
        return this;
    }
<p>
The value of the key used as a filter to select only the alarms associated with the <a href=
"https://docs.aws.amazon.com/iotevents/latest/apireference/API_CreateAlarmModel.html#iotevents-CreateAlarmModel-request-key"
>key</a>.
</p>

@param keyValue
       The value of the key used as a filter to select only the alarms associated with the <a href=
       "https://docs.aws.amazon.com/iotevents/latest/apireference/API_CreateAlarmModel.html#iotevents-CreateAlarmModel-request-key"
       >key</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ioteventsdata/src/main/java/com/amazonaws/services/ioteventsdata/model/Alarm.java