Interface TargetInstance.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TargetInstance.Builder,TargetInstance>,SdkBuilder<TargetInstance.Builder,TargetInstance>,SdkPojo
- Enclosing class:
- TargetInstance
public static interface TargetInstance.Builder extends SdkPojo, CopyableBuilder<TargetInstance.Builder,TargetInstance>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TargetInstance.BuildercurrencyCode(String currencyCode)The currency code that Amazon Web Services used to calculate the costs for this instance.TargetInstance.BuilderdefaultTargetInstance(Boolean defaultTargetInstance)Determines whether this recommendation is the defaulted Amazon Web Services recommendation.TargetInstance.BuilderestimatedMonthlyCost(String estimatedMonthlyCost)The expected cost to operate this instance type on a monthly basis.TargetInstance.BuilderestimatedMonthlySavings(String estimatedMonthlySavings)The estimated savings that result from modification, on a monthly basis.default TargetInstance.BuilderexpectedResourceUtilization(Consumer<ResourceUtilization.Builder> expectedResourceUtilization)The expected utilization metrics for target instance type.TargetInstance.BuilderexpectedResourceUtilization(ResourceUtilization expectedResourceUtilization)The expected utilization metrics for target instance type.TargetInstance.BuilderplatformDifferences(Collection<PlatformDifference> platformDifferences)Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.TargetInstance.BuilderplatformDifferences(PlatformDifference... platformDifferences)Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.TargetInstance.BuilderplatformDifferencesWithStrings(String... platformDifferences)Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.TargetInstance.BuilderplatformDifferencesWithStrings(Collection<String> platformDifferences)Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.default TargetInstance.BuilderresourceDetails(Consumer<ResourceDetails.Builder> resourceDetails)Details on the target instance type.TargetInstance.BuilderresourceDetails(ResourceDetails resourceDetails)Details on the target instance type.-
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
-
estimatedMonthlyCost
TargetInstance.Builder estimatedMonthlyCost(String estimatedMonthlyCost)
The expected cost to operate this instance type on a monthly basis.
- Parameters:
estimatedMonthlyCost- The expected cost to operate this instance type on a monthly basis.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlySavings
TargetInstance.Builder estimatedMonthlySavings(String estimatedMonthlySavings)
The estimated savings that result from modification, on a monthly basis.
- Parameters:
estimatedMonthlySavings- The estimated savings that result from modification, on a monthly basis.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currencyCode
TargetInstance.Builder currencyCode(String currencyCode)
The currency code that Amazon Web Services used to calculate the costs for this instance.
- Parameters:
currencyCode- The currency code that Amazon Web Services used to calculate the costs for this instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultTargetInstance
TargetInstance.Builder defaultTargetInstance(Boolean defaultTargetInstance)
Determines whether this recommendation is the defaulted Amazon Web Services recommendation.
- Parameters:
defaultTargetInstance- Determines whether this recommendation is the defaulted Amazon Web Services recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceDetails
TargetInstance.Builder resourceDetails(ResourceDetails resourceDetails)
Details on the target instance type.
- Parameters:
resourceDetails- Details on the target instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceDetails
default TargetInstance.Builder resourceDetails(Consumer<ResourceDetails.Builder> resourceDetails)
Details on the target instance type.
This is a convenience method that creates an instance of theResourceDetails.Builderavoiding the need to create one manually viaResourceDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceDetails(ResourceDetails).- Parameters:
resourceDetails- a consumer that will call methods onResourceDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resourceDetails(ResourceDetails)
-
expectedResourceUtilization
TargetInstance.Builder expectedResourceUtilization(ResourceUtilization expectedResourceUtilization)
The expected utilization metrics for target instance type.
- Parameters:
expectedResourceUtilization- The expected utilization metrics for target instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedResourceUtilization
default TargetInstance.Builder expectedResourceUtilization(Consumer<ResourceUtilization.Builder> expectedResourceUtilization)
The expected utilization metrics for target instance type.
This is a convenience method that creates an instance of theResourceUtilization.Builderavoiding the need to create one manually viaResourceUtilization.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexpectedResourceUtilization(ResourceUtilization).- Parameters:
expectedResourceUtilization- a consumer that will call methods onResourceUtilization.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
expectedResourceUtilization(ResourceUtilization)
-
platformDifferencesWithStrings
TargetInstance.Builder platformDifferencesWithStrings(Collection<String> platformDifferences)
Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.
- Parameters:
platformDifferences- Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformDifferencesWithStrings
TargetInstance.Builder platformDifferencesWithStrings(String... platformDifferences)
Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.
- Parameters:
platformDifferences- Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformDifferences
TargetInstance.Builder platformDifferences(Collection<PlatformDifference> platformDifferences)
Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.
- Parameters:
platformDifferences- Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformDifferences
TargetInstance.Builder platformDifferences(PlatformDifference... platformDifferences)
Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.
- Parameters:
platformDifferences- Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-