/* * 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.lightsail.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 TestAlarmRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the alarm to test. *
*/ private String alarmName; /** ** The alarm state to test. *
** An alarm has the following possible states that can be tested: *
*
* ALARM
- The metric is outside of the defined threshold.
*
* INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough data is
* available for the metric to determine the alarm state.
*
* OK
- The metric is within the defined threshold.
*
* The name of the alarm to test. *
* * @param alarmName * The name of the alarm to test. */ public void setAlarmName(String alarmName) { this.alarmName = alarmName; } /** ** The name of the alarm to test. *
* * @return The name of the alarm to test. */ public String getAlarmName() { return this.alarmName; } /** ** The name of the alarm to test. *
* * @param alarmName * The name of the alarm to test. * @return Returns a reference to this object so that method calls can be chained together. */ public TestAlarmRequest withAlarmName(String alarmName) { setAlarmName(alarmName); return this; } /** ** The alarm state to test. *
** An alarm has the following possible states that can be tested: *
*
* ALARM
- The metric is outside of the defined threshold.
*
* INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough data is
* available for the metric to determine the alarm state.
*
* OK
- The metric is within the defined threshold.
*
* An alarm has the following possible states that can be tested: *
*
* ALARM
- The metric is outside of the defined threshold.
*
* INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough
* data is available for the metric to determine the alarm state.
*
* OK
- The metric is within the defined threshold.
*
* The alarm state to test. *
** An alarm has the following possible states that can be tested: *
*
* ALARM
- The metric is outside of the defined threshold.
*
* INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough data is
* available for the metric to determine the alarm state.
*
* OK
- The metric is within the defined threshold.
*
* An alarm has the following possible states that can be tested: *
*
* ALARM
- The metric is outside of the defined threshold.
*
* INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough
* data is available for the metric to determine the alarm state.
*
* OK
- The metric is within the defined threshold.
*
* The alarm state to test. *
** An alarm has the following possible states that can be tested: *
*
* ALARM
- The metric is outside of the defined threshold.
*
* INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough data is
* available for the metric to determine the alarm state.
*
* OK
- The metric is within the defined threshold.
*
* An alarm has the following possible states that can be tested: *
*
* ALARM
- The metric is outside of the defined threshold.
*
* INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough
* data is available for the metric to determine the alarm state.
*
* OK
- The metric is within the defined threshold.
*
* The alarm state to test. *
** An alarm has the following possible states that can be tested: *
*
* ALARM
- The metric is outside of the defined threshold.
*
* INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough data is
* available for the metric to determine the alarm state.
*
* OK
- The metric is within the defined threshold.
*
* An alarm has the following possible states that can be tested: *
*
* ALARM
- The metric is outside of the defined threshold.
*
* INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough
* data is available for the metric to determine the alarm state.
*
* OK
- The metric is within the defined threshold.
*