Class ImageArgs.Builder

  • Enclosing class:
    ImageArgs

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

      • Builder

        public Builder()
      • Builder

        public Builder​(ImageArgs defaults)
    • Method Detail

      • containerFormat

        public ImageArgs.Builder containerFormat​(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 ImageArgs.Builder containerFormat​(java.lang.String containerFormat)
        Parameters:
        containerFormat - The container format. Must be one of "ami", "ari", "aki", "bare", "ovf".
        Returns:
        builder
      • decompress

        public ImageArgs.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 ImageArgs.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 ImageArgs.Builder diskFormat​(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 ImageArgs.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
      • hidden

        public ImageArgs.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 ImageArgs.Builder hidden​(java.lang.Boolean hidden)
        Parameters:
        hidden - If true, image will be hidden from public list. Defaults to false.
        Returns:
        builder
      • imageCachePath

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

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

        public ImageArgs.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 ImageArgs.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 ImageArgs.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 ImageArgs.Builder imageSourcePassword​(java.lang.String imageSourcePassword)
        Parameters:
        imageSourcePassword - The password of basic auth to download `image_source_url`.
        Returns:
        builder
      • imageSourceUrl

        public ImageArgs.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 ImageArgs.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 ImageArgs.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 ImageArgs.Builder imageSourceUsername​(java.lang.String imageSourceUsername)
        Parameters:
        imageSourceUsername - The username of basic auth to download `image_source_url`.
        Returns:
        builder
      • localFilePath

        public ImageArgs.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 ImageArgs.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
      • minDiskGb

        public ImageArgs.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 ImageArgs.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 ImageArgs.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 ImageArgs.Builder minRamMb​(java.lang.Integer minRamMb)
        Parameters:
        minRamMb - Amount of ram (in MB) required to boot image. Defauts to 0.
        Returns:
        builder
      • name

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

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

        public ImageArgs.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 ImageArgs.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 ImageArgs.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 ImageArgs.Builder protected_​(java.lang.Boolean protected_)
        Parameters:
        protected_ - If true, image will not be deletable. Defaults to false.
        Returns:
        builder
      • region

        public ImageArgs.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 ImageArgs.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
      • tags

        public ImageArgs.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 ImageArgs.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 ImageArgs.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
      • verifyChecksum

        public ImageArgs.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 ImageArgs.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 ImageArgs.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 ImageArgs.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 ImageArgs.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 ImageArgs.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