Interface PutAlarmMuteRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchRequest.Builder,CopyableBuilder<PutAlarmMuteRuleRequest.Builder,,PutAlarmMuteRuleRequest> SdkBuilder<PutAlarmMuteRuleRequest.Builder,,PutAlarmMuteRuleRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutAlarmMuteRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of the alarm mute rule that helps you identify its purpose.expireDate(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.muteTargets(MuteTargets muteTargets) Specifies which alarms this rule applies to.The name of the alarm mute rule.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default PutAlarmMuteRuleRequest.Builderrule(Consumer<Rule.Builder> rule) The configuration that defines when and how long alarms should be muted.The configuration that defines when and how long alarms should be muted.The date and time after which the mute rule takes effect.tags(Collection<Tag> tags) A list of key-value pairs to associate with the alarm mute rule.tags(Consumer<Tag.Builder>... tags) A list of key-value pairs to associate with the alarm mute rule.A list of key-value pairs to associate with the alarm mute rule.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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 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:
-
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 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:
-
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 theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- 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:
-
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
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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutAlarmMuteRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-