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

com.pulumi.azurenative.network.inputs.ApplicationGatewayBackendHttpSettingsArgs 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.network.inputs;

import com.pulumi.azurenative.network.enums.ApplicationGatewayCookieBasedAffinity;
import com.pulumi.azurenative.network.enums.ApplicationGatewayProtocol;
import com.pulumi.azurenative.network.inputs.ApplicationGatewayConnectionDrainingArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import com.pulumi.core.Either;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Backend address pool settings of an application gateway.
 * 
 */
public final class ApplicationGatewayBackendHttpSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationGatewayBackendHttpSettingsArgs Empty = new ApplicationGatewayBackendHttpSettingsArgs();

    /**
     * Cookie name to use for the affinity cookie.
     * 
     */
    @Import(name="affinityCookieName")
    private @Nullable Output affinityCookieName;

    /**
     * @return Cookie name to use for the affinity cookie.
     * 
     */
    public Optional> affinityCookieName() {
        return Optional.ofNullable(this.affinityCookieName);
    }

    /**
     * Array of references to application gateway authentication certificates.
     * 
     */
    @Import(name="authenticationCertificates")
    private @Nullable Output> authenticationCertificates;

    /**
     * @return Array of references to application gateway authentication certificates.
     * 
     */
    public Optional>> authenticationCertificates() {
        return Optional.ofNullable(this.authenticationCertificates);
    }

    /**
     * Connection draining of the backend http settings resource.
     * 
     */
    @Import(name="connectionDraining")
    private @Nullable Output connectionDraining;

    /**
     * @return Connection draining of the backend http settings resource.
     * 
     */
    public Optional> connectionDraining() {
        return Optional.ofNullable(this.connectionDraining);
    }

    /**
     * Cookie based affinity.
     * 
     */
    @Import(name="cookieBasedAffinity")
    private @Nullable Output> cookieBasedAffinity;

    /**
     * @return Cookie based affinity.
     * 
     */
    public Optional>> cookieBasedAffinity() {
        return Optional.ofNullable(this.cookieBasedAffinity);
    }

    /**
     * Host header to be sent to the backend servers.
     * 
     */
    @Import(name="hostName")
    private @Nullable Output hostName;

    /**
     * @return Host header to be sent to the backend servers.
     * 
     */
    public Optional> hostName() {
        return Optional.ofNullable(this.hostName);
    }

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Resource ID.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Name of the backend http settings that is unique within an Application Gateway.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the backend http settings that is unique within an Application Gateway.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value is null.
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return Path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value is null.
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * Whether to pick host header should be picked from the host name of the backend server. Default value is false.
     * 
     */
    @Import(name="pickHostNameFromBackendAddress")
    private @Nullable Output pickHostNameFromBackendAddress;

    /**
     * @return Whether to pick host header should be picked from the host name of the backend server. Default value is false.
     * 
     */
    public Optional> pickHostNameFromBackendAddress() {
        return Optional.ofNullable(this.pickHostNameFromBackendAddress);
    }

    /**
     * The destination port on the backend.
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return The destination port on the backend.
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * Probe resource of an application gateway.
     * 
     */
    @Import(name="probe")
    private @Nullable Output probe;

    /**
     * @return Probe resource of an application gateway.
     * 
     */
    public Optional> probe() {
        return Optional.ofNullable(this.probe);
    }

    /**
     * Whether the probe is enabled. Default value is false.
     * 
     */
    @Import(name="probeEnabled")
    private @Nullable Output probeEnabled;

    /**
     * @return Whether the probe is enabled. Default value is false.
     * 
     */
    public Optional> probeEnabled() {
        return Optional.ofNullable(this.probeEnabled);
    }

    /**
     * The protocol used to communicate with the backend.
     * 
     */
    @Import(name="protocol")
    private @Nullable Output> protocol;

    /**
     * @return The protocol used to communicate with the backend.
     * 
     */
    public Optional>> protocol() {
        return Optional.ofNullable(this.protocol);
    }

    /**
     * Request timeout in seconds. Application Gateway will fail the request if response is not received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds.
     * 
     */
    @Import(name="requestTimeout")
    private @Nullable Output requestTimeout;

    /**
     * @return Request timeout in seconds. Application Gateway will fail the request if response is not received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds.
     * 
     */
    public Optional> requestTimeout() {
        return Optional.ofNullable(this.requestTimeout);
    }

    /**
     * Array of references to application gateway trusted root certificates.
     * 
     */
    @Import(name="trustedRootCertificates")
    private @Nullable Output> trustedRootCertificates;

    /**
     * @return Array of references to application gateway trusted root certificates.
     * 
     */
    public Optional>> trustedRootCertificates() {
        return Optional.ofNullable(this.trustedRootCertificates);
    }

    private ApplicationGatewayBackendHttpSettingsArgs() {}

    private ApplicationGatewayBackendHttpSettingsArgs(ApplicationGatewayBackendHttpSettingsArgs $) {
        this.affinityCookieName = $.affinityCookieName;
        this.authenticationCertificates = $.authenticationCertificates;
        this.connectionDraining = $.connectionDraining;
        this.cookieBasedAffinity = $.cookieBasedAffinity;
        this.hostName = $.hostName;
        this.id = $.id;
        this.name = $.name;
        this.path = $.path;
        this.pickHostNameFromBackendAddress = $.pickHostNameFromBackendAddress;
        this.port = $.port;
        this.probe = $.probe;
        this.probeEnabled = $.probeEnabled;
        this.protocol = $.protocol;
        this.requestTimeout = $.requestTimeout;
        this.trustedRootCertificates = $.trustedRootCertificates;
    }

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

    public static final class Builder {
        private ApplicationGatewayBackendHttpSettingsArgs $;

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

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

        /**
         * @param affinityCookieName Cookie name to use for the affinity cookie.
         * 
         * @return builder
         * 
         */
        public Builder affinityCookieName(@Nullable Output affinityCookieName) {
            $.affinityCookieName = affinityCookieName;
            return this;
        }

        /**
         * @param affinityCookieName Cookie name to use for the affinity cookie.
         * 
         * @return builder
         * 
         */
        public Builder affinityCookieName(String affinityCookieName) {
            return affinityCookieName(Output.of(affinityCookieName));
        }

        /**
         * @param authenticationCertificates Array of references to application gateway authentication certificates.
         * 
         * @return builder
         * 
         */
        public Builder authenticationCertificates(@Nullable Output> authenticationCertificates) {
            $.authenticationCertificates = authenticationCertificates;
            return this;
        }

        /**
         * @param authenticationCertificates Array of references to application gateway authentication certificates.
         * 
         * @return builder
         * 
         */
        public Builder authenticationCertificates(List authenticationCertificates) {
            return authenticationCertificates(Output.of(authenticationCertificates));
        }

        /**
         * @param authenticationCertificates Array of references to application gateway authentication certificates.
         * 
         * @return builder
         * 
         */
        public Builder authenticationCertificates(SubResourceArgs... authenticationCertificates) {
            return authenticationCertificates(List.of(authenticationCertificates));
        }

        /**
         * @param connectionDraining Connection draining of the backend http settings resource.
         * 
         * @return builder
         * 
         */
        public Builder connectionDraining(@Nullable Output connectionDraining) {
            $.connectionDraining = connectionDraining;
            return this;
        }

        /**
         * @param connectionDraining Connection draining of the backend http settings resource.
         * 
         * @return builder
         * 
         */
        public Builder connectionDraining(ApplicationGatewayConnectionDrainingArgs connectionDraining) {
            return connectionDraining(Output.of(connectionDraining));
        }

        /**
         * @param cookieBasedAffinity Cookie based affinity.
         * 
         * @return builder
         * 
         */
        public Builder cookieBasedAffinity(@Nullable Output> cookieBasedAffinity) {
            $.cookieBasedAffinity = cookieBasedAffinity;
            return this;
        }

        /**
         * @param cookieBasedAffinity Cookie based affinity.
         * 
         * @return builder
         * 
         */
        public Builder cookieBasedAffinity(Either cookieBasedAffinity) {
            return cookieBasedAffinity(Output.of(cookieBasedAffinity));
        }

        /**
         * @param cookieBasedAffinity Cookie based affinity.
         * 
         * @return builder
         * 
         */
        public Builder cookieBasedAffinity(String cookieBasedAffinity) {
            return cookieBasedAffinity(Either.ofLeft(cookieBasedAffinity));
        }

        /**
         * @param cookieBasedAffinity Cookie based affinity.
         * 
         * @return builder
         * 
         */
        public Builder cookieBasedAffinity(ApplicationGatewayCookieBasedAffinity cookieBasedAffinity) {
            return cookieBasedAffinity(Either.ofRight(cookieBasedAffinity));
        }

        /**
         * @param hostName Host header to be sent to the backend servers.
         * 
         * @return builder
         * 
         */
        public Builder hostName(@Nullable Output hostName) {
            $.hostName = hostName;
            return this;
        }

        /**
         * @param hostName Host header to be sent to the backend servers.
         * 
         * @return builder
         * 
         */
        public Builder hostName(String hostName) {
            return hostName(Output.of(hostName));
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param name Name of the backend http settings that is unique within an Application Gateway.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the backend http settings that is unique within an Application Gateway.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param path Path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value is null.
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path Path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value is null.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param pickHostNameFromBackendAddress Whether to pick host header should be picked from the host name of the backend server. Default value is false.
         * 
         * @return builder
         * 
         */
        public Builder pickHostNameFromBackendAddress(@Nullable Output pickHostNameFromBackendAddress) {
            $.pickHostNameFromBackendAddress = pickHostNameFromBackendAddress;
            return this;
        }

        /**
         * @param pickHostNameFromBackendAddress Whether to pick host header should be picked from the host name of the backend server. Default value is false.
         * 
         * @return builder
         * 
         */
        public Builder pickHostNameFromBackendAddress(Boolean pickHostNameFromBackendAddress) {
            return pickHostNameFromBackendAddress(Output.of(pickHostNameFromBackendAddress));
        }

        /**
         * @param port The destination port on the backend.
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port The destination port on the backend.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        /**
         * @param probe Probe resource of an application gateway.
         * 
         * @return builder
         * 
         */
        public Builder probe(@Nullable Output probe) {
            $.probe = probe;
            return this;
        }

        /**
         * @param probe Probe resource of an application gateway.
         * 
         * @return builder
         * 
         */
        public Builder probe(SubResourceArgs probe) {
            return probe(Output.of(probe));
        }

        /**
         * @param probeEnabled Whether the probe is enabled. Default value is false.
         * 
         * @return builder
         * 
         */
        public Builder probeEnabled(@Nullable Output probeEnabled) {
            $.probeEnabled = probeEnabled;
            return this;
        }

        /**
         * @param probeEnabled Whether the probe is enabled. Default value is false.
         * 
         * @return builder
         * 
         */
        public Builder probeEnabled(Boolean probeEnabled) {
            return probeEnabled(Output.of(probeEnabled));
        }

        /**
         * @param protocol The protocol used to communicate with the backend.
         * 
         * @return builder
         * 
         */
        public Builder protocol(@Nullable Output> protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol The protocol used to communicate with the backend.
         * 
         * @return builder
         * 
         */
        public Builder protocol(Either protocol) {
            return protocol(Output.of(protocol));
        }

        /**
         * @param protocol The protocol used to communicate with the backend.
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Either.ofLeft(protocol));
        }

        /**
         * @param protocol The protocol used to communicate with the backend.
         * 
         * @return builder
         * 
         */
        public Builder protocol(ApplicationGatewayProtocol protocol) {
            return protocol(Either.ofRight(protocol));
        }

        /**
         * @param requestTimeout Request timeout in seconds. Application Gateway will fail the request if response is not received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds.
         * 
         * @return builder
         * 
         */
        public Builder requestTimeout(@Nullable Output requestTimeout) {
            $.requestTimeout = requestTimeout;
            return this;
        }

        /**
         * @param requestTimeout Request timeout in seconds. Application Gateway will fail the request if response is not received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds.
         * 
         * @return builder
         * 
         */
        public Builder requestTimeout(Integer requestTimeout) {
            return requestTimeout(Output.of(requestTimeout));
        }

        /**
         * @param trustedRootCertificates Array of references to application gateway trusted root certificates.
         * 
         * @return builder
         * 
         */
        public Builder trustedRootCertificates(@Nullable Output> trustedRootCertificates) {
            $.trustedRootCertificates = trustedRootCertificates;
            return this;
        }

        /**
         * @param trustedRootCertificates Array of references to application gateway trusted root certificates.
         * 
         * @return builder
         * 
         */
        public Builder trustedRootCertificates(List trustedRootCertificates) {
            return trustedRootCertificates(Output.of(trustedRootCertificates));
        }

        /**
         * @param trustedRootCertificates Array of references to application gateway trusted root certificates.
         * 
         * @return builder
         * 
         */
        public Builder trustedRootCertificates(SubResourceArgs... trustedRootCertificates) {
            return trustedRootCertificates(List.of(trustedRootCertificates));
        }

        public ApplicationGatewayBackendHttpSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy