Interface RecommendationItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RecommendationItem.Builder,
,RecommendationItem> SdkBuilder<RecommendationItem.Builder,
,RecommendationItem> SdkPojo
- Enclosing class:
RecommendationItem
-
Method Summary
Modifier and TypeMethodDescriptionalreadyImplemented
(Boolean alreadyImplemented) Specifies if the recommendation has already been implemented.default RecommendationItem.Builder
discoveredAlarm
(Consumer<Alarm.Builder> discoveredAlarm) Indicates the previously implemented Amazon CloudWatch alarm discovered by Resilience Hub.discoveredAlarm
(Alarm discoveredAlarm) Indicates the previously implemented Amazon CloudWatch alarm discovered by Resilience Hub.Indicates if an operational recommendation item is excluded.excludeReason
(String excludeReason) Indicates the reason for excluding an operational recommendation.excludeReason
(ExcludeRecommendationReason excludeReason) Indicates the reason for excluding an operational recommendation.default RecommendationItem.Builder
latestDiscoveredExperiment
(Consumer<Experiment.Builder> latestDiscoveredExperiment) Indicates the experiment created in FIS that was discovered by Resilience Hub, which matches the recommendation.latestDiscoveredExperiment
(Experiment latestDiscoveredExperiment) Indicates the experiment created in FIS that was discovered by Resilience Hub, which matches the recommendation.resourceId
(String resourceId) Identifier of the resource.targetAccountId
(String targetAccountId) Identifier of the target account.targetRegion
(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 Details
-
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
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
Indicates the previously implemented Amazon CloudWatch alarm discovered by Resilience Hub.
This is a convenience method that creates an instance of theAlarm.Builder
avoiding the need to create one manually viaAlarm.builder()
.When the
Consumer
completes,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:
-
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:
-
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:
-
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
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.Builder
avoiding the need to create one manually viaExperiment.builder()
.When the
Consumer
completes,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:
-
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
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
The target region.
- Parameters:
targetRegion
- The target region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-