Interface PutAlarmMuteRuleRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchRequest.Builder,CopyableBuilder<PutAlarmMuteRuleRequest.Builder,PutAlarmMuteRuleRequest>,SdkBuilder<PutAlarmMuteRuleRequest.Builder,PutAlarmMuteRuleRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutAlarmMuteRuleRequest
@Mutable @NotThreadSafe public static interface PutAlarmMuteRuleRequest.Builder extends CloudWatchRequest.Builder, SdkPojo, CopyableBuilder<PutAlarmMuteRuleRequest.Builder,PutAlarmMuteRuleRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PutAlarmMuteRuleRequest.Builderdescription(String description)A description of the alarm mute rule that helps you identify its purpose.PutAlarmMuteRuleRequest.BuilderexpireDate(Instant expireDate)The date and time when the mute rule expires and is no longer evaluated.default PutAlarmMuteRuleRequest.BuildermuteTargets(Consumer<MuteTargets.Builder> muteTargets)Specifies which alarms this rule applies to.PutAlarmMuteRuleRequest.BuildermuteTargets(MuteTargets muteTargets)Specifies which alarms this rule applies to.PutAlarmMuteRuleRequest.Buildername(String name)The name of the alarm mute rule.PutAlarmMuteRuleRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutAlarmMuteRuleRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default PutAlarmMuteRuleRequest.Builderrule(Consumer<Rule.Builder> rule)The configuration that defines when and how long alarms should be muted.PutAlarmMuteRuleRequest.Builderrule(Rule rule)The configuration that defines when and how long alarms should be muted.PutAlarmMuteRuleRequest.BuilderstartDate(Instant startDate)The date and time after which the mute rule takes effect.PutAlarmMuteRuleRequest.Buildertags(Collection<Tag> tags)A list of key-value pairs to associate with the alarm mute rule.PutAlarmMuteRuleRequest.Buildertags(Consumer<Tag.Builder>... tags)A list of key-value pairs to associate with the alarm mute rule.PutAlarmMuteRuleRequest.Buildertags(Tag... tags)A list of key-value pairs to associate with the alarm mute rule.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
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.
-
rule
default PutAlarmMuteRuleRequest.Builder rule(Consumer<Rule.Builder> rule)
The configuration that defines when and how long alarms should be muted.
This is a convenience method that creates an instance of theRule.Builderavoiding the need to create one manually viaRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torule(Rule).- Parameters:
rule- a consumer that will call methods onRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
rule(Rule)
-
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 theMuteTargets.Builderavoiding the need to create one manually viaMuteTargets.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomuteTargets(MuteTargets).- Parameters:
muteTargets- a consumer that will call methods onMuteTargets.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
muteTargets(MuteTargets)
-
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 theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.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.
-
overrideConfiguration
PutAlarmMuteRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutAlarmMuteRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-