Class InstanceState.Builder

  • Enclosing class:
    InstanceState

    public static final class InstanceState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • accessIpV4

        public InstanceState.Builder accessIpV4​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> accessIpV4)
        Parameters:
        accessIpV4 - The first detected Fixed IPv4 address.
        Returns:
        builder
      • accessIpV4

        public InstanceState.Builder accessIpV4​(java.lang.String accessIpV4)
        Parameters:
        accessIpV4 - The first detected Fixed IPv4 address.
        Returns:
        builder
      • accessIpV6

        public InstanceState.Builder accessIpV6​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> accessIpV6)
        Parameters:
        accessIpV6 - The first detected Fixed IPv6 address.
        Returns:
        builder
      • accessIpV6

        public InstanceState.Builder accessIpV6​(java.lang.String accessIpV6)
        Parameters:
        accessIpV6 - The first detected Fixed IPv6 address.
        Returns:
        builder
      • adminPass

        public InstanceState.Builder adminPass​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> adminPass)
        Parameters:
        adminPass - The administrative password to assign to the server. Changing this changes the root password on the existing server.
        Returns:
        builder
      • adminPass

        public InstanceState.Builder adminPass​(java.lang.String adminPass)
        Parameters:
        adminPass - The administrative password to assign to the server. Changing this changes the root password on the existing server.
        Returns:
        builder
      • allMetadata

        public InstanceState.Builder allMetadata​(@Nullable
                                                 com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> allMetadata)
      • allMetadata

        public InstanceState.Builder allMetadata​(java.util.Map<java.lang.String,​java.lang.Object> allMetadata)
      • allTags

        public InstanceState.Builder allTags​(@Nullable
                                             com.pulumi.core.Output<java.util.List<java.lang.String>> allTags)
        Parameters:
        allTags - The collection of tags assigned on the instance, which have been explicitly and implicitly added.
        Returns:
        builder
      • allTags

        public InstanceState.Builder allTags​(java.util.List<java.lang.String> allTags)
        Parameters:
        allTags - The collection of tags assigned on the instance, which have been explicitly and implicitly added.
        Returns:
        builder
      • allTags

        public InstanceState.Builder allTags​(java.lang.String... allTags)
        Parameters:
        allTags - The collection of tags assigned on the instance, which have been explicitly and implicitly added.
        Returns:
        builder
      • availabilityZone

        public InstanceState.Builder availabilityZone​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> availabilityZone)
        Parameters:
        availabilityZone - The availability zone in which to create the server. Conflicts with `availability_zone_hints`. Changing this creates a new server.
        Returns:
        builder
      • availabilityZone

        public InstanceState.Builder availabilityZone​(java.lang.String availabilityZone)
        Parameters:
        availabilityZone - The availability zone in which to create the server. Conflicts with `availability_zone_hints`. Changing this creates a new server.
        Returns:
        builder
      • availabilityZoneHints

        public InstanceState.Builder availabilityZoneHints​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> availabilityZoneHints)
        Parameters:
        availabilityZoneHints - The availability zone in which to create the server. This argument is preferred to `availability_zone`, when scheduling the server on a [particular](https://docs.openstack.org/nova/latest/admin/availability-zones.html) host or node. Conflicts with `availability_zone`. Changing this creates a new server.
        Returns:
        builder
      • availabilityZoneHints

        public InstanceState.Builder availabilityZoneHints​(java.lang.String availabilityZoneHints)
        Parameters:
        availabilityZoneHints - The availability zone in which to create the server. This argument is preferred to `availability_zone`, when scheduling the server on a [particular](https://docs.openstack.org/nova/latest/admin/availability-zones.html) host or node. Conflicts with `availability_zone`. Changing this creates a new server.
        Returns:
        builder
      • blockDevices

        public InstanceState.Builder blockDevices​(@Nullable
                                                  com.pulumi.core.Output<java.util.List<InstanceBlockDeviceArgs>> blockDevices)
        Parameters:
        blockDevices - Configuration of block devices. The block_device structure is documented below. Changing this creates a new server. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the following [reference](https://docs.openstack.org/nova/latest/user/block-device-mapping.html) for more information.
        Returns:
        builder
      • blockDevices

        public InstanceState.Builder blockDevices​(java.util.List<InstanceBlockDeviceArgs> blockDevices)
        Parameters:
        blockDevices - Configuration of block devices. The block_device structure is documented below. Changing this creates a new server. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the following [reference](https://docs.openstack.org/nova/latest/user/block-device-mapping.html) for more information.
        Returns:
        builder
      • blockDevices

        public InstanceState.Builder blockDevices​(InstanceBlockDeviceArgs... blockDevices)
        Parameters:
        blockDevices - Configuration of block devices. The block_device structure is documented below. Changing this creates a new server. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the following [reference](https://docs.openstack.org/nova/latest/user/block-device-mapping.html) for more information.
        Returns:
        builder
      • configDrive

        public InstanceState.Builder configDrive​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Boolean> configDrive)
        Parameters:
        configDrive - Whether to use the config_drive feature to configure the instance. Changing this creates a new server.
        Returns:
        builder
      • configDrive

        public InstanceState.Builder configDrive​(java.lang.Boolean configDrive)
        Parameters:
        configDrive - Whether to use the config_drive feature to configure the instance. Changing this creates a new server.
        Returns:
        builder
      • created

        public InstanceState.Builder created​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> created)
        Parameters:
        created - The creation time of the instance.
        Returns:
        builder
      • created

        public InstanceState.Builder created​(java.lang.String created)
        Parameters:
        created - The creation time of the instance.
        Returns:
        builder
      • flavorId

        public InstanceState.Builder flavorId​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> flavorId)
        Parameters:
        flavorId - The flavor ID of the desired flavor for the server. Changing this resizes the existing server.
        Returns:
        builder
      • flavorId

        public InstanceState.Builder flavorId​(java.lang.String flavorId)
        Parameters:
        flavorId - The flavor ID of the desired flavor for the server. Changing this resizes the existing server.
        Returns:
        builder
      • flavorName

        public InstanceState.Builder flavorName​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> flavorName)
        Parameters:
        flavorName - The name of the desired flavor for the server. Changing this resizes the existing server.
        Returns:
        builder
      • flavorName

        public InstanceState.Builder flavorName​(java.lang.String flavorName)
        Parameters:
        flavorName - The name of the desired flavor for the server. Changing this resizes the existing server.
        Returns:
        builder
      • floatingIp

        @Deprecated
        public InstanceState.Builder floatingIp​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> floatingIp)
        Deprecated.
        Use the openstack_compute_floatingip_associate_v2 resource instead
        Returns:
        builder
      • floatingIp

        @Deprecated
        public InstanceState.Builder floatingIp​(java.lang.String floatingIp)
        Deprecated.
        Use the openstack_compute_floatingip_associate_v2 resource instead
        Returns:
        builder
      • forceDelete

        public InstanceState.Builder forceDelete​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Boolean> forceDelete)
        Parameters:
        forceDelete - Whether to force the OpenStack instance to be forcefully deleted. This is useful for environments that have reclaim / soft deletion enabled.
        Returns:
        builder
      • forceDelete

        public InstanceState.Builder forceDelete​(java.lang.Boolean forceDelete)
        Parameters:
        forceDelete - Whether to force the OpenStack instance to be forcefully deleted. This is useful for environments that have reclaim / soft deletion enabled.
        Returns:
        builder
      • imageId

        public InstanceState.Builder imageId​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> imageId)
        Parameters:
        imageId - (Optional; Required if `image_name` is empty and not booting from a volume. Do not specify if booting from a volume.) The image ID of the desired image for the server. Changing this rebuilds the existing server.
        Returns:
        builder
      • imageId

        public InstanceState.Builder imageId​(java.lang.String imageId)
        Parameters:
        imageId - (Optional; Required if `image_name` is empty and not booting from a volume. Do not specify if booting from a volume.) The image ID of the desired image for the server. Changing this rebuilds the existing server.
        Returns:
        builder
      • imageName

        public InstanceState.Builder imageName​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> imageName)
        Parameters:
        imageName - (Optional; Required if `image_id` is empty and not booting from a volume. Do not specify if booting from a volume.) The name of the desired image for the server. Changing this rebuilds the existing server.
        Returns:
        builder
      • imageName

        public InstanceState.Builder imageName​(java.lang.String imageName)
        Parameters:
        imageName - (Optional; Required if `image_id` is empty and not booting from a volume. Do not specify if booting from a volume.) The name of the desired image for the server. Changing this rebuilds the existing server.
        Returns:
        builder
      • keyPair

        public InstanceState.Builder keyPair​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> keyPair)
        Parameters:
        keyPair - The name of a key pair to put on the server. The key pair must already be created and associated with the tenant's account. Changing this creates a new server.
        Returns:
        builder
      • keyPair

        public InstanceState.Builder keyPair​(java.lang.String keyPair)
        Parameters:
        keyPair - The name of a key pair to put on the server. The key pair must already be created and associated with the tenant's account. Changing this creates a new server.
        Returns:
        builder
      • metadata

        public InstanceState.Builder metadata​(@Nullable
                                              com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> metadata)
        Parameters:
        metadata - Metadata key/value pairs to make available from within the instance. Changing this updates the existing server metadata.
        Returns:
        builder
      • metadata

        public InstanceState.Builder metadata​(java.util.Map<java.lang.String,​java.lang.Object> metadata)
        Parameters:
        metadata - Metadata key/value pairs to make available from within the instance. Changing this updates the existing server metadata.
        Returns:
        builder
      • name

        public InstanceState.Builder name​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - A unique name for the resource.
        Returns:
        builder
      • name

        public InstanceState.Builder name​(java.lang.String name)
        Parameters:
        name - A unique name for the resource.
        Returns:
        builder
      • networkMode

        public InstanceState.Builder networkMode​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> networkMode)
        Parameters:
        networkMode - Special string for `network` option to create the server. `network_mode` can be `"auto"` or `"none"`. Please see the following [reference](https://docs.openstack.org/api-ref/compute/?expanded=create-server-detail#id11) for more information. Conflicts with `network`.
        Returns:
        builder
      • networkMode

        public InstanceState.Builder networkMode​(java.lang.String networkMode)
        Parameters:
        networkMode - Special string for `network` option to create the server. `network_mode` can be `"auto"` or `"none"`. Please see the following [reference](https://docs.openstack.org/api-ref/compute/?expanded=create-server-detail#id11) for more information. Conflicts with `network`.
        Returns:
        builder
      • networks

        public InstanceState.Builder networks​(@Nullable
                                              com.pulumi.core.Output<java.util.List<InstanceNetworkArgs>> networks)
        Parameters:
        networks - An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new server.
        Returns:
        builder
      • networks

        public InstanceState.Builder networks​(java.util.List<InstanceNetworkArgs> networks)
        Parameters:
        networks - An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new server.
        Returns:
        builder
      • networks

        public InstanceState.Builder networks​(InstanceNetworkArgs... networks)
        Parameters:
        networks - An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new server.
        Returns:
        builder
      • personalities

        public InstanceState.Builder personalities​(@Nullable
                                                   com.pulumi.core.Output<java.util.List<InstancePersonalityArgs>> personalities)
        Parameters:
        personalities - Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below. Changing this rebuilds the existing server.
        Returns:
        builder
      • personalities

        public InstanceState.Builder personalities​(java.util.List<InstancePersonalityArgs> personalities)
        Parameters:
        personalities - Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below. Changing this rebuilds the existing server.
        Returns:
        builder
      • personalities

        public InstanceState.Builder personalities​(InstancePersonalityArgs... personalities)
        Parameters:
        personalities - Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below. Changing this rebuilds the existing server.
        Returns:
        builder
      • powerState

        public InstanceState.Builder powerState​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> powerState)
        Parameters:
        powerState - Provide the VM state. Only 'active', 'shutoff' and 'shelved_offloaded' are supported values. *Note*: If the initial power_state is the shutoff the VM will be stopped immediately after build and the provisioners like remote-exec or files are not supported.
        Returns:
        builder
      • powerState

        public InstanceState.Builder powerState​(java.lang.String powerState)
        Parameters:
        powerState - Provide the VM state. Only 'active', 'shutoff' and 'shelved_offloaded' are supported values. *Note*: If the initial power_state is the shutoff the VM will be stopped immediately after build and the provisioners like remote-exec or files are not supported.
        Returns:
        builder
      • region

        public InstanceState.Builder region​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - The region in which to create the server instance. If omitted, the `region` argument of the provider is used. Changing this creates a new server.
        Returns:
        builder
      • region

        public InstanceState.Builder region​(java.lang.String region)
        Parameters:
        region - The region in which to create the server instance. If omitted, the `region` argument of the provider is used. Changing this creates a new server.
        Returns:
        builder
      • schedulerHints

        public InstanceState.Builder schedulerHints​(@Nullable
                                                    com.pulumi.core.Output<java.util.List<InstanceSchedulerHintArgs>> schedulerHints)
        Parameters:
        schedulerHints - Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
        Returns:
        builder
      • schedulerHints

        public InstanceState.Builder schedulerHints​(java.util.List<InstanceSchedulerHintArgs> schedulerHints)
        Parameters:
        schedulerHints - Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
        Returns:
        builder
      • schedulerHints

        public InstanceState.Builder schedulerHints​(InstanceSchedulerHintArgs... schedulerHints)
        Parameters:
        schedulerHints - Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
        Returns:
        builder
      • securityGroups

        public InstanceState.Builder securityGroups​(@Nullable
                                                    com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroups)
        Parameters:
        securityGroups - An array of one or more security group names to associate with the server. Changing this results in adding/removing security groups from the existing server. *Note*: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance. *Note*: Names should be used and not ids, as ids trigger unnecessary updates.
        Returns:
        builder
      • securityGroups

        public InstanceState.Builder securityGroups​(java.util.List<java.lang.String> securityGroups)
        Parameters:
        securityGroups - An array of one or more security group names to associate with the server. Changing this results in adding/removing security groups from the existing server. *Note*: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance. *Note*: Names should be used and not ids, as ids trigger unnecessary updates.
        Returns:
        builder
      • securityGroups

        public InstanceState.Builder securityGroups​(java.lang.String... securityGroups)
        Parameters:
        securityGroups - An array of one or more security group names to associate with the server. Changing this results in adding/removing security groups from the existing server. *Note*: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance. *Note*: Names should be used and not ids, as ids trigger unnecessary updates.
        Returns:
        builder
      • stopBeforeDestroy

        public InstanceState.Builder stopBeforeDestroy​(@Nullable
                                                       com.pulumi.core.Output<java.lang.Boolean> stopBeforeDestroy)
        Parameters:
        stopBeforeDestroy - Whether to try stop instance gracefully before destroying it, thus giving chance for guest OS daemons to stop correctly. If instance doesn't stop within timeout, it will be destroyed anyway.
        Returns:
        builder
      • stopBeforeDestroy

        public InstanceState.Builder stopBeforeDestroy​(java.lang.Boolean stopBeforeDestroy)
        Parameters:
        stopBeforeDestroy - Whether to try stop instance gracefully before destroying it, thus giving chance for guest OS daemons to stop correctly. If instance doesn't stop within timeout, it will be destroyed anyway.
        Returns:
        builder
      • tags

        public InstanceState.Builder tags​(@Nullable
                                          com.pulumi.core.Output<java.util.List<java.lang.String>> tags)
        Parameters:
        tags - A set of string tags for the instance. Changing this updates the existing instance tags.
        Returns:
        builder
      • tags

        public InstanceState.Builder tags​(java.util.List<java.lang.String> tags)
        Parameters:
        tags - A set of string tags for the instance. Changing this updates the existing instance tags.
        Returns:
        builder
      • tags

        public InstanceState.Builder tags​(java.lang.String... tags)
        Parameters:
        tags - A set of string tags for the instance. Changing this updates the existing instance tags.
        Returns:
        builder
      • updated

        public InstanceState.Builder updated​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> updated)
        Parameters:
        updated - The time when the instance was last updated.
        Returns:
        builder
      • updated

        public InstanceState.Builder updated​(java.lang.String updated)
        Parameters:
        updated - The time when the instance was last updated.
        Returns:
        builder
      • userData

        public InstanceState.Builder userData​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> userData)
        Parameters:
        userData - The user data to provide when launching the instance. Changing this creates a new server.
        Returns:
        builder
      • userData

        public InstanceState.Builder userData​(java.lang.String userData)
        Parameters:
        userData - The user data to provide when launching the instance. Changing this creates a new server.
        Returns:
        builder
      • vendorOptions

        public InstanceState.Builder vendorOptions​(@Nullable
                                                   com.pulumi.core.Output<InstanceVendorOptionsArgs> vendorOptions)
        Parameters:
        vendorOptions - Map of additional vendor-specific options. Supported options are described below.
        Returns:
        builder
      • vendorOptions

        public InstanceState.Builder vendorOptions​(InstanceVendorOptionsArgs vendorOptions)
        Parameters:
        vendorOptions - Map of additional vendor-specific options. Supported options are described below.
        Returns:
        builder
      • volumes

        @Deprecated
        public InstanceState.Builder volumes​(@Nullable
                                             com.pulumi.core.Output<java.util.List<InstanceVolumeArgs>> volumes)
        Deprecated.
        Use block_device or openstack_compute_volume_attach_v2 instead
        Returns:
        builder
      • volumes

        @Deprecated
        public InstanceState.Builder volumes​(java.util.List<InstanceVolumeArgs> volumes)
        Deprecated.
        Use block_device or openstack_compute_volume_attach_v2 instead
        Returns:
        builder