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

com.pulumi.azurenative.batch.inputs.ApplicationPackageReferenceArgs 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.batch.inputs;

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


public final class ApplicationPackageReferenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationPackageReferenceArgs Empty = new ApplicationPackageReferenceArgs();

    @Import(name="id", required=true)
    private Output id;

    public Output id() {
        return this.id;
    }

    /**
     * If this is omitted, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences. If you are calling the REST API directly, the HTTP status code is 409.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return If this is omitted, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences. If you are calling the REST API directly, the HTTP status code is 409.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private ApplicationPackageReferenceArgs() {}

    private ApplicationPackageReferenceArgs(ApplicationPackageReferenceArgs $) {
        this.id = $.id;
        this.version = $.version;
    }

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

    public static final class Builder {
        private ApplicationPackageReferenceArgs $;

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

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

        public Builder id(Output id) {
            $.id = id;
            return this;
        }

        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param version If this is omitted, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences. If you are calling the REST API directly, the HTTP status code is 409.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version If this is omitted, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences. If you are calling the REST API directly, the HTTP status code is 409.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy