Interface LaunchParameters.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LaunchParameters.Builder,,LaunchParameters> SdkBuilder<LaunchParameters.Builder,,LaunchParameters> SdkPojo
- Enclosing class:
LaunchParameters
-
Method Summary
Modifier and TypeMethodDescriptiondefault LaunchParameters.BuildercapacityReservationSpecification(Consumer<CapacityReservationSpecification.Builder> capacityReservationSpecification) The Capacity Reservation targeting option for the instances.capacityReservationSpecification(CapacityReservationSpecification capacityReservationSpecification) The Capacity Reservation targeting option for the instances.ephemeralVolumes(Collection<EphemeralBlockDeviceMapping> ephemeralVolumes) The block device mappings for instance store (ephemeral) volumes.ephemeralVolumes(Consumer<EphemeralBlockDeviceMapping.Builder>... ephemeralVolumes) The block device mappings for instance store (ephemeral) volumes.ephemeralVolumes(EphemeralBlockDeviceMapping... ephemeralVolumes) The block device mappings for instance store (ephemeral) volumes.instanceProfileArn(String instanceProfileArn) The Amazon Resource Name (ARN) of the IAM instance profile to associate with launched instances.default LaunchParameters.BuilderinstanceRequirements(Consumer<InstanceRequirements.Builder> instanceRequirements) The requirements that determine which instance types can be launched.instanceRequirements(InstanceRequirements instanceRequirements) The requirements that determine which instance types can be launched.licenseSpecifications(Collection<LicenseSpecification> licenseSpecifications) The license configurations to associate with the instances.licenseSpecifications(Consumer<LicenseSpecification.Builder>... licenseSpecifications) The license configurations to associate with the instances.licenseSpecifications(LicenseSpecification... licenseSpecifications) The license configurations to associate with the instances.monitoring(String monitoring) The monitoring level for the instances.monitoring(Monitoring monitoring) The monitoring level for the instances.operatingSystem(String operatingSystem) The operating system and CPU architecture for the instances.operatingSystem(OperatingSystem operatingSystem) The operating system and CPU architecture for the instances.propagatedTags(Map<String, String> propagatedTags) The tags to propagate to all Amazon EC2 resources (instances, volumes, and network interfaces) that the capacity provider creates.sshKeyName(String sshKeyName) The name of the SSH key pair to configure on the instances for SSH connectivity.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
-
operatingSystem
The operating system and CPU architecture for the instances.
- Parameters:
operatingSystem- The operating system and CPU architecture for the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
operatingSystem
The operating system and CPU architecture for the instances.
- Parameters:
operatingSystem- The operating system and CPU architecture for the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceRequirements
The requirements that determine which instance types can be launched.
- Parameters:
instanceRequirements- The requirements that determine which instance types can be launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRequirements
default LaunchParameters.Builder instanceRequirements(Consumer<InstanceRequirements.Builder> instanceRequirements) The requirements that determine which instance types can be launched.
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:
-
ephemeralVolumes
The block device mappings for instance store (ephemeral) volumes. You can specify up to five mappings.
- Parameters:
ephemeralVolumes- The block device mappings for instance store (ephemeral) volumes. You can specify up to five mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ephemeralVolumes
The block device mappings for instance store (ephemeral) volumes. You can specify up to five mappings.
- Parameters:
ephemeralVolumes- The block device mappings for instance store (ephemeral) volumes. You can specify up to five mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ephemeralVolumes
LaunchParameters.Builder ephemeralVolumes(Consumer<EphemeralBlockDeviceMapping.Builder>... ephemeralVolumes) The block device mappings for instance store (ephemeral) volumes. You can specify up to five mappings.
This is a convenience method that creates an instance of theEphemeralBlockDeviceMapping.Builderavoiding the need to create one manually viaEphemeralBlockDeviceMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toephemeralVolumes(List<EphemeralBlockDeviceMapping>).- Parameters:
ephemeralVolumes- a consumer that will call methods onEphemeralBlockDeviceMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitoring
The monitoring level for the instances.
- Parameters:
monitoring- The monitoring level for the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitoring
The monitoring level for the instances.
- Parameters:
monitoring- The monitoring level for the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
licenseSpecifications
LaunchParameters.Builder licenseSpecifications(Collection<LicenseSpecification> licenseSpecifications) The license configurations to associate with the instances. You can specify up to five configurations.
- Parameters:
licenseSpecifications- The license configurations to associate with the instances. You can specify up to five configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseSpecifications
The license configurations to associate with the instances. You can specify up to five configurations.
- Parameters:
licenseSpecifications- The license configurations to associate with the instances. You can specify up to five configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseSpecifications
LaunchParameters.Builder licenseSpecifications(Consumer<LicenseSpecification.Builder>... licenseSpecifications) The license configurations to associate with the instances. You can specify up to five configurations.
This is a convenience method that creates an instance of theLicenseSpecification.Builderavoiding the need to create one manually viaLicenseSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolicenseSpecifications(List<LicenseSpecification>).- Parameters:
licenseSpecifications- a consumer that will call methods onLicenseSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityReservationSpecification
LaunchParameters.Builder capacityReservationSpecification(CapacityReservationSpecification capacityReservationSpecification) The Capacity Reservation targeting option for the instances.
- Parameters:
capacityReservationSpecification- The Capacity Reservation targeting option for the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationSpecification
default LaunchParameters.Builder capacityReservationSpecification(Consumer<CapacityReservationSpecification.Builder> capacityReservationSpecification) The Capacity Reservation targeting option for the instances.
This is a convenience method that creates an instance of theCapacityReservationSpecification.Builderavoiding the need to create one manually viaCapacityReservationSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocapacityReservationSpecification(CapacityReservationSpecification).- Parameters:
capacityReservationSpecification- a consumer that will call methods onCapacityReservationSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sshKeyName
The name of the SSH key pair to configure on the instances for SSH connectivity.
- Parameters:
sshKeyName- The name of the SSH key pair to configure on the instances for SSH connectivity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileArn
The Amazon Resource Name (ARN) of the IAM instance profile to associate with launched instances. If provided, this overrides the default instance profile.
- Parameters:
instanceProfileArn- The Amazon Resource Name (ARN) of the IAM instance profile to associate with launched instances. If provided, this overrides the default instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
propagatedTags
The tags to propagate to all Amazon EC2 resources (instances, volumes, and network interfaces) that the capacity provider creates.
- Parameters:
propagatedTags- The tags to propagate to all Amazon EC2 resources (instances, volumes, and network interfaces) that the capacity provider creates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-