Interface RecommendationItem.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RecommendationItem.Builder,RecommendationItem>,SdkBuilder<RecommendationItem.Builder,RecommendationItem>,SdkPojo
- Enclosing class:
- RecommendationItem
public static interface RecommendationItem.Builder extends SdkPojo, CopyableBuilder<RecommendationItem.Builder,RecommendationItem>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RecommendationItem.BuilderalreadyImplemented(Boolean alreadyImplemented)Specifies if the recommendation has already been implemented.default RecommendationItem.BuilderdiscoveredAlarm(Consumer<Alarm.Builder> discoveredAlarm)Indicates the previously implemented Amazon CloudWatch alarm discovered by Resilience Hub.RecommendationItem.BuilderdiscoveredAlarm(Alarm discoveredAlarm)Indicates the previously implemented Amazon CloudWatch alarm discovered by Resilience Hub.RecommendationItem.Builderexcluded(Boolean excluded)Indicates if an operational recommendation item is excluded.RecommendationItem.BuilderexcludeReason(String excludeReason)Indicates the reason for excluding an operational recommendation.RecommendationItem.BuilderexcludeReason(ExcludeRecommendationReason excludeReason)Indicates the reason for excluding an operational recommendation.default RecommendationItem.BuilderlatestDiscoveredExperiment(Consumer<Experiment.Builder> latestDiscoveredExperiment)Indicates the experiment created in FIS that was discovered by Resilience Hub, which matches the recommendation.RecommendationItem.BuilderlatestDiscoveredExperiment(Experiment latestDiscoveredExperiment)Indicates the experiment created in FIS that was discovered by Resilience Hub, which matches the recommendation.RecommendationItem.BuilderresourceId(String resourceId)Identifier of the resource.RecommendationItem.BuildertargetAccountId(String targetAccountId)Identifier of the target account.RecommendationItem.BuildertargetRegion(String targetRegion)The target region.-
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
-
alreadyImplemented
RecommendationItem.Builder alreadyImplemented(Boolean alreadyImplemented)
Specifies if the recommendation has already been implemented.
- Parameters:
alreadyImplemented- Specifies if the recommendation has already been implemented.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
discoveredAlarm
RecommendationItem.Builder discoveredAlarm(Alarm discoveredAlarm)
Indicates the previously implemented Amazon CloudWatch alarm discovered by Resilience Hub.
- Parameters:
discoveredAlarm- Indicates the previously implemented Amazon CloudWatch alarm discovered by Resilience Hub.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
discoveredAlarm
default RecommendationItem.Builder discoveredAlarm(Consumer<Alarm.Builder> discoveredAlarm)
Indicates the previously implemented Amazon CloudWatch alarm discovered by Resilience Hub.
This is a convenience method that creates an instance of theAlarm.Builderavoiding the need to create one manually viaAlarm.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todiscoveredAlarm(Alarm).- Parameters:
discoveredAlarm- a consumer that will call methods onAlarm.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
discoveredAlarm(Alarm)
-
excludeReason
RecommendationItem.Builder excludeReason(String excludeReason)
Indicates the reason for excluding an operational recommendation.
- Parameters:
excludeReason- Indicates the reason for excluding an operational recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExcludeRecommendationReason,ExcludeRecommendationReason
-
excludeReason
RecommendationItem.Builder excludeReason(ExcludeRecommendationReason excludeReason)
Indicates the reason for excluding an operational recommendation.
- Parameters:
excludeReason- Indicates the reason for excluding an operational recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExcludeRecommendationReason,ExcludeRecommendationReason
-
excluded
RecommendationItem.Builder excluded(Boolean excluded)
Indicates if an operational recommendation item is excluded.
- Parameters:
excluded- Indicates if an operational recommendation item is excluded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestDiscoveredExperiment
RecommendationItem.Builder latestDiscoveredExperiment(Experiment latestDiscoveredExperiment)
Indicates the experiment created in FIS that was discovered by Resilience Hub, which matches the recommendation.
- Parameters:
latestDiscoveredExperiment- Indicates the experiment created in FIS that was discovered by Resilience Hub, which matches the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestDiscoveredExperiment
default RecommendationItem.Builder latestDiscoveredExperiment(Consumer<Experiment.Builder> latestDiscoveredExperiment)
Indicates the experiment created in FIS that was discovered by Resilience Hub, which matches the recommendation.
This is a convenience method that creates an instance of theExperiment.Builderavoiding the need to create one manually viaExperiment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolatestDiscoveredExperiment(Experiment).- Parameters:
latestDiscoveredExperiment- a consumer that will call methods onExperiment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
latestDiscoveredExperiment(Experiment)
-
resourceId
RecommendationItem.Builder resourceId(String resourceId)
Identifier of the resource.
- Parameters:
resourceId- Identifier of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetAccountId
RecommendationItem.Builder targetAccountId(String targetAccountId)
Identifier of the target account.
- Parameters:
targetAccountId- Identifier of the target account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetRegion
RecommendationItem.Builder targetRegion(String targetRegion)
The target region.
- Parameters:
targetRegion- The target region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-