Interface GetAlarmMuteRuleResponse.Builder

  • Method Details

    • name

      The name of the alarm mute rule.

      Parameters:
      name - The name of the alarm mute rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alarmMuteRuleArn

      GetAlarmMuteRuleResponse.Builder alarmMuteRuleArn(String alarmMuteRuleArn)

      The Amazon Resource Name (ARN) of the alarm mute rule.

      Parameters:
      alarmMuteRuleArn - The Amazon Resource Name (ARN) of the alarm mute rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      GetAlarmMuteRuleResponse.Builder description(String description)

      The description of the alarm mute rule.

      Parameters:
      description - The description of the alarm mute rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rule

      The configuration that defines when and how long alarms are muted.

      Parameters:
      rule - The configuration that defines when and how long alarms are muted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rule

      The configuration that defines when and how long alarms are muted.

      This is a convenience method that creates an instance of the Rule.Builder avoiding the need to create one manually via Rule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rule(Rule).

      Parameters:
      rule - a consumer that will call methods on Rule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • muteTargets

      Specifies which alarms this rule applies to.

      Parameters:
      muteTargets - Specifies which alarms this rule applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • muteTargets

      Specifies which alarms this rule applies to.

      This is a convenience method that creates an instance of the MuteTargets.Builder avoiding the need to create one manually via MuteTargets.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to muteTargets(MuteTargets).

      Parameters:
      muteTargets - a consumer that will call methods on MuteTargets.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • startDate

      The date and time when the mute rule becomes active. If not set, the rule is active immediately.

      Parameters:
      startDate - The date and time when the mute rule becomes active. If not set, the rule is active immediately.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expireDate

      GetAlarmMuteRuleResponse.Builder expireDate(Instant expireDate)

      The date and time when the mute rule expires and is no longer evaluated.

      Parameters:
      expireDate - The date and time when the mute rule expires and is no longer evaluated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the alarm mute rule. Valid values are SCHEDULED, ACTIVE, or EXPIRED.

      Parameters:
      status - The current status of the alarm mute rule. Valid values are SCHEDULED, ACTIVE, or EXPIRED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the alarm mute rule. Valid values are SCHEDULED, ACTIVE, or EXPIRED.

      Parameters:
      status - The current status of the alarm mute rule. Valid values are SCHEDULED, ACTIVE, or EXPIRED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastUpdatedTimestamp

      GetAlarmMuteRuleResponse.Builder lastUpdatedTimestamp(Instant lastUpdatedTimestamp)

      The date and time when the mute rule was last updated.

      Parameters:
      lastUpdatedTimestamp - The date and time when the mute rule was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • muteType

      Indicates whether the mute rule is one-time or recurring. Valid values are ONE_TIME or RECURRING.

      Parameters:
      muteType - Indicates whether the mute rule is one-time or recurring. Valid values are ONE_TIME or RECURRING.
      Returns:
      Returns a reference to this object so that method calls can be chained together.