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

com.pulumi.azure.compute.outputs.WindowsVirtualMachineGalleryApplication 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.azure.compute.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class WindowsVirtualMachineGalleryApplication {
    /**
     * @return Specifies whether the version will be automatically updated for the VM when a new Gallery Application version is available in PIR/SIG. Defaults to `false`.
     * 
     */
    private @Nullable Boolean automaticUpgradeEnabled;
    /**
     * @return Specifies the URI to an Azure Blob that will replace the default configuration for the package if provided.
     * 
     */
    private @Nullable String configurationBlobUri;
    /**
     * @return Specifies the order in which the packages have to be installed. Possible values are between `0` and `2147483647`. Defaults to `0`.
     * 
     */
    private @Nullable Integer order;
    /**
     * @return Specifies a passthrough value for more generic context. This field can be any valid `string` value.
     * 
     */
    private @Nullable String tag;
    /**
     * @return Specifies whether any failure for any operation in the VmApplication will fail the deployment of the VM. Defaults to `false`.
     * 
     */
    private @Nullable Boolean treatFailureAsDeploymentFailureEnabled;
    /**
     * @return Specifies the Gallery Application Version resource ID.
     * 
     */
    private String versionId;

    private WindowsVirtualMachineGalleryApplication() {}
    /**
     * @return Specifies whether the version will be automatically updated for the VM when a new Gallery Application version is available in PIR/SIG. Defaults to `false`.
     * 
     */
    public Optional automaticUpgradeEnabled() {
        return Optional.ofNullable(this.automaticUpgradeEnabled);
    }
    /**
     * @return Specifies the URI to an Azure Blob that will replace the default configuration for the package if provided.
     * 
     */
    public Optional configurationBlobUri() {
        return Optional.ofNullable(this.configurationBlobUri);
    }
    /**
     * @return Specifies the order in which the packages have to be installed. Possible values are between `0` and `2147483647`. Defaults to `0`.
     * 
     */
    public Optional order() {
        return Optional.ofNullable(this.order);
    }
    /**
     * @return Specifies a passthrough value for more generic context. This field can be any valid `string` value.
     * 
     */
    public Optional tag() {
        return Optional.ofNullable(this.tag);
    }
    /**
     * @return Specifies whether any failure for any operation in the VmApplication will fail the deployment of the VM. Defaults to `false`.
     * 
     */
    public Optional treatFailureAsDeploymentFailureEnabled() {
        return Optional.ofNullable(this.treatFailureAsDeploymentFailureEnabled);
    }
    /**
     * @return Specifies the Gallery Application Version resource ID.
     * 
     */
    public String versionId() {
        return this.versionId;
    }

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

    public static Builder builder(WindowsVirtualMachineGalleryApplication defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean automaticUpgradeEnabled;
        private @Nullable String configurationBlobUri;
        private @Nullable Integer order;
        private @Nullable String tag;
        private @Nullable Boolean treatFailureAsDeploymentFailureEnabled;
        private String versionId;
        public Builder() {}
        public Builder(WindowsVirtualMachineGalleryApplication defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.automaticUpgradeEnabled = defaults.automaticUpgradeEnabled;
    	      this.configurationBlobUri = defaults.configurationBlobUri;
    	      this.order = defaults.order;
    	      this.tag = defaults.tag;
    	      this.treatFailureAsDeploymentFailureEnabled = defaults.treatFailureAsDeploymentFailureEnabled;
    	      this.versionId = defaults.versionId;
        }

        @CustomType.Setter
        public Builder automaticUpgradeEnabled(@Nullable Boolean automaticUpgradeEnabled) {

            this.automaticUpgradeEnabled = automaticUpgradeEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder configurationBlobUri(@Nullable String configurationBlobUri) {

            this.configurationBlobUri = configurationBlobUri;
            return this;
        }
        @CustomType.Setter
        public Builder order(@Nullable Integer order) {

            this.order = order;
            return this;
        }
        @CustomType.Setter
        public Builder tag(@Nullable String tag) {

            this.tag = tag;
            return this;
        }
        @CustomType.Setter
        public Builder treatFailureAsDeploymentFailureEnabled(@Nullable Boolean treatFailureAsDeploymentFailureEnabled) {

            this.treatFailureAsDeploymentFailureEnabled = treatFailureAsDeploymentFailureEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder versionId(String versionId) {
            if (versionId == null) {
              throw new MissingRequiredPropertyException("WindowsVirtualMachineGalleryApplication", "versionId");
            }
            this.versionId = versionId;
            return this;
        }
        public WindowsVirtualMachineGalleryApplication build() {
            final var _resultValue = new WindowsVirtualMachineGalleryApplication();
            _resultValue.automaticUpgradeEnabled = automaticUpgradeEnabled;
            _resultValue.configurationBlobUri = configurationBlobUri;
            _resultValue.order = order;
            _resultValue.tag = tag;
            _resultValue.treatFailureAsDeploymentFailureEnabled = treatFailureAsDeploymentFailureEnabled;
            _resultValue.versionId = versionId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy