Class CloudwatchAlarmAction

    • Constructor Detail

      • CloudwatchAlarmAction

        public CloudwatchAlarmAction()
    • Method Detail

      • setRoleArn

        public void setRoleArn​(String roleArn)

        The IAM role that allows access to the CloudWatch alarm.

        Parameters:
        roleArn - The IAM role that allows access to the CloudWatch alarm.
      • getRoleArn

        public String getRoleArn()

        The IAM role that allows access to the CloudWatch alarm.

        Returns:
        The IAM role that allows access to the CloudWatch alarm.
      • withRoleArn

        public CloudwatchAlarmAction withRoleArn​(String roleArn)

        The IAM role that allows access to the CloudWatch alarm.

        Parameters:
        roleArn - The IAM role that allows access to the CloudWatch alarm.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAlarmName

        public void setAlarmName​(String alarmName)

        The CloudWatch alarm name.

        Parameters:
        alarmName - The CloudWatch alarm name.
      • getAlarmName

        public String getAlarmName()

        The CloudWatch alarm name.

        Returns:
        The CloudWatch alarm name.
      • withAlarmName

        public CloudwatchAlarmAction withAlarmName​(String alarmName)

        The CloudWatch alarm name.

        Parameters:
        alarmName - The CloudWatch alarm name.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStateReason

        public void setStateReason​(String stateReason)

        The reason for the alarm change.

        Parameters:
        stateReason - The reason for the alarm change.
      • getStateReason

        public String getStateReason()

        The reason for the alarm change.

        Returns:
        The reason for the alarm change.
      • withStateReason

        public CloudwatchAlarmAction withStateReason​(String stateReason)

        The reason for the alarm change.

        Parameters:
        stateReason - The reason for the alarm change.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStateValue

        public void setStateValue​(String stateValue)

        The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.

        Parameters:
        stateValue - The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
      • getStateValue

        public String getStateValue()

        The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.

        Returns:
        The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
      • withStateValue

        public CloudwatchAlarmAction withStateValue​(String stateValue)

        The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.

        Parameters:
        stateValue - The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object