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

com.pulumi.azurenative.web.inputs.HandlerMappingArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.web.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;


/**
 * The IIS handler mappings used to define which handler processes HTTP requests with certain extension.
 * For example, it is used to configure php-cgi.exe process to handle all HTTP requests with *.php extension.
 * 
 */
public final class HandlerMappingArgs extends com.pulumi.resources.ResourceArgs {

    public static final HandlerMappingArgs Empty = new HandlerMappingArgs();

    /**
     * Command-line arguments to be passed to the script processor.
     * 
     */
    @Import(name="arguments")
    private @Nullable Output arguments;

    /**
     * @return Command-line arguments to be passed to the script processor.
     * 
     */
    public Optional> arguments() {
        return Optional.ofNullable(this.arguments);
    }

    /**
     * Requests with this extension will be handled using the specified FastCGI application.
     * 
     */
    @Import(name="extension")
    private @Nullable Output extension;

    /**
     * @return Requests with this extension will be handled using the specified FastCGI application.
     * 
     */
    public Optional> extension() {
        return Optional.ofNullable(this.extension);
    }

    /**
     * The absolute path to the FastCGI application.
     * 
     */
    @Import(name="scriptProcessor")
    private @Nullable Output scriptProcessor;

    /**
     * @return The absolute path to the FastCGI application.
     * 
     */
    public Optional> scriptProcessor() {
        return Optional.ofNullable(this.scriptProcessor);
    }

    private HandlerMappingArgs() {}

    private HandlerMappingArgs(HandlerMappingArgs $) {
        this.arguments = $.arguments;
        this.extension = $.extension;
        this.scriptProcessor = $.scriptProcessor;
    }

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

    public static final class Builder {
        private HandlerMappingArgs $;

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

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

        /**
         * @param arguments Command-line arguments to be passed to the script processor.
         * 
         * @return builder
         * 
         */
        public Builder arguments(@Nullable Output arguments) {
            $.arguments = arguments;
            return this;
        }

        /**
         * @param arguments Command-line arguments to be passed to the script processor.
         * 
         * @return builder
         * 
         */
        public Builder arguments(String arguments) {
            return arguments(Output.of(arguments));
        }

        /**
         * @param extension Requests with this extension will be handled using the specified FastCGI application.
         * 
         * @return builder
         * 
         */
        public Builder extension(@Nullable Output extension) {
            $.extension = extension;
            return this;
        }

        /**
         * @param extension Requests with this extension will be handled using the specified FastCGI application.
         * 
         * @return builder
         * 
         */
        public Builder extension(String extension) {
            return extension(Output.of(extension));
        }

        /**
         * @param scriptProcessor The absolute path to the FastCGI application.
         * 
         * @return builder
         * 
         */
        public Builder scriptProcessor(@Nullable Output scriptProcessor) {
            $.scriptProcessor = scriptProcessor;
            return this;
        }

        /**
         * @param scriptProcessor The absolute path to the FastCGI application.
         * 
         * @return builder
         * 
         */
        public Builder scriptProcessor(String scriptProcessor) {
            return scriptProcessor(Output.of(scriptProcessor));
        }

        public HandlerMappingArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy