Interface RightsizingRecommendation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RightsizingRecommendation.Builder,RightsizingRecommendation>,SdkBuilder<RightsizingRecommendation.Builder,RightsizingRecommendation>,SdkPojo
- Enclosing class:
- RightsizingRecommendation
public static interface RightsizingRecommendation.Builder extends SdkPojo, CopyableBuilder<RightsizingRecommendation.Builder,RightsizingRecommendation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RightsizingRecommendation.BuilderaccountId(String accountId)The account that this recommendation is for.default RightsizingRecommendation.BuildercurrentInstance(Consumer<CurrentInstance.Builder> currentInstance)Context regarding the current instance.RightsizingRecommendation.BuildercurrentInstance(CurrentInstance currentInstance)Context regarding the current instance.RightsizingRecommendation.BuilderfindingReasonCodes(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).RightsizingRecommendation.BuilderfindingReasonCodes(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).RightsizingRecommendation.BuilderfindingReasonCodesWithStrings(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).RightsizingRecommendation.BuilderfindingReasonCodesWithStrings(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).default RightsizingRecommendation.BuildermodifyRecommendationDetail(Consumer<ModifyRecommendationDetail.Builder> modifyRecommendationDetail)The details for the modification recommendations.RightsizingRecommendation.BuildermodifyRecommendationDetail(ModifyRecommendationDetail modifyRecommendationDetail)The details for the modification recommendations.RightsizingRecommendation.BuilderrightsizingType(String rightsizingType)A recommendation to either terminate or modify the resource.RightsizingRecommendation.BuilderrightsizingType(RightsizingType rightsizingType)A recommendation to either terminate or modify the resource.default RightsizingRecommendation.BuilderterminateRecommendationDetail(Consumer<TerminateRecommendationDetail.Builder> terminateRecommendationDetail)The details for termination recommendations.RightsizingRecommendation.BuilderterminateRecommendationDetail(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 Detail
-
accountId
RightsizingRecommendation.Builder accountId(String 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
RightsizingRecommendation.Builder currentInstance(CurrentInstance 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.Builderavoiding the need to create one manually viaCurrentInstance.builder().When the
Consumercompletes,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:
currentInstance(CurrentInstance)
-
rightsizingType
RightsizingRecommendation.Builder rightsizingType(String 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,RightsizingType
-
rightsizingType
RightsizingRecommendation.Builder rightsizingType(RightsizingType 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,RightsizingType
-
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.Builderavoiding the need to create one manually viaModifyRecommendationDetail.builder().When the
Consumercompletes,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:
modifyRecommendationDetail(ModifyRecommendationDetail)
-
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.Builderavoiding the need to create one manually viaTerminateRecommendationDetail.builder().When the
Consumercompletes,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:
terminateRecommendationDetail(TerminateRecommendationDetail)
-
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
RightsizingRecommendation.Builder 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).
- 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
RightsizingRecommendation.Builder 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).
- 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.
-
-