Interface PutAlarmMuteRuleRequest.Builder

    • Method Detail

      • name

        PutAlarmMuteRuleRequest.Builder name​(String 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

        PutAlarmMuteRuleRequest.Builder rule​(Rule 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.
      • 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.
      • tags

        PutAlarmMuteRuleRequest.Builder tags​(Collection<Tag> 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

        PutAlarmMuteRuleRequest.Builder tags​(Tag... 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

        PutAlarmMuteRuleRequest.Builder tags​(Consumer<Tag.Builder>... 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).

        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:
        #tags(java.util.Collection)
      • startDate

        PutAlarmMuteRuleRequest.Builder startDate​(Instant 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.