Interface GetAlarmMuteRuleResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchResponse.Builder,CopyableBuilder<GetAlarmMuteRuleResponse.Builder,,GetAlarmMuteRuleResponse> SdkBuilder<GetAlarmMuteRuleResponse.Builder,,GetAlarmMuteRuleResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetAlarmMuteRuleResponse
-
Method Summary
Modifier and TypeMethodDescriptionalarmMuteRuleArn(String alarmMuteRuleArn) The Amazon Resource Name (ARN) of the alarm mute rule.description(String description) The description of the alarm mute rule.expireDate(Instant expireDate) The date and time when the mute rule expires and is no longer evaluated.lastUpdatedTimestamp(Instant lastUpdatedTimestamp) The date and time when the mute rule was last updated.default GetAlarmMuteRuleResponse.BuildermuteTargets(Consumer<MuteTargets.Builder> muteTargets) Specifies which alarms this rule applies to.muteTargets(MuteTargets muteTargets) Specifies which alarms this rule applies to.Indicates whether the mute rule is one-time or recurring.The name of the alarm mute rule.default GetAlarmMuteRuleResponse.Builderrule(Consumer<Rule.Builder> rule) The configuration that defines when and how long alarms are muted.The configuration that defines when and how long alarms are muted.The date and time when the mute rule becomes active.The current status of the alarm mute rule.status(AlarmMuteRuleStatus status) The current status of the alarm mute rule.Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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
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
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 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:
-
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
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, orEXPIRED.- Parameters:
status- The current status of the alarm mute rule. Valid values areSCHEDULED,ACTIVE, orEXPIRED.- 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, orEXPIRED.- Parameters:
status- The current status of the alarm mute rule. Valid values areSCHEDULED,ACTIVE, orEXPIRED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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_TIMEorRECURRING.- Parameters:
muteType- Indicates whether the mute rule is one-time or recurring. Valid values areONE_TIMEorRECURRING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-