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

com.pulumi.azurenative.azurefleet.inputs.VMGalleryApplicationArgs Maven / Gradle / Ivy

// *** 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.azurefleet.inputs;

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


/**
 * Specifies the required information to reference a compute gallery application
 * version
 * 
 */
public final class VMGalleryApplicationArgs extends com.pulumi.resources.ResourceArgs {

    public static final VMGalleryApplicationArgs Empty = new VMGalleryApplicationArgs();

    /**
     * Optional, Specifies the uri to an azure blob that will replace the default
     * configuration for the package if provided
     * 
     */
    @Import(name="configurationReference")
    private @Nullable Output configurationReference;

    /**
     * @return Optional, Specifies the uri to an azure blob that will replace the default
     * configuration for the package if provided
     * 
     */
    public Optional> configurationReference() {
        return Optional.ofNullable(this.configurationReference);
    }

    /**
     * If set to true, when a new Gallery Application version is available in PIR/SIG,
     * it will be automatically updated for the VM/VMSS
     * 
     */
    @Import(name="enableAutomaticUpgrade")
    private @Nullable Output enableAutomaticUpgrade;

    /**
     * @return If set to true, when a new Gallery Application version is available in PIR/SIG,
     * it will be automatically updated for the VM/VMSS
     * 
     */
    public Optional> enableAutomaticUpgrade() {
        return Optional.ofNullable(this.enableAutomaticUpgrade);
    }

    /**
     * Optional, Specifies the order in which the packages have to be installed
     * 
     */
    @Import(name="order")
    private @Nullable Output order;

    /**
     * @return Optional, Specifies the order in which the packages have to be installed
     * 
     */
    public Optional> order() {
        return Optional.ofNullable(this.order);
    }

    /**
     * Specifies the GalleryApplicationVersion resource id on the form of
     * /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}
     * 
     */
    @Import(name="packageReferenceId", required=true)
    private Output packageReferenceId;

    /**
     * @return Specifies the GalleryApplicationVersion resource id on the form of
     * /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}
     * 
     */
    public Output packageReferenceId() {
        return this.packageReferenceId;
    }

    /**
     * Optional, Specifies a passthrough value for more generic context.
     * 
     */
    @Import(name="tags")
    private @Nullable Output tags;

    /**
     * @return Optional, Specifies a passthrough value for more generic context.
     * 
     */
    public Optional> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Optional, If true, any failure for any operation in the VmApplication will fail
     * the deployment
     * 
     */
    @Import(name="treatFailureAsDeploymentFailure")
    private @Nullable Output treatFailureAsDeploymentFailure;

    /**
     * @return Optional, If true, any failure for any operation in the VmApplication will fail
     * the deployment
     * 
     */
    public Optional> treatFailureAsDeploymentFailure() {
        return Optional.ofNullable(this.treatFailureAsDeploymentFailure);
    }

    private VMGalleryApplicationArgs() {}

    private VMGalleryApplicationArgs(VMGalleryApplicationArgs $) {
        this.configurationReference = $.configurationReference;
        this.enableAutomaticUpgrade = $.enableAutomaticUpgrade;
        this.order = $.order;
        this.packageReferenceId = $.packageReferenceId;
        this.tags = $.tags;
        this.treatFailureAsDeploymentFailure = $.treatFailureAsDeploymentFailure;
    }

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

    public static final class Builder {
        private VMGalleryApplicationArgs $;

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

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

        /**
         * @param configurationReference Optional, Specifies the uri to an azure blob that will replace the default
         * configuration for the package if provided
         * 
         * @return builder
         * 
         */
        public Builder configurationReference(@Nullable Output configurationReference) {
            $.configurationReference = configurationReference;
            return this;
        }

        /**
         * @param configurationReference Optional, Specifies the uri to an azure blob that will replace the default
         * configuration for the package if provided
         * 
         * @return builder
         * 
         */
        public Builder configurationReference(String configurationReference) {
            return configurationReference(Output.of(configurationReference));
        }

        /**
         * @param enableAutomaticUpgrade If set to true, when a new Gallery Application version is available in PIR/SIG,
         * it will be automatically updated for the VM/VMSS
         * 
         * @return builder
         * 
         */
        public Builder enableAutomaticUpgrade(@Nullable Output enableAutomaticUpgrade) {
            $.enableAutomaticUpgrade = enableAutomaticUpgrade;
            return this;
        }

        /**
         * @param enableAutomaticUpgrade If set to true, when a new Gallery Application version is available in PIR/SIG,
         * it will be automatically updated for the VM/VMSS
         * 
         * @return builder
         * 
         */
        public Builder enableAutomaticUpgrade(Boolean enableAutomaticUpgrade) {
            return enableAutomaticUpgrade(Output.of(enableAutomaticUpgrade));
        }

        /**
         * @param order Optional, Specifies the order in which the packages have to be installed
         * 
         * @return builder
         * 
         */
        public Builder order(@Nullable Output order) {
            $.order = order;
            return this;
        }

        /**
         * @param order Optional, Specifies the order in which the packages have to be installed
         * 
         * @return builder
         * 
         */
        public Builder order(Integer order) {
            return order(Output.of(order));
        }

        /**
         * @param packageReferenceId Specifies the GalleryApplicationVersion resource id on the form of
         * /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}
         * 
         * @return builder
         * 
         */
        public Builder packageReferenceId(Output packageReferenceId) {
            $.packageReferenceId = packageReferenceId;
            return this;
        }

        /**
         * @param packageReferenceId Specifies the GalleryApplicationVersion resource id on the form of
         * /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}
         * 
         * @return builder
         * 
         */
        public Builder packageReferenceId(String packageReferenceId) {
            return packageReferenceId(Output.of(packageReferenceId));
        }

        /**
         * @param tags Optional, Specifies a passthrough value for more generic context.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Optional, Specifies a passthrough value for more generic context.
         * 
         * @return builder
         * 
         */
        public Builder tags(String tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param treatFailureAsDeploymentFailure Optional, If true, any failure for any operation in the VmApplication will fail
         * the deployment
         * 
         * @return builder
         * 
         */
        public Builder treatFailureAsDeploymentFailure(@Nullable Output treatFailureAsDeploymentFailure) {
            $.treatFailureAsDeploymentFailure = treatFailureAsDeploymentFailure;
            return this;
        }

        /**
         * @param treatFailureAsDeploymentFailure Optional, If true, any failure for any operation in the VmApplication will fail
         * the deployment
         * 
         * @return builder
         * 
         */
        public Builder treatFailureAsDeploymentFailure(Boolean treatFailureAsDeploymentFailure) {
            return treatFailureAsDeploymentFailure(Output.of(treatFailureAsDeploymentFailure));
        }

        public VMGalleryApplicationArgs build() {
            if ($.packageReferenceId == null) {
                throw new MissingRequiredPropertyException("VMGalleryApplicationArgs", "packageReferenceId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy