All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.compute.inputs.GalleryDiskImageSourceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.compute.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The source for the disk image.
 * 
 */
public final class GalleryDiskImageSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final GalleryDiskImageSourceArgs Empty = new GalleryDiskImageSourceArgs();

    /**
     * The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
     * 
     */
    @Import(name="storageAccountId")
    private @Nullable Output storageAccountId;

    /**
     * @return The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
     * 
     */
    public Optional> storageAccountId() {
        return Optional.ofNullable(this.storageAccountId);
    }

    /**
     * The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
     * 
     */
    @Import(name="uri")
    private @Nullable Output uri;

    /**
     * @return The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
     * 
     */
    public Optional> uri() {
        return Optional.ofNullable(this.uri);
    }

    private GalleryDiskImageSourceArgs() {}

    private GalleryDiskImageSourceArgs(GalleryDiskImageSourceArgs $) {
        this.id = $.id;
        this.storageAccountId = $.storageAccountId;
        this.uri = $.uri;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(GalleryDiskImageSourceArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GalleryDiskImageSourceArgs $;

        public Builder() {
            $ = new GalleryDiskImageSourceArgs();
        }

        public Builder(GalleryDiskImageSourceArgs defaults) {
            $ = new GalleryDiskImageSourceArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param id The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param storageAccountId The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(@Nullable Output storageAccountId) {
            $.storageAccountId = storageAccountId;
            return this;
        }

        /**
         * @param storageAccountId The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(String storageAccountId) {
            return storageAccountId(Output.of(storageAccountId));
        }

        /**
         * @param uri The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
         * 
         * @return builder
         * 
         */
        public Builder uri(@Nullable Output uri) {
            $.uri = uri;
            return this;
        }

        /**
         * @param uri The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
         * 
         * @return builder
         * 
         */
        public Builder uri(String uri) {
            return uri(Output.of(uri));
        }

        public GalleryDiskImageSourceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy