// *** 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 java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class WindowsVirtualMachineScaleSetGalleryApplication {
    /**
     * @deprecated
     * `configuration_reference_blob_uri` has been renamed to `configuration_blob_uri` and will be deprecated in 4.0
     * 
     */
    @Deprecated /* `configuration_reference_blob_uri` has been renamed to `configuration_blob_uri` and will be deprecated in 4.0 */
    private @Nullable String configurationReferenceBlobUri;
    /**
     * @return Specifies the order in which the packages have to be installed. Possible values are between `0` and `2,147,483,647`. Changing this forces a new resource to be created.
     * 
     */
    private @Nullable Integer order;
    /**
     * @deprecated
     * `package_reference_id` has been renamed to `version_id` and will be deprecated in 4.0
     * 
     */
    @Deprecated /* `package_reference_id` has been renamed to `version_id` and will be deprecated in 4.0 */
    private String packageReferenceId;
    /**
     * @return Specifies a passthrough value for more generic context. This field can be any valid `string` value. Changing this forces a new resource to be created.
     * 
     */
    private @Nullable String tag;

    private WindowsVirtualMachineScaleSetGalleryApplication() {}
    /**
     * @deprecated
     * `configuration_reference_blob_uri` has been renamed to `configuration_blob_uri` and will be deprecated in 4.0
     * 
     */
    @Deprecated /* `configuration_reference_blob_uri` has been renamed to `configuration_blob_uri` and will be deprecated in 4.0 */
    public Optional<String> configurationReferenceBlobUri() {
        return Optional.ofNullable(this.configurationReferenceBlobUri);
    }
    /**
     * @return Specifies the order in which the packages have to be installed. Possible values are between `0` and `2,147,483,647`. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Integer> order() {
        return Optional.ofNullable(this.order);
    }
    /**
     * @deprecated
     * `package_reference_id` has been renamed to `version_id` and will be deprecated in 4.0
     * 
     */
    @Deprecated /* `package_reference_id` has been renamed to `version_id` and will be deprecated in 4.0 */
    public String packageReferenceId() {
        return this.packageReferenceId;
    }
    /**
     * @return Specifies a passthrough value for more generic context. This field can be any valid `string` value. Changing this forces a new resource to be created.
     * 
     */
    public Optional<String> tag() {
        return Optional.ofNullable(this.tag);
    }

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

    public static Builder builder(WindowsVirtualMachineScaleSetGalleryApplication defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String configurationReferenceBlobUri;
        private @Nullable Integer order;
        private String packageReferenceId;
        private @Nullable String tag;
        public Builder() {}
        public Builder(WindowsVirtualMachineScaleSetGalleryApplication defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.configurationReferenceBlobUri = defaults.configurationReferenceBlobUri;
    	      this.order = defaults.order;
    	      this.packageReferenceId = defaults.packageReferenceId;
    	      this.tag = defaults.tag;
        }

        @CustomType.Setter
        public Builder configurationReferenceBlobUri(@Nullable String configurationReferenceBlobUri) {
            this.configurationReferenceBlobUri = configurationReferenceBlobUri;
            return this;
        }
        @CustomType.Setter
        public Builder order(@Nullable Integer order) {
            this.order = order;
            return this;
        }
        @CustomType.Setter
        public Builder packageReferenceId(String packageReferenceId) {
            this.packageReferenceId = Objects.requireNonNull(packageReferenceId);
            return this;
        }
        @CustomType.Setter
        public Builder tag(@Nullable String tag) {
            this.tag = tag;
            return this;
        }
        public WindowsVirtualMachineScaleSetGalleryApplication build() {
            final var o = new WindowsVirtualMachineScaleSetGalleryApplication();
            o.configurationReferenceBlobUri = configurationReferenceBlobUri;
            o.order = order;
            o.packageReferenceId = packageReferenceId;
            o.tag = tag;
            return o;
        }
    }
}
