/* * 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.cloudwatch.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 PutCompositeAlarmRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The
* default is TRUE
.
*
* The actions to execute when this alarm transitions to the ALARM
state from any other state. Each
* action is specified as an Amazon Resource Name (ARN).
*
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
|
* arn:aws:ssm:region:account-id:opsitem:severity
*
* The description for the composite alarm. *
*/ private String alarmDescription; /** ** The name for the composite alarm. This name must be unique within the Region. *
*/ private String alarmName; /** ** An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. * For each alarm that you reference, you designate a function that specifies whether that alarm needs to be in * ALARM state, OK state, or INSUFFICIENT_DATA state. You can use operators (AND, OR and NOT) to combine multiple * functions in a single expression. You can use parenthesis to logically group the functions in your expression. *
** You can use either alarm names or ARNs to reference the other alarms that are to be evaluated. *
** Functions can include the following: *
*
* ALARM("alarm-name or alarm-ARN")
is TRUE if the named alarm is in ALARM state.
*
* OK("alarm-name or alarm-ARN")
is TRUE if the named alarm is in OK state.
*
* INSUFFICIENT_DATA("alarm-name or alarm-ARN")
is TRUE if the named alarm is in
* INSUFFICIENT_DATA state.
*
* TRUE
always evaluates to TRUE.
*
* FALSE
always evaluates to FALSE.
*
* TRUE and FALSE are useful for testing a complex AlarmRule
structure, and for testing your alarm
* actions.
*
* Alarm names specified in AlarmRule
can be surrounded with double-quotes ("), but do not have to be.
*
* The following are some examples of AlarmRule
:
*
* ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)
specifies that the composite alarm goes
* into ALARM state only if both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in ALARM state.
*
* ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress)
specifies that the alarm goes to
* ALARM state if CPUUtilizationTooHigh is in ALARM state and DeploymentInProgress is not in ALARM state. This
* example reduces alarm noise during a known deployment window.
*
* (ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh)
goes into
* ALARM state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh is in ALARM state, and if NetworkOutTooHigh is in OK
* state. This provides another example of using a composite alarm to prevent noise. This rule ensures that you are
* not notified with an alarm action on high CPU or disk usage if a known network problem is also occurring.
*
* The AlarmRule
can specify as many as 100 "children" alarms. The AlarmRule
expression
* can have as many as 500 elements. Elements are child alarms, TRUE or FALSE statements, and parentheses.
*
* The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from any other
* state. Each action is specified as an Amazon Resource Name (ARN).
*
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
*
* The actions to execute when this alarm transitions to an OK
state from any other state. Each action
* is specified as an Amazon Resource Name (ARN).
*
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
*
* A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an * alarm. *
** Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by * granting a user permission to access or change only resources with certain tag values. *
*/ private com.amazonaws.internal.SdkInternalList
* Actions will be suppressed if the suppressor alarm is in the ALARM
state.
* ActionsSuppressor
can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
*
* The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the
* ALARM
state. After this time, the composite alarm performs its actions.
*
* WaitPeriod
is required only when ActionsSuppressor
is specified.
*
* The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the
* ALARM
state. After this time, the composite alarm performs its actions.
*
* ExtensionPeriod
is required only when ActionsSuppressor
is specified.
*
* Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The
* default is TRUE
.
*
TRUE
.
*/
public void setActionsEnabled(Boolean actionsEnabled) {
this.actionsEnabled = actionsEnabled;
}
/**
*
* Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The
* default is TRUE
.
*
TRUE
.
*/
public Boolean getActionsEnabled() {
return this.actionsEnabled;
}
/**
*
* Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The
* default is TRUE
.
*
TRUE
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutCompositeAlarmRequest withActionsEnabled(Boolean actionsEnabled) {
setActionsEnabled(actionsEnabled);
return this;
}
/**
*
* Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The
* default is TRUE
.
*
TRUE
.
*/
public Boolean isActionsEnabled() {
return this.actionsEnabled;
}
/**
*
* The actions to execute when this alarm transitions to the ALARM
state from any other state. Each
* action is specified as an Amazon Resource Name (ARN).
*
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
|
* arn:aws:ssm:region:account-id:opsitem:severity
*
ALARM
state from any other state.
* Each action is specified as an Amazon Resource Name (ARN).
*
* Valid Values:
* The actions to execute when this alarm transitions to the
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
|
* arn:aws:ssm:region:account-id:opsitem:severity
*/
public java.util.ListALARM
state from any other state. Each
* action is specified as an Amazon Resource Name (ARN).
* arn:aws:sns:region:account-id:sns-topic-name
|
* arn:aws:ssm:region:account-id:opsitem:severity
* ALARM
state from any other state.
* Each action is specified as an Amazon Resource Name (ARN).
* Valid Values:
* The actions to execute when this alarm transitions to the
* Valid Values:
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAlarmActions(java.util.Collection)} or {@link #withAlarmActions(java.util.Collection)} if you want to
* override the existing values.
* arn:aws:sns:region:account-id:sns-topic-name
|
* arn:aws:ssm:region:account-id:opsitem:severity
*/
public void setAlarmActions(java.util.CollectionALARM
state from any other state. Each
* action is specified as an Amazon Resource Name (ARN).
* arn:aws:sns:region:account-id:sns-topic-name
|
* arn:aws:ssm:region:account-id:opsitem:severity
* ALARM
state from any other state.
* Each action is specified as an Amazon Resource Name (ARN).
* Valid Values:
* The actions to execute when this alarm transitions to the
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
|
* arn:aws:ssm:region:account-id:opsitem:severity
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutCompositeAlarmRequest withAlarmActions(String... alarmActions) {
if (this.alarmActions == null) {
setAlarmActions(new com.amazonaws.internal.SdkInternalListALARM
state from any other state. Each
* action is specified as an Amazon Resource Name (ARN).
* arn:aws:sns:region:account-id:sns-topic-name
|
* arn:aws:ssm:region:account-id:opsitem:severity
* ALARM
state from any other state.
* Each action is specified as an Amazon Resource Name (ARN).
* Valid Values:
* The description for the composite alarm.
*
* The description for the composite alarm.
*
* The description for the composite alarm.
*
* The name for the composite alarm. This name must be unique within the Region.
*
* The name for the composite alarm. This name must be unique within the Region.
*
* The name for the composite alarm. This name must be unique within the Region.
*
* An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state.
* For each alarm that you reference, you designate a function that specifies whether that alarm needs to be in
* ALARM state, OK state, or INSUFFICIENT_DATA state. You can use operators (AND, OR and NOT) to combine multiple
* functions in a single expression. You can use parenthesis to logically group the functions in your expression.
*
* You can use either alarm names or ARNs to reference the other alarms that are to be evaluated.
*
* Functions can include the following:
*
*
*
*
*
*
* TRUE and FALSE are useful for testing a complex
* Alarm names specified in
* The following are some examples of
*
*
*
* The arn:aws:sns:region:account-id:sns-topic-name
|
* arn:aws:ssm:region:account-id:opsitem:severity
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutCompositeAlarmRequest withAlarmActions(java.util.Collection
*
* ALARM("alarm-name or alarm-ARN")
is TRUE if the named alarm is in ALARM state.
* OK("alarm-name or alarm-ARN")
is TRUE if the named alarm is in OK state.
* INSUFFICIENT_DATA("alarm-name or alarm-ARN")
is TRUE if the named alarm is in
* INSUFFICIENT_DATA state.
* TRUE
always evaluates to TRUE.
* FALSE
always evaluates to FALSE.
* AlarmRule
structure, and for testing your alarm
* actions.
* AlarmRule
can be surrounded with double-quotes ("), but do not have to be.
* AlarmRule
:
*
*
* ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)
specifies that the composite alarm goes
* into ALARM state only if both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in ALARM state.
* ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress)
specifies that the alarm goes to
* ALARM state if CPUUtilizationTooHigh is in ALARM state and DeploymentInProgress is not in ALARM state. This
* example reduces alarm noise during a known deployment window.
* (ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh)
goes into
* ALARM state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh is in ALARM state, and if NetworkOutTooHigh is in OK
* state. This provides another example of using a composite alarm to prevent noise. This rule ensures that you are
* not notified with an alarm action on high CPU or disk usage if a known network problem is also occurring.
* AlarmRule
can specify as many as 100 "children" alarms. The AlarmRule
expression
* can have as many as 500 elements. Elements are child alarms, TRUE or FALSE statements, and parentheses.
*
* You can use either alarm names or ARNs to reference the other alarms that are to be evaluated. *
** Functions can include the following: *
*
* ALARM("alarm-name or alarm-ARN")
is TRUE if the named alarm is in ALARM state.
*
* OK("alarm-name or alarm-ARN")
is TRUE if the named alarm is in OK state.
*
* INSUFFICIENT_DATA("alarm-name or alarm-ARN")
is TRUE if the named alarm is in
* INSUFFICIENT_DATA state.
*
* TRUE
always evaluates to TRUE.
*
* FALSE
always evaluates to FALSE.
*
* TRUE and FALSE are useful for testing a complex AlarmRule
structure, and for testing your
* alarm actions.
*
* Alarm names specified in AlarmRule
can be surrounded with double-quotes ("), but do not have
* to be.
*
* The following are some examples of AlarmRule
:
*
* ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)
specifies that the composite alarm
* goes into ALARM state only if both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in ALARM state.
*
* ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress)
specifies that the alarm
* goes to ALARM state if CPUUtilizationTooHigh is in ALARM state and DeploymentInProgress is not in ALARM
* state. This example reduces alarm noise during a known deployment window.
*
* (ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh)
goes
* into ALARM state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh is in ALARM state, and if
* NetworkOutTooHigh is in OK state. This provides another example of using a composite alarm to prevent
* noise. This rule ensures that you are not notified with an alarm action on high CPU or disk usage if a
* known network problem is also occurring.
*
* The AlarmRule
can specify as many as 100 "children" alarms. The AlarmRule
* expression can have as many as 500 elements. Elements are child alarms, TRUE or FALSE statements, and
* parentheses.
*/
public void setAlarmRule(String alarmRule) {
this.alarmRule = alarmRule;
}
/**
*
* An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. * For each alarm that you reference, you designate a function that specifies whether that alarm needs to be in * ALARM state, OK state, or INSUFFICIENT_DATA state. You can use operators (AND, OR and NOT) to combine multiple * functions in a single expression. You can use parenthesis to logically group the functions in your expression. *
** You can use either alarm names or ARNs to reference the other alarms that are to be evaluated. *
** Functions can include the following: *
*
* ALARM("alarm-name or alarm-ARN")
is TRUE if the named alarm is in ALARM state.
*
* OK("alarm-name or alarm-ARN")
is TRUE if the named alarm is in OK state.
*
* INSUFFICIENT_DATA("alarm-name or alarm-ARN")
is TRUE if the named alarm is in
* INSUFFICIENT_DATA state.
*
* TRUE
always evaluates to TRUE.
*
* FALSE
always evaluates to FALSE.
*
* TRUE and FALSE are useful for testing a complex AlarmRule
structure, and for testing your alarm
* actions.
*
* Alarm names specified in AlarmRule
can be surrounded with double-quotes ("), but do not have to be.
*
* The following are some examples of AlarmRule
:
*
* ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)
specifies that the composite alarm goes
* into ALARM state only if both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in ALARM state.
*
* ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress)
specifies that the alarm goes to
* ALARM state if CPUUtilizationTooHigh is in ALARM state and DeploymentInProgress is not in ALARM state. This
* example reduces alarm noise during a known deployment window.
*
* (ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh)
goes into
* ALARM state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh is in ALARM state, and if NetworkOutTooHigh is in OK
* state. This provides another example of using a composite alarm to prevent noise. This rule ensures that you are
* not notified with an alarm action on high CPU or disk usage if a known network problem is also occurring.
*
* The AlarmRule
can specify as many as 100 "children" alarms. The AlarmRule
expression
* can have as many as 500 elements. Elements are child alarms, TRUE or FALSE statements, and parentheses.
*
* You can use either alarm names or ARNs to reference the other alarms that are to be evaluated. *
** Functions can include the following: *
*
* ALARM("alarm-name or alarm-ARN")
is TRUE if the named alarm is in ALARM state.
*
* OK("alarm-name or alarm-ARN")
is TRUE if the named alarm is in OK state.
*
* INSUFFICIENT_DATA("alarm-name or alarm-ARN")
is TRUE if the named alarm is in
* INSUFFICIENT_DATA state.
*
* TRUE
always evaluates to TRUE.
*
* FALSE
always evaluates to FALSE.
*
* TRUE and FALSE are useful for testing a complex AlarmRule
structure, and for testing your
* alarm actions.
*
* Alarm names specified in AlarmRule
can be surrounded with double-quotes ("), but do not have
* to be.
*
* The following are some examples of AlarmRule
:
*
* ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)
specifies that the composite
* alarm goes into ALARM state only if both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in ALARM
* state.
*
* ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress)
specifies that the alarm
* goes to ALARM state if CPUUtilizationTooHigh is in ALARM state and DeploymentInProgress is not in ALARM
* state. This example reduces alarm noise during a known deployment window.
*
* (ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh)
goes
* into ALARM state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh is in ALARM state, and if
* NetworkOutTooHigh is in OK state. This provides another example of using a composite alarm to prevent
* noise. This rule ensures that you are not notified with an alarm action on high CPU or disk usage if a
* known network problem is also occurring.
*
* The AlarmRule
can specify as many as 100 "children" alarms. The AlarmRule
* expression can have as many as 500 elements. Elements are child alarms, TRUE or FALSE statements, and
* parentheses.
*/
public String getAlarmRule() {
return this.alarmRule;
}
/**
*
* An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. * For each alarm that you reference, you designate a function that specifies whether that alarm needs to be in * ALARM state, OK state, or INSUFFICIENT_DATA state. You can use operators (AND, OR and NOT) to combine multiple * functions in a single expression. You can use parenthesis to logically group the functions in your expression. *
** You can use either alarm names or ARNs to reference the other alarms that are to be evaluated. *
** Functions can include the following: *
*
* ALARM("alarm-name or alarm-ARN")
is TRUE if the named alarm is in ALARM state.
*
* OK("alarm-name or alarm-ARN")
is TRUE if the named alarm is in OK state.
*
* INSUFFICIENT_DATA("alarm-name or alarm-ARN")
is TRUE if the named alarm is in
* INSUFFICIENT_DATA state.
*
* TRUE
always evaluates to TRUE.
*
* FALSE
always evaluates to FALSE.
*
* TRUE and FALSE are useful for testing a complex AlarmRule
structure, and for testing your alarm
* actions.
*
* Alarm names specified in AlarmRule
can be surrounded with double-quotes ("), but do not have to be.
*
* The following are some examples of AlarmRule
:
*
* ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)
specifies that the composite alarm goes
* into ALARM state only if both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in ALARM state.
*
* ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress)
specifies that the alarm goes to
* ALARM state if CPUUtilizationTooHigh is in ALARM state and DeploymentInProgress is not in ALARM state. This
* example reduces alarm noise during a known deployment window.
*
* (ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh)
goes into
* ALARM state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh is in ALARM state, and if NetworkOutTooHigh is in OK
* state. This provides another example of using a composite alarm to prevent noise. This rule ensures that you are
* not notified with an alarm action on high CPU or disk usage if a known network problem is also occurring.
*
* The AlarmRule
can specify as many as 100 "children" alarms. The AlarmRule
expression
* can have as many as 500 elements. Elements are child alarms, TRUE or FALSE statements, and parentheses.
*
* You can use either alarm names or ARNs to reference the other alarms that are to be evaluated. *
** Functions can include the following: *
*
* ALARM("alarm-name or alarm-ARN")
is TRUE if the named alarm is in ALARM state.
*
* OK("alarm-name or alarm-ARN")
is TRUE if the named alarm is in OK state.
*
* INSUFFICIENT_DATA("alarm-name or alarm-ARN")
is TRUE if the named alarm is in
* INSUFFICIENT_DATA state.
*
* TRUE
always evaluates to TRUE.
*
* FALSE
always evaluates to FALSE.
*
* TRUE and FALSE are useful for testing a complex AlarmRule
structure, and for testing your
* alarm actions.
*
* Alarm names specified in AlarmRule
can be surrounded with double-quotes ("), but do not have
* to be.
*
* The following are some examples of AlarmRule
:
*
* ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)
specifies that the composite alarm
* goes into ALARM state only if both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in ALARM state.
*
* ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress)
specifies that the alarm
* goes to ALARM state if CPUUtilizationTooHigh is in ALARM state and DeploymentInProgress is not in ALARM
* state. This example reduces alarm noise during a known deployment window.
*
* (ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh)
goes
* into ALARM state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh is in ALARM state, and if
* NetworkOutTooHigh is in OK state. This provides another example of using a composite alarm to prevent
* noise. This rule ensures that you are not notified with an alarm action on high CPU or disk usage if a
* known network problem is also occurring.
*
* The AlarmRule
can specify as many as 100 "children" alarms. The AlarmRule
* expression can have as many as 500 elements. Elements are child alarms, TRUE or FALSE statements, and
* parentheses.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutCompositeAlarmRequest withAlarmRule(String alarmRule) {
setAlarmRule(alarmRule);
return this;
}
/**
*
* The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from any other
* state. Each action is specified as an Amazon Resource Name (ARN).
*
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
*
INSUFFICIENT_DATA
state from any
* other state. Each action is specified as an Amazon Resource Name (ARN).
*
* Valid Values:
* The actions to execute when this alarm transitions to the
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
*/
public java.util.ListINSUFFICIENT_DATA
state from any other
* state. Each action is specified as an Amazon Resource Name (ARN).
* arn:aws:sns:region:account-id:sns-topic-name
* INSUFFICIENT_DATA
state from any
* other state. Each action is specified as an Amazon Resource Name (ARN).
* Valid Values:
* The actions to execute when this alarm transitions to the
* Valid Values:
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setInsufficientDataActions(java.util.Collection)} or
* {@link #withInsufficientDataActions(java.util.Collection)} if you want to override the existing values.
* arn:aws:sns:region:account-id:sns-topic-name
*/
public void setInsufficientDataActions(java.util.CollectionINSUFFICIENT_DATA
state from any other
* state. Each action is specified as an Amazon Resource Name (ARN).
* arn:aws:sns:region:account-id:sns-topic-name
* INSUFFICIENT_DATA
state from any
* other state. Each action is specified as an Amazon Resource Name (ARN).
* Valid Values:
* The actions to execute when this alarm transitions to the
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutCompositeAlarmRequest withInsufficientDataActions(String... insufficientDataActions) {
if (this.insufficientDataActions == null) {
setInsufficientDataActions(new com.amazonaws.internal.SdkInternalListINSUFFICIENT_DATA
state from any other
* state. Each action is specified as an Amazon Resource Name (ARN).
* arn:aws:sns:region:account-id:sns-topic-name
* INSUFFICIENT_DATA
state from any
* other state. Each action is specified as an Amazon Resource Name (ARN).
* Valid Values:
* The actions to execute when this alarm transitions to an
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutCompositeAlarmRequest withInsufficientDataActions(java.util.CollectionOK
state from any other state. Each action
* is specified as an Amazon Resource Name (ARN).
* arn:aws:sns:region:account-id:sns-topic-name
* OK
state from any other state. Each
* action is specified as an Amazon Resource Name (ARN).
* Valid Values:
* The actions to execute when this alarm transitions to an
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
*/
public java.util.ListOK
state from any other state. Each action
* is specified as an Amazon Resource Name (ARN).
* arn:aws:sns:region:account-id:sns-topic-name
* OK
state from any other state. Each
* action is specified as an Amazon Resource Name (ARN).
* Valid Values:
* The actions to execute when this alarm transitions to an
* Valid Values:
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setOKActions(java.util.Collection)} or {@link #withOKActions(java.util.Collection)} if you want to
* override the existing values.
* arn:aws:sns:region:account-id:sns-topic-name
*/
public void setOKActions(java.util.CollectionOK
state from any other state. Each action
* is specified as an Amazon Resource Name (ARN).
* arn:aws:sns:region:account-id:sns-topic-name
* OK
state from any other state. Each
* action is specified as an Amazon Resource Name (ARN).
* Valid Values:
* The actions to execute when this alarm transitions to an
* Valid Values: arn:aws:sns:region:account-id:sns-topic-name
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutCompositeAlarmRequest withOKActions(String... oKActions) {
if (this.oKActions == null) {
setOKActions(new com.amazonaws.internal.SdkInternalListOK
state from any other state. Each action
* is specified as an Amazon Resource Name (ARN).
* arn:aws:sns:region:account-id:sns-topic-name
* OK
state from any other state. Each
* action is specified as an Amazon Resource Name (ARN).
* Valid Values:
* A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an
* alarm.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by
* granting a user permission to access or change only resources with certain tag values.
* arn:aws:sns:region:account-id:sns-topic-name
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutCompositeAlarmRequest withOKActions(java.util.Collection
* Tags can help you organize and categorize your resources. You can also use them to scope user
* permissions, by granting a user permission to access or change only resources with certain tag values.
*/
public java.util.List
* A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an
* alarm.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by
* granting a user permission to access or change only resources with certain tag values.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions,
* by granting a user permission to access or change only resources with certain tag values.
*/
public void setTags(java.util.Collection
* A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an
* alarm.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by
* granting a user permission to access or change only resources with certain tag values.
*
* 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.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions,
* by granting a user permission to access or change only resources with certain tag values.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutCompositeAlarmRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new com.amazonaws.internal.SdkInternalList
* A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an
* alarm.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by
* granting a user permission to access or change only resources with certain tag values.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions,
* by granting a user permission to access or change only resources with certain tag values.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutCompositeAlarmRequest withTags(java.util.Collection
* Actions will be suppressed if the suppressor alarm is in the
* Actions will be suppressed if the suppressor alarm is in the
* Actions will be suppressed if the suppressor alarm is in the
* The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the
*
* ALARM
state.
* ActionsSuppressor
can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
* ALARM
state.
* ActionsSuppressor
can be an AlarmName or an Amazon Resource Name (ARN) from an existing
* alarm.
*/
public void setActionsSuppressor(String actionsSuppressor) {
this.actionsSuppressor = actionsSuppressor;
}
/**
* ALARM
state.
* ActionsSuppressor
can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
* ALARM
state.
* ActionsSuppressor
can be an AlarmName or an Amazon Resource Name (ARN) from an existing
* alarm.
*/
public String getActionsSuppressor() {
return this.actionsSuppressor;
}
/**
* ALARM
state.
* ActionsSuppressor
can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
* ALARM
state.
* ActionsSuppressor
can be an AlarmName or an Amazon Resource Name (ARN) from an existing
* alarm.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutCompositeAlarmRequest withActionsSuppressor(String actionsSuppressor) {
setActionsSuppressor(actionsSuppressor);
return this;
}
/**
* ALARM
state. After this time, the composite alarm performs its actions.
* WaitPeriod
is required only when ActionsSuppressor
is specified.
* ALARM
state. After this time, the composite alarm performs its actions.
* WaitPeriod
is required only when ActionsSuppressor
is specified.
*
* The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the
* ALARM
state. After this time, the composite alarm performs its actions.
*
* WaitPeriod
is required only when ActionsSuppressor
is specified.
*
ALARM
state. After this time, the composite alarm performs its actions.
* WaitPeriod
is required only when ActionsSuppressor
is specified.
*
* The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the
* ALARM
state. After this time, the composite alarm performs its actions.
*
* WaitPeriod
is required only when ActionsSuppressor
is specified.
*
ALARM
state. After this time, the composite alarm performs its actions.
* WaitPeriod
is required only when ActionsSuppressor
is specified.
*
* The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the
* ALARM
state. After this time, the composite alarm performs its actions.
*
* ExtensionPeriod
is required only when ActionsSuppressor
is specified.
*
ALARM
state. After this time, the composite alarm performs its actions.
* ExtensionPeriod
is required only when ActionsSuppressor
is specified.
*
* The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the
* ALARM
state. After this time, the composite alarm performs its actions.
*
* ExtensionPeriod
is required only when ActionsSuppressor
is specified.
*
ALARM
state. After this time, the composite alarm performs its actions.
* ExtensionPeriod
is required only when ActionsSuppressor
is specified.
*
* The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the
* ALARM
state. After this time, the composite alarm performs its actions.
*
* ExtensionPeriod
is required only when ActionsSuppressor
is specified.
*
ALARM
state. After this time, the composite alarm performs its actions.
* ExtensionPeriod
is required only when ActionsSuppressor
is specified.
*