Interface PutAlarmMuteRuleRequest.Builder

  • Method Details

    • name

      The name of the alarm mute rule. This name must be unique within your Amazon Web Services account and region.

      Parameters:
      name - The name of the alarm mute rule. This name must be unique within your Amazon Web Services account and region.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      PutAlarmMuteRuleRequest.Builder description(String description)

      A description of the alarm mute rule that helps you identify its purpose.

      Parameters:
      description - A description of the alarm mute rule that helps you identify its purpose.
      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 should be muted.

      Parameters:
      rule - The configuration that defines when and how long alarms should be 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 should be 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

      PutAlarmMuteRuleRequest.Builder muteTargets(MuteTargets 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

      default PutAlarmMuteRuleRequest.Builder muteTargets(Consumer<MuteTargets.Builder> 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:
    • tags

      A list of key-value pairs to associate with the alarm mute rule. You can use tags to categorize and manage your mute rules.

      Parameters:
      tags - A list of key-value pairs to associate with the alarm mute rule. You can use tags to categorize and manage your mute rules.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A list of key-value pairs to associate with the alarm mute rule. You can use tags to categorize and manage your mute rules.

      Parameters:
      tags - A list of key-value pairs to associate with the alarm mute rule. You can use tags to categorize and manage your mute rules.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A list of key-value pairs to associate with the alarm mute rule. You can use tags to categorize and manage your mute rules.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

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

      The date and time after which the mute rule takes effect. If not specified, the mute rule takes effect immediately upon creation and the mutes are applied as per the schedule expression. This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified.

      Parameters:
      startDate - The date and time after which the mute rule takes effect. If not specified, the mute rule takes effect immediately upon creation and the mutes are applied as per the schedule expression. This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expireDate

      PutAlarmMuteRuleRequest.Builder expireDate(Instant expireDate)

      The date and time when the mute rule expires and is no longer evaluated. After this time, the rule status becomes EXPIRED and will no longer mute the targeted alarms. This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified.

      Parameters:
      expireDate - The date and time when the mute rule expires and is no longer evaluated. After this time, the rule status becomes EXPIRED and will no longer mute the targeted alarms. This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      PutAlarmMuteRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.