Class InstanceFromMachineImageArgs.Builder

    • Method Detail

      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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