Class VolumeV1State.Builder

  • Enclosing class:
    VolumeV1State

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

      • Builder

        public Builder()
    • Method Detail

      • attachments

        public VolumeV1State.Builder attachments​(@Nullable
                                                 com.pulumi.core.Output<java.util.List<VolumeV1AttachmentArgs>> attachments)
        Parameters:
        attachments - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
        Returns:
        builder
      • attachments

        public VolumeV1State.Builder attachments​(java.util.List<VolumeV1AttachmentArgs> attachments)
        Parameters:
        attachments - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
        Returns:
        builder
      • attachments

        public VolumeV1State.Builder attachments​(VolumeV1AttachmentArgs... attachments)
        Parameters:
        attachments - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
        Returns:
        builder
      • availabilityZone

        public VolumeV1State.Builder availabilityZone​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> availabilityZone)
        Parameters:
        availabilityZone - The availability zone for the volume. Changing this creates a new volume.
        Returns:
        builder
      • availabilityZone

        public VolumeV1State.Builder availabilityZone​(java.lang.String availabilityZone)
        Parameters:
        availabilityZone - The availability zone for the volume. Changing this creates a new volume.
        Returns:
        builder
      • description

        public VolumeV1State.Builder description​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - A description of the volume. Changing this updates the volume's description.
        Returns:
        builder
      • description

        public VolumeV1State.Builder description​(java.lang.String description)
        Parameters:
        description - A description of the volume. Changing this updates the volume's description.
        Returns:
        builder
      • imageId

        public VolumeV1State.Builder imageId​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> imageId)
        Parameters:
        imageId - The image ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • imageId

        public VolumeV1State.Builder imageId​(java.lang.String imageId)
        Parameters:
        imageId - The image ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • metadata

        public VolumeV1State.Builder metadata​(@Nullable
                                              com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> metadata)
        Parameters:
        metadata - Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
        Returns:
        builder
      • metadata

        public VolumeV1State.Builder metadata​(java.util.Map<java.lang.String,​java.lang.Object> metadata)
        Parameters:
        metadata - Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
        Returns:
        builder
      • name

        public VolumeV1State.Builder name​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - A unique name for the volume. Changing this updates the volume's name.
        Returns:
        builder
      • name

        public VolumeV1State.Builder name​(java.lang.String name)
        Parameters:
        name - A unique name for the volume. Changing this updates the volume's name.
        Returns:
        builder
      • region

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

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

        public VolumeV1State.Builder size​(@Nullable
                                          com.pulumi.core.Output<java.lang.Integer> size)
        Parameters:
        size - The size of the volume to create (in gigabytes). Changing this creates a new volume.
        Returns:
        builder
      • size

        public VolumeV1State.Builder size​(java.lang.Integer size)
        Parameters:
        size - The size of the volume to create (in gigabytes). Changing this creates a new volume.
        Returns:
        builder
      • snapshotId

        public VolumeV1State.Builder snapshotId​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> snapshotId)
        Parameters:
        snapshotId - The snapshot ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • snapshotId

        public VolumeV1State.Builder snapshotId​(java.lang.String snapshotId)
        Parameters:
        snapshotId - The snapshot ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • sourceVolId

        public VolumeV1State.Builder sourceVolId​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> sourceVolId)
        Parameters:
        sourceVolId - The volume ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • sourceVolId

        public VolumeV1State.Builder sourceVolId​(java.lang.String sourceVolId)
        Parameters:
        sourceVolId - The volume ID from which to create the volume. Changing this creates a new volume.
        Returns:
        builder
      • volumeType

        public VolumeV1State.Builder volumeType​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> volumeType)
        Parameters:
        volumeType - The type of volume to create. Changing this creates a new volume.
        Returns:
        builder
      • volumeType

        public VolumeV1State.Builder volumeType​(java.lang.String volumeType)
        Parameters:
        volumeType - The type of volume to create. Changing this creates a new volume.
        Returns:
        builder