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

com.pulumi.azurenative.appplatform.inputs.WarUploadedUserSourceInfoArgs 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.appplatform.inputs;

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


/**
 * Uploaded War binary for a deployment
 * 
 */
public final class WarUploadedUserSourceInfoArgs extends com.pulumi.resources.ResourceArgs {

    public static final WarUploadedUserSourceInfoArgs Empty = new WarUploadedUserSourceInfoArgs();

    /**
     * JVM parameter
     * 
     */
    @Import(name="jvmOptions")
    private @Nullable Output jvmOptions;

    /**
     * @return JVM parameter
     * 
     */
    public Optional> jvmOptions() {
        return Optional.ofNullable(this.jvmOptions);
    }

    /**
     * Relative path of the storage which stores the source
     * 
     */
    @Import(name="relativePath")
    private @Nullable Output relativePath;

    /**
     * @return Relative path of the storage which stores the source
     * 
     */
    public Optional> relativePath() {
        return Optional.ofNullable(this.relativePath);
    }

    /**
     * Runtime version of the war file
     * 
     */
    @Import(name="runtimeVersion")
    private @Nullable Output runtimeVersion;

    /**
     * @return Runtime version of the war file
     * 
     */
    public Optional> runtimeVersion() {
        return Optional.ofNullable(this.runtimeVersion);
    }

    /**
     * Server version, currently only Apache Tomcat is supported
     * 
     */
    @Import(name="serverVersion")
    private @Nullable Output serverVersion;

    /**
     * @return Server version, currently only Apache Tomcat is supported
     * 
     */
    public Optional> serverVersion() {
        return Optional.ofNullable(this.serverVersion);
    }

    /**
     * Type of the source uploaded
     * Expected value is 'War'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of the source uploaded
     * Expected value is 'War'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * Version of the source
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Version of the source
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private WarUploadedUserSourceInfoArgs() {}

    private WarUploadedUserSourceInfoArgs(WarUploadedUserSourceInfoArgs $) {
        this.jvmOptions = $.jvmOptions;
        this.relativePath = $.relativePath;
        this.runtimeVersion = $.runtimeVersion;
        this.serverVersion = $.serverVersion;
        this.type = $.type;
        this.version = $.version;
    }

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

    public static final class Builder {
        private WarUploadedUserSourceInfoArgs $;

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

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

        /**
         * @param jvmOptions JVM parameter
         * 
         * @return builder
         * 
         */
        public Builder jvmOptions(@Nullable Output jvmOptions) {
            $.jvmOptions = jvmOptions;
            return this;
        }

        /**
         * @param jvmOptions JVM parameter
         * 
         * @return builder
         * 
         */
        public Builder jvmOptions(String jvmOptions) {
            return jvmOptions(Output.of(jvmOptions));
        }

        /**
         * @param relativePath Relative path of the storage which stores the source
         * 
         * @return builder
         * 
         */
        public Builder relativePath(@Nullable Output relativePath) {
            $.relativePath = relativePath;
            return this;
        }

        /**
         * @param relativePath Relative path of the storage which stores the source
         * 
         * @return builder
         * 
         */
        public Builder relativePath(String relativePath) {
            return relativePath(Output.of(relativePath));
        }

        /**
         * @param runtimeVersion Runtime version of the war file
         * 
         * @return builder
         * 
         */
        public Builder runtimeVersion(@Nullable Output runtimeVersion) {
            $.runtimeVersion = runtimeVersion;
            return this;
        }

        /**
         * @param runtimeVersion Runtime version of the war file
         * 
         * @return builder
         * 
         */
        public Builder runtimeVersion(String runtimeVersion) {
            return runtimeVersion(Output.of(runtimeVersion));
        }

        /**
         * @param serverVersion Server version, currently only Apache Tomcat is supported
         * 
         * @return builder
         * 
         */
        public Builder serverVersion(@Nullable Output serverVersion) {
            $.serverVersion = serverVersion;
            return this;
        }

        /**
         * @param serverVersion Server version, currently only Apache Tomcat is supported
         * 
         * @return builder
         * 
         */
        public Builder serverVersion(String serverVersion) {
            return serverVersion(Output.of(serverVersion));
        }

        /**
         * @param type Type of the source uploaded
         * Expected value is 'War'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the source uploaded
         * Expected value is 'War'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param version Version of the source
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Version of the source
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public WarUploadedUserSourceInfoArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy