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

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


public final class GetApplicationArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetApplicationArgs Empty = new GetApplicationArgs();

    /**
     * ARN of the application.
     * 
     */
    @Import(name="applicationId", required=true)
    private Output<String> applicationId;

    /**
     * @return ARN of the application.
     * 
     */
    public Output<String> applicationId() {
        return this.applicationId;
    }

    /**
     * Requested version of the application. By default, retrieves the latest version.
     * 
     */
    @Import(name="semanticVersion")
    private @Nullable Output<String> semanticVersion;

    /**
     * @return Requested version of the application. By default, retrieves the latest version.
     * 
     */
    public Optional<Output<String>> semanticVersion() {
        return Optional.ofNullable(this.semanticVersion);
    }

    private GetApplicationArgs() {}

    private GetApplicationArgs(GetApplicationArgs $) {
        this.applicationId = $.applicationId;
        this.semanticVersion = $.semanticVersion;
    }

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

    public static final class Builder {
        private GetApplicationArgs $;

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

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

        /**
         * @param applicationId ARN of the application.
         * 
         * @return builder
         * 
         */
        public Builder applicationId(Output<String> applicationId) {
            $.applicationId = applicationId;
            return this;
        }

        /**
         * @param applicationId ARN of the application.
         * 
         * @return builder
         * 
         */
        public Builder applicationId(String applicationId) {
            return applicationId(Output.of(applicationId));
        }

        /**
         * @param semanticVersion Requested version of the application. By default, retrieves the latest version.
         * 
         * @return builder
         * 
         */
        public Builder semanticVersion(@Nullable Output<String> semanticVersion) {
            $.semanticVersion = semanticVersion;
            return this;
        }

        /**
         * @param semanticVersion Requested version of the application. By default, retrieves the latest version.
         * 
         * @return builder
         * 
         */
        public Builder semanticVersion(String semanticVersion) {
            return semanticVersion(Output.of(semanticVersion));
        }

        public GetApplicationArgs build() {
            $.applicationId = Objects.requireNonNull($.applicationId, "expected parameter 'applicationId' to be non-null");
            return $;
        }
    }

}
