Interface Ec2Configuration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Ec2Configuration.Builder,,Ec2Configuration> SdkBuilder<Ec2Configuration.Builder,,Ec2Configuration> SdkPojo
- Enclosing class:
Ec2Configuration
-
Method Summary
Modifier and TypeMethodDescriptiondefault Ec2Configuration.BuilderlaunchTemplateSource(Consumer<LaunchTemplateSource.Builder> launchTemplateSource) The source of the launch template configuration that defines how instances are launched.launchTemplateSource(LaunchTemplateSource launchTemplateSource) The source of the launch template configuration that defines how instances are launched.default Ec2Configuration.BuilderlifecycleConfiguration(Consumer<InstanceLifecycleConfiguration.Builder> lifecycleConfiguration) The lifecycle configuration for instances in the capacity provider.lifecycleConfiguration(InstanceLifecycleConfiguration lifecycleConfiguration) The lifecycle configuration for instances in the capacity provider.default Ec2Configuration.BuilderrootVolume(Consumer<RootVolumeConfiguration.Builder> rootVolume) The configuration for the instance root volume.rootVolume(RootVolumeConfiguration rootVolume) The configuration for the instance root volume.volumes(Collection<VolumeConfiguration> volumes) The named persistent Amazon EBS volumes for the capacity provider.volumes(Consumer<VolumeConfiguration.Builder>... volumes) The named persistent Amazon EBS volumes for the capacity provider.volumes(VolumeConfiguration... volumes) The named persistent Amazon EBS volumes for the capacity provider.default Ec2Configuration.BuildervpcConfiguration(Consumer<VpcConfiguration.Builder> vpcConfiguration) The VPC configuration for launching instances, including subnets and security groups.vpcConfiguration(VpcConfiguration vpcConfiguration) The VPC configuration for launching instances, including subnets and security groups.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, sdkFieldNameToField, sdkFields
-
Method Details
-
launchTemplateSource
The source of the launch template configuration that defines how instances are launched.
- Parameters:
launchTemplateSource- The source of the launch template configuration that defines how instances are launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateSource
default Ec2Configuration.Builder launchTemplateSource(Consumer<LaunchTemplateSource.Builder> launchTemplateSource) The source of the launch template configuration that defines how instances are launched.
This is a convenience method that creates an instance of theLaunchTemplateSource.Builderavoiding the need to create one manually viaLaunchTemplateSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolaunchTemplateSource(LaunchTemplateSource).- Parameters:
launchTemplateSource- a consumer that will call methods onLaunchTemplateSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcConfiguration
The VPC configuration for launching instances, including subnets and security groups.
- Parameters:
vpcConfiguration- The VPC configuration for launching instances, including subnets and security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfiguration
default Ec2Configuration.Builder vpcConfiguration(Consumer<VpcConfiguration.Builder> vpcConfiguration) The VPC configuration for launching instances, including subnets and security groups.
This is a convenience method that creates an instance of theVpcConfiguration.Builderavoiding the need to create one manually viaVpcConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovpcConfiguration(VpcConfiguration).- Parameters:
vpcConfiguration- a consumer that will call methods onVpcConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
volumes
The named persistent Amazon EBS volumes for the capacity provider. A capacity provider can define up to five volumes.
- Parameters:
volumes- The named persistent Amazon EBS volumes for the capacity provider. A capacity provider can define up to five volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
The named persistent Amazon EBS volumes for the capacity provider. A capacity provider can define up to five volumes.
- Parameters:
volumes- The named persistent Amazon EBS volumes for the capacity provider. A capacity provider can define up to five volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
The named persistent Amazon EBS volumes for the capacity provider. A capacity provider can define up to five volumes.
This is a convenience method that creates an instance of theVolumeConfiguration.Builderavoiding the need to create one manually viaVolumeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovolumes(List<VolumeConfiguration>).- Parameters:
volumes- a consumer that will call methods onVolumeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lifecycleConfiguration
Ec2Configuration.Builder lifecycleConfiguration(InstanceLifecycleConfiguration lifecycleConfiguration) The lifecycle configuration for instances in the capacity provider.
- Parameters:
lifecycleConfiguration- The lifecycle configuration for instances in the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycleConfiguration
default Ec2Configuration.Builder lifecycleConfiguration(Consumer<InstanceLifecycleConfiguration.Builder> lifecycleConfiguration) The lifecycle configuration for instances in the capacity provider.
This is a convenience method that creates an instance of theInstanceLifecycleConfiguration.Builderavoiding the need to create one manually viaInstanceLifecycleConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolifecycleConfiguration(InstanceLifecycleConfiguration).- Parameters:
lifecycleConfiguration- a consumer that will call methods onInstanceLifecycleConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rootVolume
The configuration for the instance root volume. Specify the amount of free space to guarantee and, optionally, the Amazon EBS performance and encryption settings. The device name and delete-on-termination behavior are not configurable.
- Parameters:
rootVolume- The configuration for the instance root volume. Specify the amount of free space to guarantee and, optionally, the Amazon EBS performance and encryption settings. The device name and delete-on-termination behavior are not configurable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootVolume
The configuration for the instance root volume. Specify the amount of free space to guarantee and, optionally, the Amazon EBS performance and encryption settings. The device name and delete-on-termination behavior are not configurable.
This is a convenience method that creates an instance of theRootVolumeConfiguration.Builderavoiding the need to create one manually viaRootVolumeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torootVolume(RootVolumeConfiguration).- Parameters:
rootVolume- a consumer that will call methods onRootVolumeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-