Class VolumeAttachV2State.Builder

  • Enclosing class:
    VolumeAttachV2State

    public static final class VolumeAttachV2State.Builder
    extends java.lang.Object
    • Method Detail

      • attachMode

        public VolumeAttachV2State.Builder attachMode​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> attachMode)
        Parameters:
        attachMode - Specify whether to attach the volume as Read-Only (`ro`) or Read-Write (`rw`). Only values of `ro` and `rw` are accepted. If left unspecified, the Block Storage API will apply a default of `rw`.
        Returns:
        builder
      • attachMode

        public VolumeAttachV2State.Builder attachMode​(java.lang.String attachMode)
        Parameters:
        attachMode - Specify whether to attach the volume as Read-Only (`ro`) or Read-Write (`rw`). Only values of `ro` and `rw` are accepted. If left unspecified, the Block Storage API will apply a default of `rw`.
        Returns:
        builder
      • data

        public VolumeAttachV2State.Builder data​(@Nullable
                                                com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> data)
        Parameters:
        data - This is a map of key/value pairs that contain the connection information. You will want to pass this information to a provisioner script to finalize the connection. See below for more information.
        Returns:
        builder
      • data

        public VolumeAttachV2State.Builder data​(java.util.Map<java.lang.String,​java.lang.Object> data)
        Parameters:
        data - This is a map of key/value pairs that contain the connection information. You will want to pass this information to a provisioner script to finalize the connection. See below for more information.
        Returns:
        builder
      • device

        public VolumeAttachV2State.Builder device​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> device)
        Parameters:
        device - The device to tell the Block Storage service this volume will be attached as. This is purely for informational purposes. You can specify `auto` or a device such as `/dev/vdc`.
        Returns:
        builder
      • device

        public VolumeAttachV2State.Builder device​(java.lang.String device)
        Parameters:
        device - The device to tell the Block Storage service this volume will be attached as. This is purely for informational purposes. You can specify `auto` or a device such as `/dev/vdc`.
        Returns:
        builder
      • driverVolumeType

        public VolumeAttachV2State.Builder driverVolumeType​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> driverVolumeType)
        Parameters:
        driverVolumeType - The storage driver that the volume is based on.
        Returns:
        builder
      • driverVolumeType

        public VolumeAttachV2State.Builder driverVolumeType​(java.lang.String driverVolumeType)
        Parameters:
        driverVolumeType - The storage driver that the volume is based on.
        Returns:
        builder
      • hostName

        public VolumeAttachV2State.Builder hostName​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> hostName)
        Parameters:
        hostName - The host to attach the volume to.
        Returns:
        builder
      • hostName

        public VolumeAttachV2State.Builder hostName​(java.lang.String hostName)
        Parameters:
        hostName - The host to attach the volume to.
        Returns:
        builder
      • initiator

        public VolumeAttachV2State.Builder initiator​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> initiator)
        Parameters:
        initiator - The iSCSI initiator string to make the connection.
        Returns:
        builder
      • initiator

        public VolumeAttachV2State.Builder initiator​(java.lang.String initiator)
        Parameters:
        initiator - The iSCSI initiator string to make the connection.
        Returns:
        builder
      • instanceId

        @Deprecated
        public VolumeAttachV2State.Builder instanceId​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> instanceId)
        Deprecated.
        instance_id is no longer used in this resource
        Returns:
        builder
      • instanceId

        @Deprecated
        public VolumeAttachV2State.Builder instanceId​(java.lang.String instanceId)
        Deprecated.
        instance_id is no longer used in this resource
        Returns:
        builder
      • ipAddress

        public VolumeAttachV2State.Builder ipAddress​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> ipAddress)
        Parameters:
        ipAddress - The IP address of the `host_name` above.
        Returns:
        builder
      • ipAddress

        public VolumeAttachV2State.Builder ipAddress​(java.lang.String ipAddress)
        Parameters:
        ipAddress - The IP address of the `host_name` above.
        Returns:
        builder
      • mountPointBase

        public VolumeAttachV2State.Builder mountPointBase​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> mountPointBase)
        Parameters:
        mountPointBase - A mount point base name for shared storage.
        Returns:
        builder
      • mountPointBase

        public VolumeAttachV2State.Builder mountPointBase​(java.lang.String mountPointBase)
        Parameters:
        mountPointBase - A mount point base name for shared storage.
        Returns:
        builder
      • multipath

        public VolumeAttachV2State.Builder multipath​(@Nullable
                                                     com.pulumi.core.Output<java.lang.Boolean> multipath)
        Parameters:
        multipath - Whether to connect to this volume via multipath.
        Returns:
        builder
      • multipath

        public VolumeAttachV2State.Builder multipath​(java.lang.Boolean multipath)
        Parameters:
        multipath - Whether to connect to this volume via multipath.
        Returns:
        builder
      • osType

        public VolumeAttachV2State.Builder osType​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> osType)
        Parameters:
        osType - The iSCSI initiator OS type.
        Returns:
        builder
      • osType

        public VolumeAttachV2State.Builder osType​(java.lang.String osType)
        Parameters:
        osType - The iSCSI initiator OS type.
        Returns:
        builder
      • platform

        public VolumeAttachV2State.Builder platform​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> platform)
        Parameters:
        platform - The iSCSI initiator platform.
        Returns:
        builder
      • platform

        public VolumeAttachV2State.Builder platform​(java.lang.String platform)
        Parameters:
        platform - The iSCSI initiator platform.
        Returns:
        builder
      • region

        public VolumeAttachV2State.Builder region​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - The region in which to obtain the V2 Block Storage client. A Block Storage client is needed to create a volume attachment. If omitted, the `region` argument of the provider is used. Changing this creates a new volume attachment.
        Returns:
        builder
      • region

        public VolumeAttachV2State.Builder region​(java.lang.String region)
        Parameters:
        region - The region in which to obtain the V2 Block Storage client. A Block Storage client is needed to create a volume attachment. If omitted, the `region` argument of the provider is used. Changing this creates a new volume attachment.
        Returns:
        builder
      • volumeId

        public VolumeAttachV2State.Builder volumeId​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> volumeId)
        Parameters:
        volumeId - The ID of the Volume to attach to an Instance.
        Returns:
        builder
      • volumeId

        public VolumeAttachV2State.Builder volumeId​(java.lang.String volumeId)
        Parameters:
        volumeId - The ID of the Volume to attach to an Instance.
        Returns:
        builder
      • wwnn

        public VolumeAttachV2State.Builder wwnn​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> wwnn)
        Parameters:
        wwnn - A wwnn name. Used for Fibre Channel connections.
        Returns:
        builder
      • wwnn

        public VolumeAttachV2State.Builder wwnn​(java.lang.String wwnn)
        Parameters:
        wwnn - A wwnn name. Used for Fibre Channel connections.
        Returns:
        builder
      • wwpns

        public VolumeAttachV2State.Builder wwpns​(@Nullable
                                                 com.pulumi.core.Output<java.util.List<java.lang.String>> wwpns)
        Parameters:
        wwpns - An array of wwpn strings. Used for Fibre Channel connections.
        Returns:
        builder
      • wwpns

        public VolumeAttachV2State.Builder wwpns​(java.util.List<java.lang.String> wwpns)
        Parameters:
        wwpns - An array of wwpn strings. Used for Fibre Channel connections.
        Returns:
        builder
      • wwpns

        public VolumeAttachV2State.Builder wwpns​(java.lang.String... wwpns)
        Parameters:
        wwpns - An array of wwpn strings. Used for Fibre Channel connections.
        Returns:
        builder