Interface CreateCapacityProviderRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateCapacityProviderRequest.Builder,,CreateCapacityProviderRequest> LambdaRequest.Builder,SdkBuilder<CreateCapacityProviderRequest.Builder,,CreateCapacityProviderRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateCapacityProviderRequest
-
Method Summary
Modifier and TypeMethodDescriptioncapacityProviderName(String capacityProviderName) The name of the capacity provider.capacityProviderScalingConfig(Consumer<CapacityProviderScalingConfig.Builder> capacityProviderScalingConfig) The scaling configuration that defines how the capacity provider scales compute instances, including maximum vCPU count and scaling policies.capacityProviderScalingConfig(CapacityProviderScalingConfig capacityProviderScalingConfig) The scaling configuration that defines how the capacity provider scales compute instances, including maximum vCPU count and scaling policies.instanceRequirements(Consumer<InstanceRequirements.Builder> instanceRequirements) The instance requirements that specify the compute instance characteristics, including architectures and allowed or excluded instance types.instanceRequirements(InstanceRequirements instanceRequirements) The instance requirements that specify the compute instance characteristics, including architectures and allowed or excluded instance types.The ARN of the KMS key used to encrypt data associated with the capacity provider.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.permissionsConfig(Consumer<CapacityProviderPermissionsConfig.Builder> permissionsConfig) The permissions configuration that specifies the IAM role ARN used by the capacity provider to manage compute resources.permissionsConfig(CapacityProviderPermissionsConfig permissionsConfig) The permissions configuration that specifies the IAM role ARN used by the capacity provider to manage compute resources.A list of tags to associate with the capacity provider.vpcConfig(Consumer<CapacityProviderVpcConfig.Builder> vpcConfig) The VPC configuration for the capacity provider, including subnet IDs and security group IDs where compute instances will be launched.vpcConfig(CapacityProviderVpcConfig vpcConfig) The VPC configuration for the capacity provider, including subnet IDs and security group IDs where compute instances will be launched.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
capacityProviderName
The name of the capacity provider.
- Parameters:
capacityProviderName- The name of the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
The VPC configuration for the capacity provider, including subnet IDs and security group IDs where compute instances will be launched.
- Parameters:
vpcConfig- The VPC configuration for the capacity provider, including subnet IDs and security group IDs where compute instances will be launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
default CreateCapacityProviderRequest.Builder vpcConfig(Consumer<CapacityProviderVpcConfig.Builder> vpcConfig) The VPC configuration for the capacity provider, including subnet IDs and security group IDs where compute instances will be launched.
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:
-
permissionsConfig
CreateCapacityProviderRequest.Builder permissionsConfig(CapacityProviderPermissionsConfig permissionsConfig) The permissions configuration that specifies the IAM role ARN used by the capacity provider to manage compute resources.
- Parameters:
permissionsConfig- The permissions configuration that specifies the IAM role ARN used by the capacity provider to manage compute resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissionsConfig
default CreateCapacityProviderRequest.Builder permissionsConfig(Consumer<CapacityProviderPermissionsConfig.Builder> permissionsConfig) The permissions configuration that specifies the IAM role ARN used by the capacity provider to manage compute resources.
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:
-
instanceRequirements
CreateCapacityProviderRequest.Builder instanceRequirements(InstanceRequirements instanceRequirements) The instance requirements that specify the compute instance characteristics, including architectures and allowed or excluded instance types.
- Parameters:
instanceRequirements- The instance requirements that specify the compute instance characteristics, including architectures and allowed or excluded instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRequirements
default CreateCapacityProviderRequest.Builder instanceRequirements(Consumer<InstanceRequirements.Builder> instanceRequirements) The instance requirements that specify the compute instance characteristics, including architectures and allowed or excluded instance types.
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:
-
capacityProviderScalingConfig
CreateCapacityProviderRequest.Builder capacityProviderScalingConfig(CapacityProviderScalingConfig capacityProviderScalingConfig) The scaling configuration that defines how the capacity provider scales compute instances, including maximum vCPU count and scaling policies.
- Parameters:
capacityProviderScalingConfig- The scaling configuration that defines how the capacity provider scales compute instances, including maximum vCPU count and scaling policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviderScalingConfig
default CreateCapacityProviderRequest.Builder capacityProviderScalingConfig(Consumer<CapacityProviderScalingConfig.Builder> capacityProviderScalingConfig) The scaling configuration that defines how the capacity provider scales compute instances, including maximum vCPU count and scaling policies.
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:
-
kmsKeyArn
The ARN of the KMS key used to encrypt data associated with the capacity provider.
- Parameters:
kmsKeyArn- The ARN of the KMS key used to encrypt data associated with the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to associate with the capacity provider.
- Parameters:
tags- A list of tags to associate with the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateCapacityProviderRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateCapacityProviderRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-