Package com.pulumi.gcp.compute
Class InstanceFromMachineImageArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.InstanceFromMachineImageArgs.Builder
-
- Enclosing class:
- InstanceFromMachineImageArgs
public static final class InstanceFromMachineImageArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(InstanceFromMachineImageArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(InstanceFromMachineImageArgs defaults)
-
-
Method Detail
-
advancedMachineFeatures
public InstanceFromMachineImageArgs.Builder advancedMachineFeatures(@Nullable com.pulumi.core.Output<InstanceFromMachineImageAdvancedMachineFeaturesArgs> advancedMachineFeatures)
- Parameters:
advancedMachineFeatures
- Controls for advanced machine-related behavior features.- Returns:
- builder
-
advancedMachineFeatures
public InstanceFromMachineImageArgs.Builder advancedMachineFeatures(InstanceFromMachineImageAdvancedMachineFeaturesArgs advancedMachineFeatures)
- Parameters:
advancedMachineFeatures
- Controls for advanced machine-related behavior features.- Returns:
- builder
-
allowStoppingForUpdate
public InstanceFromMachineImageArgs.Builder allowStoppingForUpdate(@Nullable com.pulumi.core.Output<java.lang.Boolean> allowStoppingForUpdate)
- Parameters:
allowStoppingForUpdate
- If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.- Returns:
- builder
-
allowStoppingForUpdate
public InstanceFromMachineImageArgs.Builder allowStoppingForUpdate(java.lang.Boolean allowStoppingForUpdate)
- Parameters:
allowStoppingForUpdate
- If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.- Returns:
- builder
-
canIpForward
public InstanceFromMachineImageArgs.Builder canIpForward(@Nullable com.pulumi.core.Output<java.lang.Boolean> canIpForward)
- Parameters:
canIpForward
- Whether sending and receiving of packets with non-matching source or destination IPs is allowed.- Returns:
- builder
-
canIpForward
public InstanceFromMachineImageArgs.Builder canIpForward(java.lang.Boolean canIpForward)
- Parameters:
canIpForward
- Whether sending and receiving of packets with non-matching source or destination IPs is allowed.- Returns:
- builder
-
confidentialInstanceConfig
public InstanceFromMachineImageArgs.Builder confidentialInstanceConfig(@Nullable com.pulumi.core.Output<InstanceFromMachineImageConfidentialInstanceConfigArgs> confidentialInstanceConfig)
- Parameters:
confidentialInstanceConfig
- The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.- Returns:
- builder
-
confidentialInstanceConfig
public InstanceFromMachineImageArgs.Builder confidentialInstanceConfig(InstanceFromMachineImageConfidentialInstanceConfigArgs confidentialInstanceConfig)
- Parameters:
confidentialInstanceConfig
- The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.- Returns:
- builder
-
deletionProtection
public InstanceFromMachineImageArgs.Builder deletionProtection(@Nullable com.pulumi.core.Output<java.lang.Boolean> deletionProtection)
- Parameters:
deletionProtection
- Whether deletion protection is enabled on this instance.- Returns:
- builder
-
deletionProtection
public InstanceFromMachineImageArgs.Builder deletionProtection(java.lang.Boolean deletionProtection)
- Parameters:
deletionProtection
- Whether deletion protection is enabled on this instance.- Returns:
- builder
-
description
public InstanceFromMachineImageArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- A brief description of the resource.- Returns:
- builder
-
description
public InstanceFromMachineImageArgs.Builder description(java.lang.String description)
- Parameters:
description
- A brief description of the resource.- Returns:
- builder
-
desiredStatus
public InstanceFromMachineImageArgs.Builder desiredStatus(@Nullable com.pulumi.core.Output<java.lang.String> desiredStatus)
- Parameters:
desiredStatus
- Desired status of the instance. Either "RUNNING" or "TERMINATED".- Returns:
- builder
-
desiredStatus
public InstanceFromMachineImageArgs.Builder desiredStatus(java.lang.String desiredStatus)
- Parameters:
desiredStatus
- Desired status of the instance. Either "RUNNING" or "TERMINATED".- Returns:
- builder
-
enableDisplay
public InstanceFromMachineImageArgs.Builder enableDisplay(@Nullable com.pulumi.core.Output<java.lang.Boolean> enableDisplay)
- Parameters:
enableDisplay
- Whether the instance has virtual displays enabled.- Returns:
- builder
-
enableDisplay
public InstanceFromMachineImageArgs.Builder enableDisplay(java.lang.Boolean enableDisplay)
- Parameters:
enableDisplay
- Whether the instance has virtual displays enabled.- Returns:
- builder
-
guestAccelerators
public InstanceFromMachineImageArgs.Builder guestAccelerators(@Nullable com.pulumi.core.Output<java.util.List<InstanceFromMachineImageGuestAcceleratorArgs>> guestAccelerators)
- Parameters:
guestAccelerators
- List of the type and count of accelerator cards attached to the instance.- Returns:
- builder
-
guestAccelerators
public InstanceFromMachineImageArgs.Builder guestAccelerators(java.util.List<InstanceFromMachineImageGuestAcceleratorArgs> guestAccelerators)
- Parameters:
guestAccelerators
- List of the type and count of accelerator cards attached to the instance.- Returns:
- builder
-
guestAccelerators
public InstanceFromMachineImageArgs.Builder guestAccelerators(InstanceFromMachineImageGuestAcceleratorArgs... guestAccelerators)
- Parameters:
guestAccelerators
- List of the type and count of accelerator cards attached to the instance.- Returns:
- builder
-
hostname
public InstanceFromMachineImageArgs.Builder hostname(@Nullable com.pulumi.core.Output<java.lang.String> hostname)
- Parameters:
hostname
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression [a-z]([-a-z0-9]*[a-z0-9]), concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.- Returns:
- builder
-
hostname
public InstanceFromMachineImageArgs.Builder hostname(java.lang.String hostname)
- Parameters:
hostname
- A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression [a-z]([-a-z0-9]*[a-z0-9]), concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.- Returns:
- builder
-
labels
public InstanceFromMachineImageArgs.Builder labels(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> labels)
- Parameters:
labels
- A set of key/value label pairs assigned to the instance.- Returns:
- builder
-
labels
public InstanceFromMachineImageArgs.Builder labels(java.util.Map<java.lang.String,java.lang.String> labels)
- Parameters:
labels
- A set of key/value label pairs assigned to the instance.- Returns:
- builder
-
machineType
public InstanceFromMachineImageArgs.Builder machineType(@Nullable com.pulumi.core.Output<java.lang.String> machineType)
- Parameters:
machineType
- The machine type to create.- Returns:
- builder
-
machineType
public InstanceFromMachineImageArgs.Builder machineType(java.lang.String machineType)
- Parameters:
machineType
- The machine type to create.- Returns:
- builder
-
metadata
public InstanceFromMachineImageArgs.Builder metadata(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> metadata)
- Parameters:
metadata
- Metadata key/value pairs made available within the instance.- Returns:
- builder
-
metadata
public InstanceFromMachineImageArgs.Builder metadata(java.util.Map<java.lang.String,java.lang.String> metadata)
- Parameters:
metadata
- Metadata key/value pairs made available within the instance.- Returns:
- builder
-
metadataStartupScript
public InstanceFromMachineImageArgs.Builder metadataStartupScript(@Nullable com.pulumi.core.Output<java.lang.String> metadataStartupScript)
- Parameters:
metadataStartupScript
- Metadata startup scripts made available within the instance.- Returns:
- builder
-
metadataStartupScript
public InstanceFromMachineImageArgs.Builder metadataStartupScript(java.lang.String metadataStartupScript)
- Parameters:
metadataStartupScript
- Metadata startup scripts made available within the instance.- Returns:
- builder
-
minCpuPlatform
public InstanceFromMachineImageArgs.Builder minCpuPlatform(@Nullable com.pulumi.core.Output<java.lang.String> minCpuPlatform)
- Parameters:
minCpuPlatform
- The minimum CPU platform specified for the VM instance.- Returns:
- builder
-
minCpuPlatform
public InstanceFromMachineImageArgs.Builder minCpuPlatform(java.lang.String minCpuPlatform)
- Parameters:
minCpuPlatform
- The minimum CPU platform specified for the VM instance.- Returns:
- builder
-
name
public InstanceFromMachineImageArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.- Returns:
- builder
-
name
public InstanceFromMachineImageArgs.Builder name(java.lang.String name)
- Parameters:
name
- A unique name for the resource, required by GCE. Changing this forces a new resource to be created.- Returns:
- builder
-
networkInterfaces
public InstanceFromMachineImageArgs.Builder networkInterfaces(@Nullable com.pulumi.core.Output<java.util.List<InstanceFromMachineImageNetworkInterfaceArgs>> networkInterfaces)
- Parameters:
networkInterfaces
- The networks attached to the instance.- Returns:
- builder
-
networkInterfaces
public InstanceFromMachineImageArgs.Builder networkInterfaces(java.util.List<InstanceFromMachineImageNetworkInterfaceArgs> networkInterfaces)
- Parameters:
networkInterfaces
- The networks attached to the instance.- Returns:
- builder
-
networkInterfaces
public InstanceFromMachineImageArgs.Builder networkInterfaces(InstanceFromMachineImageNetworkInterfaceArgs... networkInterfaces)
- Parameters:
networkInterfaces
- The networks attached to the instance.- Returns:
- builder
-
networkPerformanceConfig
public InstanceFromMachineImageArgs.Builder networkPerformanceConfig(@Nullable com.pulumi.core.Output<InstanceFromMachineImageNetworkPerformanceConfigArgs> networkPerformanceConfig)
- Parameters:
networkPerformanceConfig
- Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.- Returns:
- builder
-
networkPerformanceConfig
public InstanceFromMachineImageArgs.Builder networkPerformanceConfig(InstanceFromMachineImageNetworkPerformanceConfigArgs networkPerformanceConfig)
- Parameters:
networkPerformanceConfig
- Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.- Returns:
- builder
-
params
public InstanceFromMachineImageArgs.Builder params(@Nullable com.pulumi.core.Output<InstanceFromMachineImageParamsArgs> params)
- Parameters:
params
- Stores additional params passed with the request, but not persisted as part of resource payload.- Returns:
- builder
-
params
public InstanceFromMachineImageArgs.Builder params(InstanceFromMachineImageParamsArgs params)
- Parameters:
params
- Stores additional params passed with the request, but not persisted as part of resource payload.- Returns:
- builder
-
project
public InstanceFromMachineImageArgs.Builder project(@Nullable com.pulumi.core.Output<java.lang.String> project)
- Parameters:
project
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.- Returns:
- builder
-
project
public InstanceFromMachineImageArgs.Builder project(java.lang.String project)
- Parameters:
project
- The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.- Returns:
- builder
-
reservationAffinity
public InstanceFromMachineImageArgs.Builder reservationAffinity(@Nullable com.pulumi.core.Output<InstanceFromMachineImageReservationAffinityArgs> reservationAffinity)
- Parameters:
reservationAffinity
- Specifies the reservations that this instance can consume from.- Returns:
- builder
-
reservationAffinity
public InstanceFromMachineImageArgs.Builder reservationAffinity(InstanceFromMachineImageReservationAffinityArgs reservationAffinity)
- Parameters:
reservationAffinity
- Specifies the reservations that this instance can consume from.- Returns:
- builder
-
resourcePolicies
public InstanceFromMachineImageArgs.Builder resourcePolicies(@Nullable com.pulumi.core.Output<java.lang.String> resourcePolicies)
- Parameters:
resourcePolicies
- A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.- Returns:
- builder
-
resourcePolicies
public InstanceFromMachineImageArgs.Builder resourcePolicies(java.lang.String resourcePolicies)
- Parameters:
resourcePolicies
- A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.- Returns:
- builder
-
scheduling
public InstanceFromMachineImageArgs.Builder scheduling(@Nullable com.pulumi.core.Output<InstanceFromMachineImageSchedulingArgs> scheduling)
- Parameters:
scheduling
- The scheduling strategy being used by the instance.- Returns:
- builder
-
scheduling
public InstanceFromMachineImageArgs.Builder scheduling(InstanceFromMachineImageSchedulingArgs scheduling)
- Parameters:
scheduling
- The scheduling strategy being used by the instance.- Returns:
- builder
-
serviceAccount
public InstanceFromMachineImageArgs.Builder serviceAccount(@Nullable com.pulumi.core.Output<InstanceFromMachineImageServiceAccountArgs> serviceAccount)
- Parameters:
serviceAccount
- The service account to attach to the instance.- Returns:
- builder
-
serviceAccount
public InstanceFromMachineImageArgs.Builder serviceAccount(InstanceFromMachineImageServiceAccountArgs serviceAccount)
- Parameters:
serviceAccount
- The service account to attach to the instance.- Returns:
- builder
-
shieldedInstanceConfig
public InstanceFromMachineImageArgs.Builder shieldedInstanceConfig(@Nullable com.pulumi.core.Output<InstanceFromMachineImageShieldedInstanceConfigArgs> shieldedInstanceConfig)
- Parameters:
shieldedInstanceConfig
- The shielded vm config being used by the instance.- Returns:
- builder
-
shieldedInstanceConfig
public InstanceFromMachineImageArgs.Builder shieldedInstanceConfig(InstanceFromMachineImageShieldedInstanceConfigArgs shieldedInstanceConfig)
- Parameters:
shieldedInstanceConfig
- The shielded vm config being used by the instance.- Returns:
- builder
-
sourceMachineImage
public InstanceFromMachineImageArgs.Builder sourceMachineImage(com.pulumi.core.Output<java.lang.String> sourceMachineImage)
- Parameters:
sourceMachineImage
- Name or self link of a machine image to create the instance based on. ***- Returns:
- builder
-
sourceMachineImage
public InstanceFromMachineImageArgs.Builder sourceMachineImage(java.lang.String sourceMachineImage)
- Parameters:
sourceMachineImage
- Name or self link of a machine image to create the instance based on. ***- Returns:
- builder
-
tags
public InstanceFromMachineImageArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> tags)
- Parameters:
tags
- The list of tags attached to the instance.- Returns:
- builder
-
tags
public InstanceFromMachineImageArgs.Builder tags(java.util.List<java.lang.String> tags)
- Parameters:
tags
- The list of tags attached to the instance.- Returns:
- builder
-
tags
public InstanceFromMachineImageArgs.Builder tags(java.lang.String... tags)
- Parameters:
tags
- The list of tags attached to the instance.- Returns:
- builder
-
zone
public InstanceFromMachineImageArgs.Builder zone(@Nullable com.pulumi.core.Output<java.lang.String> zone)
- Parameters:
zone
- The zone that the machine should be created in. If not set, the provider zone is used. In addition to these, most* arguments from `gcp.compute.Instance` are supported as a way to override the properties in the machine image. All exported attributes from `gcp.compute.Instance` are likewise exported here. > **Warning:** *Due to API limitations, disk overrides are currently disabled. This includes the "boot_disk", "attached_disk", and "scratch_disk" fields.- Returns:
- builder
-
zone
public InstanceFromMachineImageArgs.Builder zone(java.lang.String zone)
- Parameters:
zone
- The zone that the machine should be created in. If not set, the provider zone is used. In addition to these, most* arguments from `gcp.compute.Instance` are supported as a way to override the properties in the machine image. All exported attributes from `gcp.compute.Instance` are likewise exported here. > **Warning:** *Due to API limitations, disk overrides are currently disabled. This includes the "boot_disk", "attached_disk", and "scratch_disk" fields.- Returns:
- builder
-
build
public InstanceFromMachineImageArgs build()
-
-