Interface ServerStrategy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServerStrategy.Builder,
,ServerStrategy> SdkBuilder<ServerStrategy.Builder,
,ServerStrategy> SdkPojo
- Enclosing class:
ServerStrategy
@Mutable
@NotThreadSafe
public static interface ServerStrategy.Builder
extends SdkPojo, CopyableBuilder<ServerStrategy.Builder,ServerStrategy>
-
Method Summary
Modifier and TypeMethodDescriptionisPreferred
(Boolean isPreferred) Set to true if the recommendation is set as preferred.numberOfApplicationComponents
(Integer numberOfApplicationComponents) The number of application components with this strategy recommendation running on the server.default ServerStrategy.Builder
recommendation
(Consumer<RecommendationSet.Builder> recommendation) Strategy recommendation for the server.recommendation
(RecommendationSet recommendation) Strategy recommendation for the server.The recommendation status of the strategy for the server.status
(StrategyRecommendation status) The recommendation status of the strategy for the server.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
-
isPreferred
Set to true if the recommendation is set as preferred.
- Parameters:
isPreferred
- Set to true if the recommendation is set as preferred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numberOfApplicationComponents
The number of application components with this strategy recommendation running on the server.
- Parameters:
numberOfApplicationComponents
- The number of application components with this strategy recommendation running on the server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendation
Strategy recommendation for the server.
- Parameters:
recommendation
- Strategy recommendation for the server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendation
Strategy recommendation for the server.
This is a convenience method that creates an instance of theRecommendationSet.Builder
avoiding the need to create one manually viaRecommendationSet.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecommendation(RecommendationSet)
.- Parameters:
recommendation
- a consumer that will call methods onRecommendationSet.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The recommendation status of the strategy for the server.
- Parameters:
status
- The recommendation status of the strategy for the server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The recommendation status of the strategy for the server.
- Parameters:
status
- The recommendation status of the strategy for the server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-