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

com.pulumi.azurenative.virtualmachineimages.inputs.ImageTemplatePlatformImageSourceArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.azurenative.virtualmachineimages.inputs.PlatformImagePurchasePlanArgs;
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;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
 * 
 */
public final class ImageTemplatePlatformImageSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ImageTemplatePlatformImageSourceArgs Empty = new ImageTemplatePlatformImageSourceArgs();

    /**
     * Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
     * 
     */
    @Import(name="offer")
    private @Nullable Output offer;

    /**
     * @return Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
     * 
     */
    public Optional> offer() {
        return Optional.ofNullable(this.offer);
    }

    /**
     * Optional configuration of purchase plan for platform image.
     * 
     */
    @Import(name="planInfo")
    private @Nullable Output planInfo;

    /**
     * @return Optional configuration of purchase plan for platform image.
     * 
     */
    public Optional> planInfo() {
        return Optional.ofNullable(this.planInfo);
    }

    /**
     * Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
     * 
     */
    @Import(name="publisher")
    private @Nullable Output publisher;

    /**
     * @return Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
     * 
     */
    public Optional> publisher() {
        return Optional.ofNullable(this.publisher);
    }

    /**
     * Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

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

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

    /**
     * Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private ImageTemplatePlatformImageSourceArgs() {}

    private ImageTemplatePlatformImageSourceArgs(ImageTemplatePlatformImageSourceArgs $) {
        this.offer = $.offer;
        this.planInfo = $.planInfo;
        this.publisher = $.publisher;
        this.sku = $.sku;
        this.type = $.type;
        this.version = $.version;
    }

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

    public static final class Builder {
        private ImageTemplatePlatformImageSourceArgs $;

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

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

        /**
         * @param offer Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
         * 
         * @return builder
         * 
         */
        public Builder offer(@Nullable Output offer) {
            $.offer = offer;
            return this;
        }

        /**
         * @param offer Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
         * 
         * @return builder
         * 
         */
        public Builder offer(String offer) {
            return offer(Output.of(offer));
        }

        /**
         * @param planInfo Optional configuration of purchase plan for platform image.
         * 
         * @return builder
         * 
         */
        public Builder planInfo(@Nullable Output planInfo) {
            $.planInfo = planInfo;
            return this;
        }

        /**
         * @param planInfo Optional configuration of purchase plan for platform image.
         * 
         * @return builder
         * 
         */
        public Builder planInfo(PlatformImagePurchasePlanArgs planInfo) {
            return planInfo(Output.of(planInfo));
        }

        /**
         * @param publisher Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
         * 
         * @return builder
         * 
         */
        public Builder publisher(@Nullable Output publisher) {
            $.publisher = publisher;
            return this;
        }

        /**
         * @param publisher Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
         * 
         * @return builder
         * 
         */
        public Builder publisher(String publisher) {
            return publisher(Output.of(publisher));
        }

        /**
         * @param sku Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
         * 
         * @return builder
         * 
         */
        public Builder sku(String sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param type Specifies the type of source image you want to start with.
         * Expected value is 'PlatformImage'.
         * 
         * @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 'PlatformImage'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param version Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public ImageTemplatePlatformImageSourceArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy