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

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

import com.pulumi.azurenative.network.enums.SessionAffinityEnabledState;
import com.pulumi.azurenative.network.inputs.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * A frontend endpoint used for routing.
 * 
 */
public final class FrontendEndpointArgs extends com.pulumi.resources.ResourceArgs {

    public static final FrontendEndpointArgs Empty = new FrontendEndpointArgs();

    /**
     * The host name of the frontendEndpoint. Must be a domain name.
     * 
     */
    @Import(name="hostName")
    private @Nullable Output hostName;

    /**
     * @return The host name of the frontendEndpoint. Must be a domain name.
     * 
     */
    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);
    }

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

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

    /**
     * Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
     * 
     */
    @Import(name="sessionAffinityEnabledState")
    private @Nullable Output> sessionAffinityEnabledState;

    /**
     * @return Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
     * 
     */
    public Optional>> sessionAffinityEnabledState() {
        return Optional.ofNullable(this.sessionAffinityEnabledState);
    }

    /**
     * UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.
     * 
     */
    @Import(name="sessionAffinityTtlSeconds")
    private @Nullable Output sessionAffinityTtlSeconds;

    /**
     * @return UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.
     * 
     */
    public Optional> sessionAffinityTtlSeconds() {
        return Optional.ofNullable(this.sessionAffinityTtlSeconds);
    }

    /**
     * Defines the Web Application Firewall policy for each host (if applicable)
     * 
     */
    @Import(name="webApplicationFirewallPolicyLink")
    private @Nullable Output webApplicationFirewallPolicyLink;

    /**
     * @return Defines the Web Application Firewall policy for each host (if applicable)
     * 
     */
    public Optional> webApplicationFirewallPolicyLink() {
        return Optional.ofNullable(this.webApplicationFirewallPolicyLink);
    }

    private FrontendEndpointArgs() {}

    private FrontendEndpointArgs(FrontendEndpointArgs $) {
        this.hostName = $.hostName;
        this.id = $.id;
        this.name = $.name;
        this.sessionAffinityEnabledState = $.sessionAffinityEnabledState;
        this.sessionAffinityTtlSeconds = $.sessionAffinityTtlSeconds;
        this.webApplicationFirewallPolicyLink = $.webApplicationFirewallPolicyLink;
    }

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

    public static final class Builder {
        private FrontendEndpointArgs $;

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

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

        /**
         * @param hostName The host name of the frontendEndpoint. Must be a domain name.
         * 
         * @return builder
         * 
         */
        public Builder hostName(@Nullable Output hostName) {
            $.hostName = hostName;
            return this;
        }

        /**
         * @param hostName The host name of the frontendEndpoint. Must be a domain name.
         * 
         * @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 Resource name.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param sessionAffinityEnabledState Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder sessionAffinityEnabledState(@Nullable Output> sessionAffinityEnabledState) {
            $.sessionAffinityEnabledState = sessionAffinityEnabledState;
            return this;
        }

        /**
         * @param sessionAffinityEnabledState Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder sessionAffinityEnabledState(Either sessionAffinityEnabledState) {
            return sessionAffinityEnabledState(Output.of(sessionAffinityEnabledState));
        }

        /**
         * @param sessionAffinityEnabledState Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder sessionAffinityEnabledState(String sessionAffinityEnabledState) {
            return sessionAffinityEnabledState(Either.ofLeft(sessionAffinityEnabledState));
        }

        /**
         * @param sessionAffinityEnabledState Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder sessionAffinityEnabledState(SessionAffinityEnabledState sessionAffinityEnabledState) {
            return sessionAffinityEnabledState(Either.ofRight(sessionAffinityEnabledState));
        }

        /**
         * @param sessionAffinityTtlSeconds UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.
         * 
         * @return builder
         * 
         */
        public Builder sessionAffinityTtlSeconds(@Nullable Output sessionAffinityTtlSeconds) {
            $.sessionAffinityTtlSeconds = sessionAffinityTtlSeconds;
            return this;
        }

        /**
         * @param sessionAffinityTtlSeconds UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.
         * 
         * @return builder
         * 
         */
        public Builder sessionAffinityTtlSeconds(Integer sessionAffinityTtlSeconds) {
            return sessionAffinityTtlSeconds(Output.of(sessionAffinityTtlSeconds));
        }

        /**
         * @param webApplicationFirewallPolicyLink Defines the Web Application Firewall policy for each host (if applicable)
         * 
         * @return builder
         * 
         */
        public Builder webApplicationFirewallPolicyLink(@Nullable Output webApplicationFirewallPolicyLink) {
            $.webApplicationFirewallPolicyLink = webApplicationFirewallPolicyLink;
            return this;
        }

        /**
         * @param webApplicationFirewallPolicyLink Defines the Web Application Firewall policy for each host (if applicable)
         * 
         * @return builder
         * 
         */
        public Builder webApplicationFirewallPolicyLink(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkArgs webApplicationFirewallPolicyLink) {
            return webApplicationFirewallPolicyLink(Output.of(webApplicationFirewallPolicyLink));
        }

        public FrontendEndpointArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy