Class LaunchTemplateInstanceRequirements.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.launch_template.LaunchTemplateInstanceRequirements.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LaunchTemplateInstanceRequirements>
- Enclosing interface:
- LaunchTemplateInstanceRequirements
@Stability(Stable) public static final class LaunchTemplateInstanceRequirements.Builder extends Object implements software.amazon.jsii.Builder<LaunchTemplateInstanceRequirements>
A builder forLaunchTemplateInstanceRequirements
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
memoryMib
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder memoryMib(LaunchTemplateInstanceRequirementsMemoryMib memoryMib)
Sets the value ofLaunchTemplateInstanceRequirements.getMemoryMib()- Parameters:
memoryMib- memory_mib block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#memory_mib LaunchTemplate#memory_mib}- Returns:
this
-
vcpuCount
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder vcpuCount(LaunchTemplateInstanceRequirementsVcpuCount vcpuCount)
Sets the value ofLaunchTemplateInstanceRequirements.getVcpuCount()- Parameters:
vcpuCount- vcpu_count block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#vcpu_count LaunchTemplate#vcpu_count}- Returns:
this
-
acceleratorCount
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder acceleratorCount(LaunchTemplateInstanceRequirementsAcceleratorCount acceleratorCount)
Sets the value ofLaunchTemplateInstanceRequirements.getAcceleratorCount()- Parameters:
acceleratorCount- accelerator_count block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#accelerator_count LaunchTemplate#accelerator_count}- Returns:
this
-
acceleratorManufacturers
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder acceleratorManufacturers(List<String> acceleratorManufacturers)
Sets the value ofLaunchTemplateInstanceRequirements.getAcceleratorManufacturers()- Parameters:
acceleratorManufacturers- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#accelerator_manufacturers LaunchTemplate#accelerator_manufacturers}.- Returns:
this
-
acceleratorNames
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder acceleratorNames(List<String> acceleratorNames)
Sets the value ofLaunchTemplateInstanceRequirements.getAcceleratorNames()- Parameters:
acceleratorNames- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#accelerator_names LaunchTemplate#accelerator_names}.- Returns:
this
-
acceleratorTotalMemoryMib
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder acceleratorTotalMemoryMib(LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib)
Sets the value ofLaunchTemplateInstanceRequirements.getAcceleratorTotalMemoryMib()- Parameters:
acceleratorTotalMemoryMib- accelerator_total_memory_mib block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#accelerator_total_memory_mib LaunchTemplate#accelerator_total_memory_mib}- Returns:
this
-
acceleratorTypes
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder acceleratorTypes(List<String> acceleratorTypes)
Sets the value ofLaunchTemplateInstanceRequirements.getAcceleratorTypes()- Parameters:
acceleratorTypes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#accelerator_types LaunchTemplate#accelerator_types}.- Returns:
this
-
allowedInstanceTypes
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder allowedInstanceTypes(List<String> allowedInstanceTypes)
Sets the value ofLaunchTemplateInstanceRequirements.getAllowedInstanceTypes()- Parameters:
allowedInstanceTypes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#allowed_instance_types LaunchTemplate#allowed_instance_types}.- Returns:
this
-
bareMetal
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder bareMetal(String bareMetal)
Sets the value ofLaunchTemplateInstanceRequirements.getBareMetal()- Parameters:
bareMetal- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#bare_metal LaunchTemplate#bare_metal}.- Returns:
this
-
baselineEbsBandwidthMbps
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder baselineEbsBandwidthMbps(LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps)
Sets the value ofLaunchTemplateInstanceRequirements.getBaselineEbsBandwidthMbps()- Parameters:
baselineEbsBandwidthMbps- baseline_ebs_bandwidth_mbps block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#baseline_ebs_bandwidth_mbps LaunchTemplate#baseline_ebs_bandwidth_mbps}- Returns:
this
-
burstablePerformance
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder burstablePerformance(String burstablePerformance)
Sets the value ofLaunchTemplateInstanceRequirements.getBurstablePerformance()- Parameters:
burstablePerformance- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#burstable_performance LaunchTemplate#burstable_performance}.- Returns:
this
-
cpuManufacturers
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder cpuManufacturers(List<String> cpuManufacturers)
Sets the value ofLaunchTemplateInstanceRequirements.getCpuManufacturers()- Parameters:
cpuManufacturers- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#cpu_manufacturers LaunchTemplate#cpu_manufacturers}.- Returns:
this
-
excludedInstanceTypes
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder excludedInstanceTypes(List<String> excludedInstanceTypes)
Sets the value ofLaunchTemplateInstanceRequirements.getExcludedInstanceTypes()- Parameters:
excludedInstanceTypes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#excluded_instance_types LaunchTemplate#excluded_instance_types}.- Returns:
this
-
instanceGenerations
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder instanceGenerations(List<String> instanceGenerations)
Sets the value ofLaunchTemplateInstanceRequirements.getInstanceGenerations()- Parameters:
instanceGenerations- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#instance_generations LaunchTemplate#instance_generations}.- Returns:
this
-
localStorage
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder localStorage(String localStorage)
Sets the value ofLaunchTemplateInstanceRequirements.getLocalStorage()- Parameters:
localStorage- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#local_storage LaunchTemplate#local_storage}.- Returns:
this
-
localStorageTypes
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder localStorageTypes(List<String> localStorageTypes)
Sets the value ofLaunchTemplateInstanceRequirements.getLocalStorageTypes()- Parameters:
localStorageTypes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#local_storage_types LaunchTemplate#local_storage_types}.- Returns:
this
-
memoryGibPerVcpu
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder memoryGibPerVcpu(LaunchTemplateInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu)
Sets the value ofLaunchTemplateInstanceRequirements.getMemoryGibPerVcpu()- Parameters:
memoryGibPerVcpu- memory_gib_per_vcpu block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#memory_gib_per_vcpu LaunchTemplate#memory_gib_per_vcpu}- Returns:
this
-
networkBandwidthGbps
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder networkBandwidthGbps(LaunchTemplateInstanceRequirementsNetworkBandwidthGbps networkBandwidthGbps)
Sets the value ofLaunchTemplateInstanceRequirements.getNetworkBandwidthGbps()- Parameters:
networkBandwidthGbps- network_bandwidth_gbps block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#network_bandwidth_gbps LaunchTemplate#network_bandwidth_gbps}- Returns:
this
-
networkInterfaceCount
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder networkInterfaceCount(LaunchTemplateInstanceRequirementsNetworkInterfaceCount networkInterfaceCount)
Sets the value ofLaunchTemplateInstanceRequirements.getNetworkInterfaceCount()- Parameters:
networkInterfaceCount- network_interface_count block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#network_interface_count LaunchTemplate#network_interface_count}- Returns:
this
-
onDemandMaxPricePercentageOverLowestPrice
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder onDemandMaxPricePercentageOverLowestPrice(Number onDemandMaxPricePercentageOverLowestPrice)
- Parameters:
onDemandMaxPricePercentageOverLowestPrice- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#on_demand_max_price_percentage_over_lowest_price LaunchTemplate#on_demand_max_price_percentage_over_lowest_price}.- Returns:
this
-
requireHibernateSupport
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder requireHibernateSupport(Boolean requireHibernateSupport)
Sets the value ofLaunchTemplateInstanceRequirements.getRequireHibernateSupport()- Parameters:
requireHibernateSupport- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#require_hibernate_support LaunchTemplate#require_hibernate_support}.- Returns:
this
-
requireHibernateSupport
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder requireHibernateSupport(com.hashicorp.cdktf.IResolvable requireHibernateSupport)
Sets the value ofLaunchTemplateInstanceRequirements.getRequireHibernateSupport()- Parameters:
requireHibernateSupport- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#require_hibernate_support LaunchTemplate#require_hibernate_support}.- Returns:
this
-
spotMaxPricePercentageOverLowestPrice
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder spotMaxPricePercentageOverLowestPrice(Number spotMaxPricePercentageOverLowestPrice)
- Parameters:
spotMaxPricePercentageOverLowestPrice- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#spot_max_price_percentage_over_lowest_price LaunchTemplate#spot_max_price_percentage_over_lowest_price}.- Returns:
this
-
totalLocalStorageGb
@Stability(Stable) public LaunchTemplateInstanceRequirements.Builder totalLocalStorageGb(LaunchTemplateInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb)
Sets the value ofLaunchTemplateInstanceRequirements.getTotalLocalStorageGb()- Parameters:
totalLocalStorageGb- total_local_storage_gb block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#total_local_storage_gb LaunchTemplate#total_local_storage_gb}- Returns:
this
-
build
@Stability(Stable) public LaunchTemplateInstanceRequirements build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LaunchTemplateInstanceRequirements>- Returns:
- a new instance of
LaunchTemplateInstanceRequirements - Throws:
NullPointerException- if any required attribute was not provided
-
-