Class ImageState.Builder

  • Enclosing class:
    ImageState

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

      • Builder

        public Builder()
      • Builder

        public Builder​(ImageState defaults)
    • Method Detail

      • checksum

        public ImageState.Builder checksum​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> checksum)
        Parameters:
        checksum - The checksum of the data associated with the image.
        Returns:
        builder
      • checksum

        public ImageState.Builder checksum​(java.lang.String checksum)
        Parameters:
        checksum - The checksum of the data associated with the image.
        Returns:
        builder
      • containerFormat

        public ImageState.Builder containerFormat​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> containerFormat)
        Parameters:
        containerFormat - The container format. Must be one of "ami", "ari", "aki", "bare", "ovf".
        Returns:
        builder
      • containerFormat

        public ImageState.Builder containerFormat​(java.lang.String containerFormat)
        Parameters:
        containerFormat - The container format. Must be one of "ami", "ari", "aki", "bare", "ovf".
        Returns:
        builder
      • createdAt

        public ImageState.Builder createdAt​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> createdAt)
        Parameters:
        createdAt - The date the image was created.
        Returns:
        builder
      • createdAt

        public ImageState.Builder createdAt​(java.lang.String createdAt)
        Parameters:
        createdAt - The date the image was created.
        Returns:
        builder
      • decompress

        public ImageState.Builder decompress​(@Nullable
                                             com.pulumi.core.Output<java.lang.Boolean> decompress)
        Parameters:
        decompress - If true, this provider will decompress downloaded image before uploading it to OpenStack. Decompression algorithm is chosen by checking "Content-Type" header, supported algorithm are: gzip, bzip2 and xz. Defaults to false. Changing this creates a new Image.
        Returns:
        builder
      • decompress

        public ImageState.Builder decompress​(java.lang.Boolean decompress)
        Parameters:
        decompress - If true, this provider will decompress downloaded image before uploading it to OpenStack. Decompression algorithm is chosen by checking "Content-Type" header, supported algorithm are: gzip, bzip2 and xz. Defaults to false. Changing this creates a new Image.
        Returns:
        builder
      • diskFormat

        public ImageState.Builder diskFormat​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> diskFormat)
        Parameters:
        diskFormat - The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso".
        Returns:
        builder
      • diskFormat

        public ImageState.Builder diskFormat​(java.lang.String diskFormat)
        Parameters:
        diskFormat - The disk format. Must be one of "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso".
        Returns:
        builder
      • file

        public ImageState.Builder file​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> file)
        Parameters:
        file - the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
        Returns:
        builder
      • file

        public ImageState.Builder file​(java.lang.String file)
        Parameters:
        file - the trailing path after the glance endpoint that represent the location of the image or the path to retrieve it.
        Returns:
        builder
      • hidden

        public ImageState.Builder hidden​(@Nullable
                                         com.pulumi.core.Output<java.lang.Boolean> hidden)
        Parameters:
        hidden - If true, image will be hidden from public list. Defaults to false.
        Returns:
        builder
      • hidden

        public ImageState.Builder hidden​(java.lang.Boolean hidden)
        Parameters:
        hidden - If true, image will be hidden from public list. Defaults to false.
        Returns:
        builder
      • imageCachePath

        public ImageState.Builder imageCachePath​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> imageCachePath)
      • imageCachePath

        public ImageState.Builder imageCachePath​(java.lang.String imageCachePath)
      • imageId

        public ImageState.Builder imageId​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> imageId)
        Parameters:
        imageId - Unique ID (valid UUID) of image to create. Changing this creates a new image.
        Returns:
        builder
      • imageId

        public ImageState.Builder imageId​(java.lang.String imageId)
        Parameters:
        imageId - Unique ID (valid UUID) of image to create. Changing this creates a new image.
        Returns:
        builder
      • imageSourcePassword

        public ImageState.Builder imageSourcePassword​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> imageSourcePassword)
        Parameters:
        imageSourcePassword - The password of basic auth to download `image_source_url`.
        Returns:
        builder
      • imageSourcePassword

        public ImageState.Builder imageSourcePassword​(java.lang.String imageSourcePassword)
        Parameters:
        imageSourcePassword - The password of basic auth to download `image_source_url`.
        Returns:
        builder
      • imageSourceUrl

        public ImageState.Builder imageSourceUrl​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> imageSourceUrl)
        Parameters:
        imageSourceUrl - This is the url of the raw image. If `web_download` is not used, then the image will be downloaded in the `image_cache_path` before being uploaded to Glance. Conflicts with `local_file_path`.
        Returns:
        builder
      • imageSourceUrl

        public ImageState.Builder imageSourceUrl​(java.lang.String imageSourceUrl)
        Parameters:
        imageSourceUrl - This is the url of the raw image. If `web_download` is not used, then the image will be downloaded in the `image_cache_path` before being uploaded to Glance. Conflicts with `local_file_path`.
        Returns:
        builder
      • imageSourceUsername

        public ImageState.Builder imageSourceUsername​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> imageSourceUsername)
        Parameters:
        imageSourceUsername - The username of basic auth to download `image_source_url`.
        Returns:
        builder
      • imageSourceUsername

        public ImageState.Builder imageSourceUsername​(java.lang.String imageSourceUsername)
        Parameters:
        imageSourceUsername - The username of basic auth to download `image_source_url`.
        Returns:
        builder
      • localFilePath

        public ImageState.Builder localFilePath​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> localFilePath)
        Parameters:
        localFilePath - This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with `image_source_url` and `web_download`.
        Returns:
        builder
      • localFilePath

        public ImageState.Builder localFilePath​(java.lang.String localFilePath)
        Parameters:
        localFilePath - This is the filepath of the raw image file that will be uploaded to Glance. Conflicts with `image_source_url` and `web_download`.
        Returns:
        builder
      • metadata

        public ImageState.Builder metadata​(@Nullable
                                           com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> metadata)
        Parameters:
        metadata - The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html.
        Returns:
        builder
      • metadata

        public ImageState.Builder metadata​(java.util.Map<java.lang.String,​java.lang.Object> metadata)
        Parameters:
        metadata - The metadata associated with the image. Image metadata allow for meaningfully define the image properties and tags. See https://docs.openstack.org/glance/latest/user/metadefs-concepts.html.
        Returns:
        builder
      • minDiskGb

        public ImageState.Builder minDiskGb​(@Nullable
                                            com.pulumi.core.Output<java.lang.Integer> minDiskGb)
        Parameters:
        minDiskGb - Amount of disk space (in GB) required to boot image. Defaults to 0.
        Returns:
        builder
      • minDiskGb

        public ImageState.Builder minDiskGb​(java.lang.Integer minDiskGb)
        Parameters:
        minDiskGb - Amount of disk space (in GB) required to boot image. Defaults to 0.
        Returns:
        builder
      • minRamMb

        public ImageState.Builder minRamMb​(@Nullable
                                           com.pulumi.core.Output<java.lang.Integer> minRamMb)
        Parameters:
        minRamMb - Amount of ram (in MB) required to boot image. Defauts to 0.
        Returns:
        builder
      • minRamMb

        public ImageState.Builder minRamMb​(java.lang.Integer minRamMb)
        Parameters:
        minRamMb - Amount of ram (in MB) required to boot image. Defauts to 0.
        Returns:
        builder
      • name

        public ImageState.Builder name​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The name of the image.
        Returns:
        builder
      • name

        public ImageState.Builder name​(java.lang.String name)
        Parameters:
        name - The name of the image.
        Returns:
        builder
      • owner

        public ImageState.Builder owner​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> owner)
        Parameters:
        owner - The id of the openstack user who owns the image.
        Returns:
        builder
      • owner

        public ImageState.Builder owner​(java.lang.String owner)
        Parameters:
        owner - The id of the openstack user who owns the image.
        Returns:
        builder
      • properties

        public ImageState.Builder properties​(@Nullable
                                             com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> properties)
        Parameters:
        properties - A map of key/value pairs to set freeform information about an image. See the "Notes" section for further information about properties.
        Returns:
        builder
      • properties

        public ImageState.Builder properties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
        Parameters:
        properties - A map of key/value pairs to set freeform information about an image. See the "Notes" section for further information about properties.
        Returns:
        builder
      • protected_

        public ImageState.Builder protected_​(@Nullable
                                             com.pulumi.core.Output<java.lang.Boolean> protected_)
        Parameters:
        protected_ - If true, image will not be deletable. Defaults to false.
        Returns:
        builder
      • protected_

        public ImageState.Builder protected_​(java.lang.Boolean protected_)
        Parameters:
        protected_ - If true, image will not be deletable. Defaults to false.
        Returns:
        builder
      • region

        public ImageState.Builder region​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - The region in which to obtain the V2 Glance client. A Glance client is needed to create an Image that can be used with a compute instance. If omitted, the `region` argument of the provider is used. Changing this creates a new Image.
        Returns:
        builder
      • region

        public ImageState.Builder region​(java.lang.String region)
        Parameters:
        region - The region in which to obtain the V2 Glance client. A Glance client is needed to create an Image that can be used with a compute instance. If omitted, the `region` argument of the provider is used. Changing this creates a new Image.
        Returns:
        builder
      • schema

        public ImageState.Builder schema​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> schema)
        Parameters:
        schema - The path to the JSON-schema that represent the image or image
        Returns:
        builder
      • schema

        public ImageState.Builder schema​(java.lang.String schema)
        Parameters:
        schema - The path to the JSON-schema that represent the image or image
        Returns:
        builder
      • sizeBytes

        public ImageState.Builder sizeBytes​(@Nullable
                                            com.pulumi.core.Output<java.lang.Integer> sizeBytes)
        Parameters:
        sizeBytes - The size in bytes of the data associated with the image.
        Returns:
        builder
      • sizeBytes

        public ImageState.Builder sizeBytes​(java.lang.Integer sizeBytes)
        Parameters:
        sizeBytes - The size in bytes of the data associated with the image.
        Returns:
        builder
      • status

        public ImageState.Builder status​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> status)
        Parameters:
        status - The status of the image. It can be "queued", "active" or "saving".
        Returns:
        builder
      • status

        public ImageState.Builder status​(java.lang.String status)
        Parameters:
        status - The status of the image. It can be "queued", "active" or "saving".
        Returns:
        builder
      • tags

        public ImageState.Builder tags​(@Nullable
                                       com.pulumi.core.Output<java.util.List<java.lang.String>> tags)
        Parameters:
        tags - The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
        Returns:
        builder
      • tags

        public ImageState.Builder tags​(java.util.List<java.lang.String> tags)
        Parameters:
        tags - The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
        Returns:
        builder
      • tags

        public ImageState.Builder tags​(java.lang.String... tags)
        Parameters:
        tags - The tags of the image. It must be a list of strings. At this time, it is not possible to delete all tags of an image.
        Returns:
        builder
      • updateAt

        @Deprecated
        public ImageState.Builder updateAt​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> updateAt)
        Deprecated.
        Use updated_at instead
        Parameters:
        updateAt - (**Deprecated** - use `updated_at` instead)
        Returns:
        builder
      • updateAt

        @Deprecated
        public ImageState.Builder updateAt​(java.lang.String updateAt)
        Deprecated.
        Use updated_at instead
        Parameters:
        updateAt - (**Deprecated** - use `updated_at` instead)
        Returns:
        builder
      • updatedAt

        public ImageState.Builder updatedAt​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> updatedAt)
        Parameters:
        updatedAt - The date the image was last updated.
        Returns:
        builder
      • updatedAt

        public ImageState.Builder updatedAt​(java.lang.String updatedAt)
        Parameters:
        updatedAt - The date the image was last updated.
        Returns:
        builder
      • verifyChecksum

        public ImageState.Builder verifyChecksum​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Boolean> verifyChecksum)
        Parameters:
        verifyChecksum - If false, the checksum will not be verified once the image is finished uploading. Conflicts with `web_download`. Defaults to true when not using `web_download`.
        Returns:
        builder
      • verifyChecksum

        public ImageState.Builder verifyChecksum​(java.lang.Boolean verifyChecksum)
        Parameters:
        verifyChecksum - If false, the checksum will not be verified once the image is finished uploading. Conflicts with `web_download`. Defaults to true when not using `web_download`.
        Returns:
        builder
      • visibility

        public ImageState.Builder visibility​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> visibility)
        Parameters:
        visibility - The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the OpenStack cloud.
        Returns:
        builder
      • visibility

        public ImageState.Builder visibility​(java.lang.String visibility)
        Parameters:
        visibility - The visibility of the image. Must be one of "public", "private", "community", or "shared". The ability to set the visibility depends upon the configuration of the OpenStack cloud.
        Returns:
        builder
      • webDownload

        public ImageState.Builder webDownload​(@Nullable
                                              com.pulumi.core.Output<java.lang.Boolean> webDownload)
        Parameters:
        webDownload - If true, the "web-download" import method will be used to let Openstack download the image directly from the remote source. Conflicts with `local_file_path`. Defaults to false.
        Returns:
        builder
      • webDownload

        public ImageState.Builder webDownload​(java.lang.Boolean webDownload)
        Parameters:
        webDownload - If true, the "web-download" import method will be used to let Openstack download the image directly from the remote source. Conflicts with `local_file_path`. Defaults to false.
        Returns:
        builder