/* * 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.iotevents.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 model version. *

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

* The name of the alarm model. *

*/ private String alarmModelName; /** *

* The ARN of the alarm model. For more information, see Amazon Resource Names * (ARNs) in the AWS General Reference. *

*/ private String alarmModelArn; /** *

* The version of the alarm model. *

*/ private String alarmModelVersion; /** *

* The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, * see Amazon Resource Names * (ARNs) in the AWS General Reference. *

*/ private String roleArn; /** *

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

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

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

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

* The status of the alarm model. The status can be one of the following values: *

* */ private String status; /** *

* Contains information about the status of the alarm model version. *

*/ private String statusMessage; /** *

* 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 AlarmModelVersionSummary withAlarmModelName(String alarmModelName) { setAlarmModelName(alarmModelName); return this; } /** *

* The ARN of the alarm model. For more information, see Amazon Resource Names * (ARNs) in the AWS General Reference. *

* * @param alarmModelArn * The ARN of the alarm model. For more information, see Amazon Resource Names * (ARNs) in the AWS General Reference. */ public void setAlarmModelArn(String alarmModelArn) { this.alarmModelArn = alarmModelArn; } /** *

* The ARN of the alarm model. For more information, see Amazon Resource Names * (ARNs) in the AWS General Reference. *

* * @return The ARN of the alarm model. For more information, see Amazon Resource Names * (ARNs) in the AWS General Reference. */ public String getAlarmModelArn() { return this.alarmModelArn; } /** *

* The ARN of the alarm model. For more information, see Amazon Resource Names * (ARNs) in the AWS General Reference. *

* * @param alarmModelArn * The ARN of the alarm model. For more information, see Amazon Resource Names * (ARNs) in the AWS General Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public AlarmModelVersionSummary withAlarmModelArn(String alarmModelArn) { setAlarmModelArn(alarmModelArn); 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 AlarmModelVersionSummary withAlarmModelVersion(String alarmModelVersion) { setAlarmModelVersion(alarmModelVersion); return this; } /** *

* The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, * see Amazon Resource Names * (ARNs) in the AWS General Reference. *

* * @param roleArn * The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more * information, see Amazon Resource Names * (ARNs) in the AWS General Reference. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, * see Amazon Resource Names * (ARNs) in the AWS General Reference. *

* * @return The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more * information, see Amazon Resource Names * (ARNs) in the AWS General Reference. */ public String getRoleArn() { return this.roleArn; } /** *

* The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, * see Amazon Resource Names * (ARNs) in the AWS General Reference. *

* * @param roleArn * The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more * information, see Amazon Resource Names * (ARNs) in the AWS General Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public AlarmModelVersionSummary withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

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

* * @param creationTime * The time the alarm model was created, in the Unix epoch format. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

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

* * @return The time the alarm model was created, in the Unix epoch format. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

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

* * @param creationTime * The time the alarm model was created, in the Unix epoch format. * @return Returns a reference to this object so that method calls can be chained together. */ public AlarmModelVersionSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

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

* * @param lastUpdateTime * The time the alarm model was last updated, in the Unix epoch format. */ public void setLastUpdateTime(java.util.Date lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } /** *

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

* * @return The time the alarm model was last updated, in the Unix epoch format. */ public java.util.Date getLastUpdateTime() { return this.lastUpdateTime; } /** *

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

* * @param lastUpdateTime * The time the alarm model was last updated, in the Unix epoch format. * @return Returns a reference to this object so that method calls can be chained together. */ public AlarmModelVersionSummary withLastUpdateTime(java.util.Date lastUpdateTime) { setLastUpdateTime(lastUpdateTime); return this; } /** *

* The status of the alarm model. The status can be one of the following values: *

* * * @param status * The status of the alarm model. The status can be one of the following values:

*