/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateAlarmModelRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A unique name that helps you identify the alarm model. You can't change this name after you create the alarm * model. *
*/ private String alarmModelName; /** ** A description that tells you what the alarm model detects. *
*/ private String alarmModelDescription; /** ** 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; /** ** A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model. * For more information, see Tagging your AWS IoT * Events resources in the AWS IoT Events Developer Guide. *
** You can create up to 50 tags for one alarm model. *
*/ private java.util.List* An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this * key to the alarm. *
*/ private String key; /** ** A non-negative integer that reflects the severity level of the alarm. *
*/ private Integer severity; /** ** Defines when your alarm is invoked. *
*/ private AlarmRule alarmRule; /** ** Contains information about one or more notification actions. *
*/ private AlarmNotification alarmNotification; /** ** Contains information about one or more alarm actions. *
*/ private AlarmEventActions alarmEventActions; /** ** Contains the configuration information of alarm state changes. *
*/ private AlarmCapabilities alarmCapabilities; /** ** A unique name that helps you identify the alarm model. You can't change this name after you create the alarm * model. *
* * @param alarmModelName * A unique name that helps you identify the alarm model. You can't change this name after you create the * alarm model. */ public void setAlarmModelName(String alarmModelName) { this.alarmModelName = alarmModelName; } /** ** A unique name that helps you identify the alarm model. You can't change this name after you create the alarm * model. *
* * @return A unique name that helps you identify the alarm model. You can't change this name after you create the * alarm model. */ public String getAlarmModelName() { return this.alarmModelName; } /** ** A unique name that helps you identify the alarm model. You can't change this name after you create the alarm * model. *
* * @param alarmModelName * A unique name that helps you identify the alarm model. You can't change this name after you create the * alarm model. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAlarmModelRequest withAlarmModelName(String alarmModelName) { setAlarmModelName(alarmModelName); return this; } /** ** A description that tells you what the alarm model detects. *
* * @param alarmModelDescription * A description that tells you what the alarm model detects. */ public void setAlarmModelDescription(String alarmModelDescription) { this.alarmModelDescription = alarmModelDescription; } /** ** A description that tells you what the alarm model detects. *
* * @return A description that tells you what the alarm model detects. */ public String getAlarmModelDescription() { return this.alarmModelDescription; } /** ** A description that tells you what the alarm model detects. *
* * @param alarmModelDescription * A description that tells you what the alarm model detects. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAlarmModelRequest withAlarmModelDescription(String alarmModelDescription) { setAlarmModelDescription(alarmModelDescription); 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 CreateAlarmModelRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model. * For more information, see Tagging your AWS IoT * Events resources in the AWS IoT Events Developer Guide. *
** You can create up to 50 tags for one alarm model. *
* * @return A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm * model. For more information, see Tagging your * AWS IoT Events resources in the AWS IoT Events Developer Guide. *
* You can create up to 50 tags for one alarm model.
*/
public java.util.List
* A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model.
* For more information, see Tagging your AWS IoT
* Events resources in the AWS IoT Events Developer Guide.
*
* You can create up to 50 tags for one alarm model.
*
* You can create up to 50 tags for one alarm model.
*/
public void setTags(java.util.Collection
* A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model.
* For more information, see Tagging your AWS IoT
* Events resources in the AWS IoT Events Developer Guide.
*
* You can create up to 50 tags for one alarm model.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
* You can create up to 50 tags for one alarm model.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAlarmModelRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayList
* A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model.
* For more information, see Tagging your AWS IoT
* Events resources in the AWS IoT Events Developer Guide.
*
* You can create up to 50 tags for one alarm model.
*
* You can create up to 50 tags for one alarm model.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAlarmModelRequest withTags(java.util.Collection
* An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this
* key to the alarm.
*
* An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this
* key to the alarm.
*
* An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this
* key to the alarm.
*
* A non-negative integer that reflects the severity level of the alarm.
*
* A non-negative integer that reflects the severity level of the alarm.
*
* A non-negative integer that reflects the severity level of the alarm.
*
* Defines when your alarm is invoked.
*
* Defines when your alarm is invoked.
*
* Defines when your alarm is invoked.
*
* Contains information about one or more notification actions.
*
* Contains information about one or more notification actions.
*
* Contains information about one or more notification actions.
*
* Contains information about one or more alarm actions.
*
* Contains information about one or more alarm actions.
*
* Contains information about one or more alarm actions.
*
* Contains the configuration information of alarm state changes.
*
* Contains the configuration information of alarm state changes.
*
* Contains the configuration information of alarm state changes.
*