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

com.pulumi.azurenative.network.inputs.ExplicitProxyArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.network.inputs;

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


/**
 * Explicit Proxy Settings in Firewall Policy.
 * 
 */
public final class ExplicitProxyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExplicitProxyArgs Empty = new ExplicitProxyArgs();

    /**
     * When set to true, explicit proxy mode is enabled.
     * 
     */
    @Import(name="enableExplicitProxy")
    private @Nullable Output enableExplicitProxy;

    /**
     * @return When set to true, explicit proxy mode is enabled.
     * 
     */
    public Optional> enableExplicitProxy() {
        return Optional.ofNullable(this.enableExplicitProxy);
    }

    /**
     * When set to true, pac file port and url needs to be provided.
     * 
     */
    @Import(name="enablePacFile")
    private @Nullable Output enablePacFile;

    /**
     * @return When set to true, pac file port and url needs to be provided.
     * 
     */
    public Optional> enablePacFile() {
        return Optional.ofNullable(this.enablePacFile);
    }

    /**
     * Port number for explicit proxy http protocol, cannot be greater than 64000.
     * 
     */
    @Import(name="httpPort")
    private @Nullable Output httpPort;

    /**
     * @return Port number for explicit proxy http protocol, cannot be greater than 64000.
     * 
     */
    public Optional> httpPort() {
        return Optional.ofNullable(this.httpPort);
    }

    /**
     * Port number for explicit proxy https protocol, cannot be greater than 64000.
     * 
     */
    @Import(name="httpsPort")
    private @Nullable Output httpsPort;

    /**
     * @return Port number for explicit proxy https protocol, cannot be greater than 64000.
     * 
     */
    public Optional> httpsPort() {
        return Optional.ofNullable(this.httpsPort);
    }

    /**
     * SAS URL for PAC file.
     * 
     */
    @Import(name="pacFile")
    private @Nullable Output pacFile;

    /**
     * @return SAS URL for PAC file.
     * 
     */
    public Optional> pacFile() {
        return Optional.ofNullable(this.pacFile);
    }

    /**
     * Port number for firewall to serve PAC file.
     * 
     */
    @Import(name="pacFilePort")
    private @Nullable Output pacFilePort;

    /**
     * @return Port number for firewall to serve PAC file.
     * 
     */
    public Optional> pacFilePort() {
        return Optional.ofNullable(this.pacFilePort);
    }

    private ExplicitProxyArgs() {}

    private ExplicitProxyArgs(ExplicitProxyArgs $) {
        this.enableExplicitProxy = $.enableExplicitProxy;
        this.enablePacFile = $.enablePacFile;
        this.httpPort = $.httpPort;
        this.httpsPort = $.httpsPort;
        this.pacFile = $.pacFile;
        this.pacFilePort = $.pacFilePort;
    }

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

    public static final class Builder {
        private ExplicitProxyArgs $;

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

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

        /**
         * @param enableExplicitProxy When set to true, explicit proxy mode is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enableExplicitProxy(@Nullable Output enableExplicitProxy) {
            $.enableExplicitProxy = enableExplicitProxy;
            return this;
        }

        /**
         * @param enableExplicitProxy When set to true, explicit proxy mode is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enableExplicitProxy(Boolean enableExplicitProxy) {
            return enableExplicitProxy(Output.of(enableExplicitProxy));
        }

        /**
         * @param enablePacFile When set to true, pac file port and url needs to be provided.
         * 
         * @return builder
         * 
         */
        public Builder enablePacFile(@Nullable Output enablePacFile) {
            $.enablePacFile = enablePacFile;
            return this;
        }

        /**
         * @param enablePacFile When set to true, pac file port and url needs to be provided.
         * 
         * @return builder
         * 
         */
        public Builder enablePacFile(Boolean enablePacFile) {
            return enablePacFile(Output.of(enablePacFile));
        }

        /**
         * @param httpPort Port number for explicit proxy http protocol, cannot be greater than 64000.
         * 
         * @return builder
         * 
         */
        public Builder httpPort(@Nullable Output httpPort) {
            $.httpPort = httpPort;
            return this;
        }

        /**
         * @param httpPort Port number for explicit proxy http protocol, cannot be greater than 64000.
         * 
         * @return builder
         * 
         */
        public Builder httpPort(Integer httpPort) {
            return httpPort(Output.of(httpPort));
        }

        /**
         * @param httpsPort Port number for explicit proxy https protocol, cannot be greater than 64000.
         * 
         * @return builder
         * 
         */
        public Builder httpsPort(@Nullable Output httpsPort) {
            $.httpsPort = httpsPort;
            return this;
        }

        /**
         * @param httpsPort Port number for explicit proxy https protocol, cannot be greater than 64000.
         * 
         * @return builder
         * 
         */
        public Builder httpsPort(Integer httpsPort) {
            return httpsPort(Output.of(httpsPort));
        }

        /**
         * @param pacFile SAS URL for PAC file.
         * 
         * @return builder
         * 
         */
        public Builder pacFile(@Nullable Output pacFile) {
            $.pacFile = pacFile;
            return this;
        }

        /**
         * @param pacFile SAS URL for PAC file.
         * 
         * @return builder
         * 
         */
        public Builder pacFile(String pacFile) {
            return pacFile(Output.of(pacFile));
        }

        /**
         * @param pacFilePort Port number for firewall to serve PAC file.
         * 
         * @return builder
         * 
         */
        public Builder pacFilePort(@Nullable Output pacFilePort) {
            $.pacFilePort = pacFilePort;
            return this;
        }

        /**
         * @param pacFilePort Port number for firewall to serve PAC file.
         * 
         * @return builder
         * 
         */
        public Builder pacFilePort(Integer pacFilePort) {
            return pacFilePort(Output.of(pacFilePort));
        }

        public ExplicitProxyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy