Interface RightsizingRecommendation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RightsizingRecommendation.Builder,
,RightsizingRecommendation> SdkBuilder<RightsizingRecommendation.Builder,
,RightsizingRecommendation> SdkPojo
- Enclosing class:
RightsizingRecommendation
-
Method Summary
Modifier and TypeMethodDescriptionThe account that this recommendation is for.currentInstance
(Consumer<CurrentInstance.Builder> currentInstance) Context regarding the current instance.currentInstance
(CurrentInstance currentInstance) Context regarding the current instance.findingReasonCodes
(Collection<FindingReasonCode> findingReasonCodes) The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).findingReasonCodes
(FindingReasonCode... findingReasonCodes) The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).findingReasonCodesWithStrings
(String... findingReasonCodes) The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).findingReasonCodesWithStrings
(Collection<String> findingReasonCodes) The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).modifyRecommendationDetail
(Consumer<ModifyRecommendationDetail.Builder> modifyRecommendationDetail) The details for the modification recommendations.modifyRecommendationDetail
(ModifyRecommendationDetail modifyRecommendationDetail) The details for the modification recommendations.rightsizingType
(String rightsizingType) A recommendation to either terminate or modify the resource.rightsizingType
(RightsizingType rightsizingType) A recommendation to either terminate or modify the resource.terminateRecommendationDetail
(Consumer<TerminateRecommendationDetail.Builder> terminateRecommendationDetail) The details for termination recommendations.terminateRecommendationDetail
(TerminateRecommendationDetail terminateRecommendationDetail) The details for termination recommendations.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, sdkFields
-
Method Details
-
accountId
The account that this recommendation is for.
- Parameters:
accountId
- The account that this recommendation is for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentInstance
Context regarding the current instance.
- Parameters:
currentInstance
- Context regarding the current instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentInstance
default RightsizingRecommendation.Builder currentInstance(Consumer<CurrentInstance.Builder> currentInstance) Context regarding the current instance.
This is a convenience method that creates an instance of theCurrentInstance.Builder
avoiding the need to create one manually viaCurrentInstance.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocurrentInstance(CurrentInstance)
.- Parameters:
currentInstance
- a consumer that will call methods onCurrentInstance.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rightsizingType
A recommendation to either terminate or modify the resource.
- Parameters:
rightsizingType
- A recommendation to either terminate or modify the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rightsizingType
A recommendation to either terminate or modify the resource.
- Parameters:
rightsizingType
- A recommendation to either terminate or modify the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modifyRecommendationDetail
RightsizingRecommendation.Builder modifyRecommendationDetail(ModifyRecommendationDetail modifyRecommendationDetail) The details for the modification recommendations.
- Parameters:
modifyRecommendationDetail
- The details for the modification recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modifyRecommendationDetail
default RightsizingRecommendation.Builder modifyRecommendationDetail(Consumer<ModifyRecommendationDetail.Builder> modifyRecommendationDetail) The details for the modification recommendations.
This is a convenience method that creates an instance of theModifyRecommendationDetail.Builder
avoiding the need to create one manually viaModifyRecommendationDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodifyRecommendationDetail(ModifyRecommendationDetail)
.- Parameters:
modifyRecommendationDetail
- a consumer that will call methods onModifyRecommendationDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
terminateRecommendationDetail
RightsizingRecommendation.Builder terminateRecommendationDetail(TerminateRecommendationDetail terminateRecommendationDetail) The details for termination recommendations.
- Parameters:
terminateRecommendationDetail
- The details for termination recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terminateRecommendationDetail
default RightsizingRecommendation.Builder terminateRecommendationDetail(Consumer<TerminateRecommendationDetail.Builder> terminateRecommendationDetail) The details for termination recommendations.
This is a convenience method that creates an instance of theTerminateRecommendationDetail.Builder
avoiding the need to create one manually viaTerminateRecommendationDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toterminateRecommendationDetail(TerminateRecommendationDetail)
.- Parameters:
terminateRecommendationDetail
- a consumer that will call methods onTerminateRecommendationDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
findingReasonCodesWithStrings
RightsizingRecommendation.Builder findingReasonCodesWithStrings(Collection<String> findingReasonCodes) The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).
- Parameters:
findingReasonCodes
- The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingReasonCodesWithStrings
The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).
- Parameters:
findingReasonCodes
- The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingReasonCodes
RightsizingRecommendation.Builder findingReasonCodes(Collection<FindingReasonCode> findingReasonCodes) The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).
- Parameters:
findingReasonCodes
- The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingReasonCodes
The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).
- Parameters:
findingReasonCodes
- The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-