Interface EcsService.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EcsService.Builder,EcsService>,SdkBuilder<EcsService.Builder,EcsService>,SdkPojo
- Enclosing class:
- EcsService
public static interface EcsService.Builder extends SdkPojo, CopyableBuilder<EcsService.Builder,EcsService>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EcsService.Builderconfiguration(Consumer<EcsServiceConfiguration.Builder> configuration)The ECS service configuration used for recommendations.EcsService.Builderconfiguration(EcsServiceConfiguration configuration)The ECS service configuration used for recommendations.default EcsService.BuildercostCalculation(Consumer<ResourceCostCalculation.Builder> costCalculation)Cost impact of the recommendation.EcsService.BuildercostCalculation(ResourceCostCalculation costCalculation)Cost impact of the recommendation.-
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 Detail
-
configuration
EcsService.Builder configuration(EcsServiceConfiguration configuration)
The ECS service configuration used for recommendations.
- Parameters:
configuration- The ECS service configuration used for recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default EcsService.Builder configuration(Consumer<EcsServiceConfiguration.Builder> configuration)
The ECS service configuration used for recommendations.
This is a convenience method that creates an instance of theEcsServiceConfiguration.Builderavoiding the need to create one manually viaEcsServiceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfiguration(EcsServiceConfiguration).- Parameters:
configuration- a consumer that will call methods onEcsServiceConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
configuration(EcsServiceConfiguration)
-
costCalculation
EcsService.Builder costCalculation(ResourceCostCalculation costCalculation)
Cost impact of the recommendation.
- Parameters:
costCalculation- Cost impact of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costCalculation
default EcsService.Builder costCalculation(Consumer<ResourceCostCalculation.Builder> costCalculation)
Cost impact of the recommendation.
This is a convenience method that creates an instance of theResourceCostCalculation.Builderavoiding the need to create one manually viaResourceCostCalculation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocostCalculation(ResourceCostCalculation).- Parameters:
costCalculation- a consumer that will call methods onResourceCostCalculation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
costCalculation(ResourceCostCalculation)
-
-