Interface GetAlarmMuteRuleResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchResponse.Builder,CopyableBuilder<GetAlarmMuteRuleResponse.Builder,GetAlarmMuteRuleResponse>,SdkBuilder<GetAlarmMuteRuleResponse.Builder,GetAlarmMuteRuleResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetAlarmMuteRuleResponse
@Mutable @NotThreadSafe public static interface GetAlarmMuteRuleResponse.Builder extends CloudWatchResponse.Builder, SdkPojo, CopyableBuilder<GetAlarmMuteRuleResponse.Builder,GetAlarmMuteRuleResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetAlarmMuteRuleResponse.BuilderalarmMuteRuleArn(String alarmMuteRuleArn)The Amazon Resource Name (ARN) of the alarm mute rule.GetAlarmMuteRuleResponse.Builderdescription(String description)The description of the alarm mute rule.GetAlarmMuteRuleResponse.BuilderexpireDate(Instant expireDate)The date and time when the mute rule expires and is no longer evaluated.GetAlarmMuteRuleResponse.BuilderlastUpdatedTimestamp(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.GetAlarmMuteRuleResponse.BuildermuteTargets(MuteTargets muteTargets)Specifies which alarms this rule applies to.GetAlarmMuteRuleResponse.BuildermuteType(String muteType)Indicates whether the mute rule is one-time or recurring.GetAlarmMuteRuleResponse.Buildername(String name)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.GetAlarmMuteRuleResponse.Builderrule(Rule rule)The configuration that defines when and how long alarms are muted.GetAlarmMuteRuleResponse.BuilderstartDate(Instant startDate)The date and time when the mute rule becomes active.GetAlarmMuteRuleResponse.Builderstatus(String status)The current status of the alarm mute rule.GetAlarmMuteRuleResponse.Builderstatus(AlarmMuteRuleStatus status)The current status of the alarm mute rule.-
Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
name
GetAlarmMuteRuleResponse.Builder name(String 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
GetAlarmMuteRuleResponse.Builder alarmMuteRuleArn(String 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
GetAlarmMuteRuleResponse.Builder description(String 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
GetAlarmMuteRuleResponse.Builder rule(Rule 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
default GetAlarmMuteRuleResponse.Builder rule(Consumer<Rule.Builder> 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:
rule(Rule)
-
muteTargets
GetAlarmMuteRuleResponse.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 GetAlarmMuteRuleResponse.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)
-
startDate
GetAlarmMuteRuleResponse.Builder startDate(Instant 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
GetAlarmMuteRuleResponse.Builder expireDate(Instant 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
GetAlarmMuteRuleResponse.Builder status(String 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:
AlarmMuteRuleStatus,AlarmMuteRuleStatus
-
status
GetAlarmMuteRuleResponse.Builder status(AlarmMuteRuleStatus 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:
AlarmMuteRuleStatus,AlarmMuteRuleStatus
-
lastUpdatedTimestamp
GetAlarmMuteRuleResponse.Builder lastUpdatedTimestamp(Instant 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
GetAlarmMuteRuleResponse.Builder muteType(String 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.
-
-