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

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

There is a newer version: 2.89.2
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Distribute as a Managed Disk Image.
 * 
 */
public final class ImageTemplateManagedImageDistributorArgs extends com.pulumi.resources.ResourceArgs {

    public static final ImageTemplateManagedImageDistributorArgs Empty = new ImageTemplateManagedImageDistributorArgs();

    /**
     * Tags that will be applied to the artifact once it has been created/updated by the distributor.
     * 
     */
    @Import(name="artifactTags")
    private @Nullable Output> artifactTags;

    /**
     * @return Tags that will be applied to the artifact once it has been created/updated by the distributor.
     * 
     */
    public Optional>> artifactTags() {
        return Optional.ofNullable(this.artifactTags);
    }

    /**
     * Resource Id of the Managed Disk Image
     * 
     */
    @Import(name="imageId", required=true)
    private Output imageId;

    /**
     * @return Resource Id of the Managed Disk Image
     * 
     */
    public Output imageId() {
        return this.imageId;
    }

    /**
     * Azure location for the image, should match if image already exists
     * 
     */
    @Import(name="location", required=true)
    private Output location;

    /**
     * @return Azure location for the image, should match if image already exists
     * 
     */
    public Output location() {
        return this.location;
    }

    /**
     * The name to be used for the associated RunOutput.
     * 
     */
    @Import(name="runOutputName", required=true)
    private Output runOutputName;

    /**
     * @return The name to be used for the associated RunOutput.
     * 
     */
    public Output runOutputName() {
        return this.runOutputName;
    }

    /**
     * Type of distribution.
     * Expected value is 'ManagedImage'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of distribution.
     * Expected value is 'ManagedImage'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private ImageTemplateManagedImageDistributorArgs() {}

    private ImageTemplateManagedImageDistributorArgs(ImageTemplateManagedImageDistributorArgs $) {
        this.artifactTags = $.artifactTags;
        this.imageId = $.imageId;
        this.location = $.location;
        this.runOutputName = $.runOutputName;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ImageTemplateManagedImageDistributorArgs $;

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

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

        /**
         * @param artifactTags Tags that will be applied to the artifact once it has been created/updated by the distributor.
         * 
         * @return builder
         * 
         */
        public Builder artifactTags(@Nullable Output> artifactTags) {
            $.artifactTags = artifactTags;
            return this;
        }

        /**
         * @param artifactTags Tags that will be applied to the artifact once it has been created/updated by the distributor.
         * 
         * @return builder
         * 
         */
        public Builder artifactTags(Map artifactTags) {
            return artifactTags(Output.of(artifactTags));
        }

        /**
         * @param imageId Resource Id of the Managed Disk Image
         * 
         * @return builder
         * 
         */
        public Builder imageId(Output imageId) {
            $.imageId = imageId;
            return this;
        }

        /**
         * @param imageId Resource Id of the Managed Disk Image
         * 
         * @return builder
         * 
         */
        public Builder imageId(String imageId) {
            return imageId(Output.of(imageId));
        }

        /**
         * @param location Azure location for the image, should match if image already exists
         * 
         * @return builder
         * 
         */
        public Builder location(Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Azure location for the image, should match if image already exists
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param runOutputName The name to be used for the associated RunOutput.
         * 
         * @return builder
         * 
         */
        public Builder runOutputName(Output runOutputName) {
            $.runOutputName = runOutputName;
            return this;
        }

        /**
         * @param runOutputName The name to be used for the associated RunOutput.
         * 
         * @return builder
         * 
         */
        public Builder runOutputName(String runOutputName) {
            return runOutputName(Output.of(runOutputName));
        }

        /**
         * @param type Type of distribution.
         * Expected value is 'ManagedImage'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of distribution.
         * Expected value is 'ManagedImage'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy