/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ioteventsdata.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Contains a summary of an alarm. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AlarmSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the alarm model. *

*/ private String alarmModelName; /** *

* The version of the alarm model. *

*/ private String alarmModelVersion; /** *

* The value of the key used as a filter to select only the alarms associated with the key. *

*/ private String keyValue; /** *

* The name of the alarm state. The state name can be one of the following values: *

* */ private String stateName; /** *

* The time the alarm was created, in the Unix epoch format. *

*/ private java.util.Date creationTime; /** *

* The time the alarm was last updated, in the Unix epoch format. *

*/ private java.util.Date lastUpdateTime; /** *

* The name of the alarm model. *

* * @param alarmModelName * The name of the alarm model. */ public void setAlarmModelName(String alarmModelName) { this.alarmModelName = alarmModelName; } /** *

* The name of the alarm model. *

* * @return The name of the alarm model. */ public String getAlarmModelName() { return this.alarmModelName; } /** *

* The name of the alarm model. *

* * @param alarmModelName * The name of the alarm model. * @return Returns a reference to this object so that method calls can be chained together. */ public AlarmSummary withAlarmModelName(String alarmModelName) { setAlarmModelName(alarmModelName); return this; } /** *

* The version of the alarm model. *

* * @param alarmModelVersion * The version of the alarm model. */ public void setAlarmModelVersion(String alarmModelVersion) { this.alarmModelVersion = alarmModelVersion; } /** *

* The version of the alarm model. *

* * @return The version of the alarm model. */ public String getAlarmModelVersion() { return this.alarmModelVersion; } /** *

* The version of the alarm model. *

* * @param alarmModelVersion * The version of the alarm model. * @return Returns a reference to this object so that method calls can be chained together. */ public AlarmSummary withAlarmModelVersion(String alarmModelVersion) { setAlarmModelVersion(alarmModelVersion); return this; } /** *

* The value of the key used as a filter to select only the alarms associated with the key. *

* * @param keyValue * The value of the key used as a filter to select only the alarms associated with the key. */ public void setKeyValue(String keyValue) { this.keyValue = keyValue; } /** *

* The value of the key used as a filter to select only the alarms associated with the key. *

* * @return The value of the key used as a filter to select only the alarms associated with the key. */ public String getKeyValue() { return this.keyValue; } /** *

* The value of the key used as a filter to select only the alarms associated with the key. *

* * @param keyValue * The value of the key used as a filter to select only the alarms associated with the key. * @return Returns a reference to this object so that method calls can be chained together. */ public AlarmSummary withKeyValue(String keyValue) { setKeyValue(keyValue); return this; } /** *

* The name of the alarm state. The state name can be one of the following values: *

* * * @param stateName * The name of the alarm state. The state name can be one of the following values:

*