Interface CapacityProvider.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CapacityProvider.Builder,CapacityProvider>,SdkBuilder<CapacityProvider.Builder,CapacityProvider>,SdkPojo
- Enclosing class:
- CapacityProvider
@Mutable @NotThreadSafe public static interface CapacityProvider.Builder extends SdkPojo, CopyableBuilder<CapacityProvider.Builder,CapacityProvider>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CapacityProvider.BuildercapacityProviderArn(String capacityProviderArn)The Amazon Resource Name (ARN) of the capacity provider.default CapacityProvider.BuildercapacityProviderScalingConfig(Consumer<CapacityProviderScalingConfig.Builder> capacityProviderScalingConfig)The scaling configuration for the capacity provider.CapacityProvider.BuildercapacityProviderScalingConfig(CapacityProviderScalingConfig capacityProviderScalingConfig)The scaling configuration for the capacity provider.default CapacityProvider.BuilderinstanceRequirements(Consumer<InstanceRequirements.Builder> instanceRequirements)The instance requirements for compute resources managed by the capacity provider.CapacityProvider.BuilderinstanceRequirements(InstanceRequirements instanceRequirements)The instance requirements for compute resources managed by the capacity provider.CapacityProvider.BuilderkmsKeyArn(String kmsKeyArn)The ARN of the KMS key used to encrypt the capacity provider's resources.CapacityProvider.BuilderlastModified(String lastModified)The date and time when the capacity provider was last modified.default CapacityProvider.BuilderpermissionsConfig(Consumer<CapacityProviderPermissionsConfig.Builder> permissionsConfig)The permissions configuration for the capacity provider.CapacityProvider.BuilderpermissionsConfig(CapacityProviderPermissionsConfig permissionsConfig)The permissions configuration for the capacity provider.CapacityProvider.Builderstate(String state)The current state of the capacity provider.CapacityProvider.Builderstate(CapacityProviderState state)The current state of the capacity provider.default CapacityProvider.BuildervpcConfig(Consumer<CapacityProviderVpcConfig.Builder> vpcConfig)The VPC configuration for the capacity provider.CapacityProvider.BuildervpcConfig(CapacityProviderVpcConfig vpcConfig)The VPC configuration for the capacity provider.-
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
-
capacityProviderArn
CapacityProvider.Builder capacityProviderArn(String capacityProviderArn)
The Amazon Resource Name (ARN) of the capacity provider.
- Parameters:
capacityProviderArn- The Amazon Resource Name (ARN) of the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
CapacityProvider.Builder state(String state)
The current state of the capacity provider.
- Parameters:
state- The current state of the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CapacityProviderState,CapacityProviderState
-
state
CapacityProvider.Builder state(CapacityProviderState state)
The current state of the capacity provider.
- Parameters:
state- The current state of the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CapacityProviderState,CapacityProviderState
-
vpcConfig
CapacityProvider.Builder vpcConfig(CapacityProviderVpcConfig vpcConfig)
The VPC configuration for the capacity provider.
- Parameters:
vpcConfig- The VPC configuration for the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
default CapacityProvider.Builder vpcConfig(Consumer<CapacityProviderVpcConfig.Builder> vpcConfig)
The VPC configuration for the capacity provider.
This is a convenience method that creates an instance of theCapacityProviderVpcConfig.Builderavoiding the need to create one manually viaCapacityProviderVpcConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovpcConfig(CapacityProviderVpcConfig).- Parameters:
vpcConfig- a consumer that will call methods onCapacityProviderVpcConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
vpcConfig(CapacityProviderVpcConfig)
-
permissionsConfig
CapacityProvider.Builder permissionsConfig(CapacityProviderPermissionsConfig permissionsConfig)
The permissions configuration for the capacity provider.
- Parameters:
permissionsConfig- The permissions configuration for the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissionsConfig
default CapacityProvider.Builder permissionsConfig(Consumer<CapacityProviderPermissionsConfig.Builder> permissionsConfig)
The permissions configuration for the capacity provider.
This is a convenience method that creates an instance of theCapacityProviderPermissionsConfig.Builderavoiding the need to create one manually viaCapacityProviderPermissionsConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topermissionsConfig(CapacityProviderPermissionsConfig).- Parameters:
permissionsConfig- a consumer that will call methods onCapacityProviderPermissionsConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
permissionsConfig(CapacityProviderPermissionsConfig)
-
instanceRequirements
CapacityProvider.Builder instanceRequirements(InstanceRequirements instanceRequirements)
The instance requirements for compute resources managed by the capacity provider.
- Parameters:
instanceRequirements- The instance requirements for compute resources managed by the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRequirements
default CapacityProvider.Builder instanceRequirements(Consumer<InstanceRequirements.Builder> instanceRequirements)
The instance requirements for compute resources managed by the capacity provider.
This is a convenience method that creates an instance of theInstanceRequirements.Builderavoiding the need to create one manually viaInstanceRequirements.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceRequirements(InstanceRequirements).- Parameters:
instanceRequirements- a consumer that will call methods onInstanceRequirements.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
instanceRequirements(InstanceRequirements)
-
capacityProviderScalingConfig
CapacityProvider.Builder capacityProviderScalingConfig(CapacityProviderScalingConfig capacityProviderScalingConfig)
The scaling configuration for the capacity provider.
- Parameters:
capacityProviderScalingConfig- The scaling configuration for the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviderScalingConfig
default CapacityProvider.Builder capacityProviderScalingConfig(Consumer<CapacityProviderScalingConfig.Builder> capacityProviderScalingConfig)
The scaling configuration for the capacity provider.
This is a convenience method that creates an instance of theCapacityProviderScalingConfig.Builderavoiding the need to create one manually viaCapacityProviderScalingConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocapacityProviderScalingConfig(CapacityProviderScalingConfig).- Parameters:
capacityProviderScalingConfig- a consumer that will call methods onCapacityProviderScalingConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
capacityProviderScalingConfig(CapacityProviderScalingConfig)
-
kmsKeyArn
CapacityProvider.Builder kmsKeyArn(String kmsKeyArn)
The ARN of the KMS key used to encrypt the capacity provider's resources.
- Parameters:
kmsKeyArn- The ARN of the KMS key used to encrypt the capacity provider's resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModified
CapacityProvider.Builder lastModified(String lastModified)
The date and time when the capacity provider was last modified.
- Parameters:
lastModified- The date and time when the capacity provider was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-