Interface DesiredWeightAndCapacity.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DesiredWeightAndCapacity.Builder,,DesiredWeightAndCapacity> SdkBuilder<DesiredWeightAndCapacity.Builder,,DesiredWeightAndCapacity> SdkPojo
- Enclosing class:
DesiredWeightAndCapacity
public static interface DesiredWeightAndCapacity.Builder
extends SdkPojo, CopyableBuilder<DesiredWeightAndCapacity.Builder,DesiredWeightAndCapacity>
-
Method Summary
Modifier and TypeMethodDescriptiondesiredInstanceCount(Integer desiredInstanceCount) The variant's capacity.desiredWeight(Float desiredWeight) The variant's weight.default DesiredWeightAndCapacity.BuilderserverlessUpdateConfig(Consumer<ProductionVariantServerlessUpdateConfig.Builder> serverlessUpdateConfig) Specifies the serverless update concurrency configuration for an endpoint variant.serverlessUpdateConfig(ProductionVariantServerlessUpdateConfig serverlessUpdateConfig) Specifies the serverless update concurrency configuration for an endpoint variant.variantName(String variantName) The name of the variant to update.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
variantName
The name of the variant to update.
- Parameters:
variantName- The name of the variant to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
desiredWeight
The variant's weight.
- Parameters:
desiredWeight- The variant's weight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
desiredInstanceCount
The variant's capacity.
- Parameters:
desiredInstanceCount- The variant's capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverlessUpdateConfig
DesiredWeightAndCapacity.Builder serverlessUpdateConfig(ProductionVariantServerlessUpdateConfig serverlessUpdateConfig) Specifies the serverless update concurrency configuration for an endpoint variant.
- Parameters:
serverlessUpdateConfig- Specifies the serverless update concurrency configuration for an endpoint variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverlessUpdateConfig
default DesiredWeightAndCapacity.Builder serverlessUpdateConfig(Consumer<ProductionVariantServerlessUpdateConfig.Builder> serverlessUpdateConfig) Specifies the serverless update concurrency configuration for an endpoint variant.
This is a convenience method that creates an instance of theProductionVariantServerlessUpdateConfig.Builderavoiding the need to create one manually viaProductionVariantServerlessUpdateConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserverlessUpdateConfig(ProductionVariantServerlessUpdateConfig).- Parameters:
serverlessUpdateConfig- a consumer that will call methods onProductionVariantServerlessUpdateConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-