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

com.pulumi.azurenative.network.inputs.ExpressRouteConnectionArgs 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.inputs.ExpressRouteCircuitPeeringIdArgs;
import com.pulumi.azurenative.network.inputs.RoutingConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * ExpressRouteConnection resource.
 * 
 */
public final class ExpressRouteConnectionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExpressRouteConnectionArgs Empty = new ExpressRouteConnectionArgs();

    /**
     * Authorization key to establish the connection.
     * 
     */
    @Import(name="authorizationKey")
    private @Nullable Output authorizationKey;

    /**
     * @return Authorization key to establish the connection.
     * 
     */
    public Optional> authorizationKey() {
        return Optional.ofNullable(this.authorizationKey);
    }

    /**
     * Enable internet security.
     * 
     */
    @Import(name="enableInternetSecurity")
    private @Nullable Output enableInternetSecurity;

    /**
     * @return Enable internet security.
     * 
     */
    public Optional> enableInternetSecurity() {
        return Optional.ofNullable(this.enableInternetSecurity);
    }

    /**
     * Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled.
     * 
     */
    @Import(name="enablePrivateLinkFastPath")
    private @Nullable Output enablePrivateLinkFastPath;

    /**
     * @return Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled.
     * 
     */
    public Optional> enablePrivateLinkFastPath() {
        return Optional.ofNullable(this.enablePrivateLinkFastPath);
    }

    /**
     * The ExpressRoute circuit peering.
     * 
     */
    @Import(name="expressRouteCircuitPeering", required=true)
    private Output expressRouteCircuitPeering;

    /**
     * @return The ExpressRoute circuit peering.
     * 
     */
    public Output expressRouteCircuitPeering() {
        return this.expressRouteCircuitPeering;
    }

    /**
     * Enable FastPath to vWan Firewall hub.
     * 
     */
    @Import(name="expressRouteGatewayBypass")
    private @Nullable Output expressRouteGatewayBypass;

    /**
     * @return Enable FastPath to vWan Firewall hub.
     * 
     */
    public Optional> expressRouteGatewayBypass() {
        return Optional.ofNullable(this.expressRouteGatewayBypass);
    }

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

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

    /**
     * The name of the resource.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the resource.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The Routing Configuration indicating the associated and propagated route tables on this connection.
     * 
     */
    @Import(name="routingConfiguration")
    private @Nullable Output routingConfiguration;

    /**
     * @return The Routing Configuration indicating the associated and propagated route tables on this connection.
     * 
     */
    public Optional> routingConfiguration() {
        return Optional.ofNullable(this.routingConfiguration);
    }

    /**
     * The routing weight associated to the connection.
     * 
     */
    @Import(name="routingWeight")
    private @Nullable Output routingWeight;

    /**
     * @return The routing weight associated to the connection.
     * 
     */
    public Optional> routingWeight() {
        return Optional.ofNullable(this.routingWeight);
    }

    private ExpressRouteConnectionArgs() {}

    private ExpressRouteConnectionArgs(ExpressRouteConnectionArgs $) {
        this.authorizationKey = $.authorizationKey;
        this.enableInternetSecurity = $.enableInternetSecurity;
        this.enablePrivateLinkFastPath = $.enablePrivateLinkFastPath;
        this.expressRouteCircuitPeering = $.expressRouteCircuitPeering;
        this.expressRouteGatewayBypass = $.expressRouteGatewayBypass;
        this.id = $.id;
        this.name = $.name;
        this.routingConfiguration = $.routingConfiguration;
        this.routingWeight = $.routingWeight;
    }

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

    public static final class Builder {
        private ExpressRouteConnectionArgs $;

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

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

        /**
         * @param authorizationKey Authorization key to establish the connection.
         * 
         * @return builder
         * 
         */
        public Builder authorizationKey(@Nullable Output authorizationKey) {
            $.authorizationKey = authorizationKey;
            return this;
        }

        /**
         * @param authorizationKey Authorization key to establish the connection.
         * 
         * @return builder
         * 
         */
        public Builder authorizationKey(String authorizationKey) {
            return authorizationKey(Output.of(authorizationKey));
        }

        /**
         * @param enableInternetSecurity Enable internet security.
         * 
         * @return builder
         * 
         */
        public Builder enableInternetSecurity(@Nullable Output enableInternetSecurity) {
            $.enableInternetSecurity = enableInternetSecurity;
            return this;
        }

        /**
         * @param enableInternetSecurity Enable internet security.
         * 
         * @return builder
         * 
         */
        public Builder enableInternetSecurity(Boolean enableInternetSecurity) {
            return enableInternetSecurity(Output.of(enableInternetSecurity));
        }

        /**
         * @param enablePrivateLinkFastPath Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled.
         * 
         * @return builder
         * 
         */
        public Builder enablePrivateLinkFastPath(@Nullable Output enablePrivateLinkFastPath) {
            $.enablePrivateLinkFastPath = enablePrivateLinkFastPath;
            return this;
        }

        /**
         * @param enablePrivateLinkFastPath Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled.
         * 
         * @return builder
         * 
         */
        public Builder enablePrivateLinkFastPath(Boolean enablePrivateLinkFastPath) {
            return enablePrivateLinkFastPath(Output.of(enablePrivateLinkFastPath));
        }

        /**
         * @param expressRouteCircuitPeering The ExpressRoute circuit peering.
         * 
         * @return builder
         * 
         */
        public Builder expressRouteCircuitPeering(Output expressRouteCircuitPeering) {
            $.expressRouteCircuitPeering = expressRouteCircuitPeering;
            return this;
        }

        /**
         * @param expressRouteCircuitPeering The ExpressRoute circuit peering.
         * 
         * @return builder
         * 
         */
        public Builder expressRouteCircuitPeering(ExpressRouteCircuitPeeringIdArgs expressRouteCircuitPeering) {
            return expressRouteCircuitPeering(Output.of(expressRouteCircuitPeering));
        }

        /**
         * @param expressRouteGatewayBypass Enable FastPath to vWan Firewall hub.
         * 
         * @return builder
         * 
         */
        public Builder expressRouteGatewayBypass(@Nullable Output expressRouteGatewayBypass) {
            $.expressRouteGatewayBypass = expressRouteGatewayBypass;
            return this;
        }

        /**
         * @param expressRouteGatewayBypass Enable FastPath to vWan Firewall hub.
         * 
         * @return builder
         * 
         */
        public Builder expressRouteGatewayBypass(Boolean expressRouteGatewayBypass) {
            return expressRouteGatewayBypass(Output.of(expressRouteGatewayBypass));
        }

        /**
         * @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 The name of the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param routingConfiguration The Routing Configuration indicating the associated and propagated route tables on this connection.
         * 
         * @return builder
         * 
         */
        public Builder routingConfiguration(@Nullable Output routingConfiguration) {
            $.routingConfiguration = routingConfiguration;
            return this;
        }

        /**
         * @param routingConfiguration The Routing Configuration indicating the associated and propagated route tables on this connection.
         * 
         * @return builder
         * 
         */
        public Builder routingConfiguration(RoutingConfigurationArgs routingConfiguration) {
            return routingConfiguration(Output.of(routingConfiguration));
        }

        /**
         * @param routingWeight The routing weight associated to the connection.
         * 
         * @return builder
         * 
         */
        public Builder routingWeight(@Nullable Output routingWeight) {
            $.routingWeight = routingWeight;
            return this;
        }

        /**
         * @param routingWeight The routing weight associated to the connection.
         * 
         * @return builder
         * 
         */
        public Builder routingWeight(Integer routingWeight) {
            return routingWeight(Output.of(routingWeight));
        }

        public ExpressRouteConnectionArgs build() {
            if ($.expressRouteCircuitPeering == null) {
                throw new MissingRequiredPropertyException("ExpressRouteConnectionArgs", "expressRouteCircuitPeering");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ExpressRouteConnectionArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy