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

com.pulumi.azurenative.network.inputs.ApplicationGatewayBackendSettingsArgs 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.ApplicationGatewayProtocol;
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 ApplicationGatewayBackendSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationGatewayBackendSettingsArgs Empty = new ApplicationGatewayBackendSettingsArgs();

    /**
     * Server name indication to be sent to the backend servers for Tls protocol.
     * 
     */
    @Import(name="hostName")
    private @Nullable Output hostName;

    /**
     * @return Server name indication to be sent to the backend servers for Tls protocol.
     * 
     */
    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 settings that is unique within an Application Gateway.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

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

    /**
     * Whether to pick server name indication from the host name of the backend server for Tls protocol. Default value is false.
     * 
     */
    @Import(name="pickHostNameFromBackendAddress")
    private @Nullable Output pickHostNameFromBackendAddress;

    /**
     * @return Whether to pick server name indication from the host name of the backend server for Tls protocol. 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);
    }

    /**
     * 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);
    }

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

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

    /**
     * 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 ApplicationGatewayBackendSettingsArgs() {}

    private ApplicationGatewayBackendSettingsArgs(ApplicationGatewayBackendSettingsArgs $) {
        this.hostName = $.hostName;
        this.id = $.id;
        this.name = $.name;
        this.pickHostNameFromBackendAddress = $.pickHostNameFromBackendAddress;
        this.port = $.port;
        this.probe = $.probe;
        this.protocol = $.protocol;
        this.timeout = $.timeout;
        this.trustedRootCertificates = $.trustedRootCertificates;
    }

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

    public static final class Builder {
        private ApplicationGatewayBackendSettingsArgs $;

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

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

        /**
         * @param hostName Server name indication to be sent to the backend servers for Tls protocol.
         * 
         * @return builder
         * 
         */
        public Builder hostName(@Nullable Output hostName) {
            $.hostName = hostName;
            return this;
        }

        /**
         * @param hostName Server name indication to be sent to the backend servers for Tls protocol.
         * 
         * @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 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 settings that is unique within an Application Gateway.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

        /**
         * @param pickHostNameFromBackendAddress Whether to pick server name indication from the host name of the backend server for Tls protocol. 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 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 timeout Connection timeout in seconds. Application Gateway will fail the request if response is not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds.
         * 
         * @return builder
         * 
         */
        public Builder timeout(@Nullable Output timeout) {
            $.timeout = timeout;
            return this;
        }

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

        /**
         * @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 ApplicationGatewayBackendSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy