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

com.pulumi.azurenative.virtualmachineimages.inputs.ImageTemplateSharedImageVersionSourceArgs 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.virtualmachineimages.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * Describes an image source that is an image version in an Azure Compute Gallery or a Direct Shared Gallery.
 * 
 */
public final class ImageTemplateSharedImageVersionSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ImageTemplateSharedImageVersionSourceArgs Empty = new ImageTemplateSharedImageVersionSourceArgs();

    /**
     * ARM resource id of the image version. When image version name is 'latest', the version is evaluated when the image build takes place.
     * 
     */
    @Import(name="imageVersionId", required=true)
    private Output imageVersionId;

    /**
     * @return ARM resource id of the image version. When image version name is 'latest', the version is evaluated when the image build takes place.
     * 
     */
    public Output imageVersionId() {
        return this.imageVersionId;
    }

    /**
     * Specifies the type of source image you want to start with.
     * Expected value is 'SharedImageVersion'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Specifies the type of source image you want to start with.
     * Expected value is 'SharedImageVersion'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private ImageTemplateSharedImageVersionSourceArgs() {}

    private ImageTemplateSharedImageVersionSourceArgs(ImageTemplateSharedImageVersionSourceArgs $) {
        this.imageVersionId = $.imageVersionId;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ImageTemplateSharedImageVersionSourceArgs $;

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

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

        /**
         * @param imageVersionId ARM resource id of the image version. When image version name is 'latest', the version is evaluated when the image build takes place.
         * 
         * @return builder
         * 
         */
        public Builder imageVersionId(Output imageVersionId) {
            $.imageVersionId = imageVersionId;
            return this;
        }

        /**
         * @param imageVersionId ARM resource id of the image version. When image version name is 'latest', the version is evaluated when the image build takes place.
         * 
         * @return builder
         * 
         */
        public Builder imageVersionId(String imageVersionId) {
            return imageVersionId(Output.of(imageVersionId));
        }

        /**
         * @param type Specifies the type of source image you want to start with.
         * Expected value is 'SharedImageVersion'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Specifies the type of source image you want to start with.
         * Expected value is 'SharedImageVersion'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public ImageTemplateSharedImageVersionSourceArgs build() {
            if ($.imageVersionId == null) {
                throw new MissingRequiredPropertyException("ImageTemplateSharedImageVersionSourceArgs", "imageVersionId");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy