// *** 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.azure.network.outputs;

import com.pulumi.azure.network.outputs.VpnGatewayConnectionRoutingPropagatedRouteTable;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class VpnGatewayConnectionRouting {
    /**
     * @return The ID of the Route Table associated with this VPN Connection.
     * 
     */
    private String associatedRouteTable;
    /**
     * @return The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
     * 
     */
    private @Nullable String inboundRouteMapId;
    /**
     * @return The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
     * 
     */
    private @Nullable String outboundRouteMapId;
    /**
     * @return A `propagated_route_table` block as defined below.
     * 
     */
    private @Nullable VpnGatewayConnectionRoutingPropagatedRouteTable propagatedRouteTable;

    private VpnGatewayConnectionRouting() {}
    /**
     * @return The ID of the Route Table associated with this VPN Connection.
     * 
     */
    public String associatedRouteTable() {
        return this.associatedRouteTable;
    }
    /**
     * @return The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
     * 
     */
    public Optional<String> inboundRouteMapId() {
        return Optional.ofNullable(this.inboundRouteMapId);
    }
    /**
     * @return The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
     * 
     */
    public Optional<String> outboundRouteMapId() {
        return Optional.ofNullable(this.outboundRouteMapId);
    }
    /**
     * @return A `propagated_route_table` block as defined below.
     * 
     */
    public Optional<VpnGatewayConnectionRoutingPropagatedRouteTable> propagatedRouteTable() {
        return Optional.ofNullable(this.propagatedRouteTable);
    }

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

    public static Builder builder(VpnGatewayConnectionRouting defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String associatedRouteTable;
        private @Nullable String inboundRouteMapId;
        private @Nullable String outboundRouteMapId;
        private @Nullable VpnGatewayConnectionRoutingPropagatedRouteTable propagatedRouteTable;
        public Builder() {}
        public Builder(VpnGatewayConnectionRouting defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.associatedRouteTable = defaults.associatedRouteTable;
    	      this.inboundRouteMapId = defaults.inboundRouteMapId;
    	      this.outboundRouteMapId = defaults.outboundRouteMapId;
    	      this.propagatedRouteTable = defaults.propagatedRouteTable;
        }

        @CustomType.Setter
        public Builder associatedRouteTable(String associatedRouteTable) {
            this.associatedRouteTable = Objects.requireNonNull(associatedRouteTable);
            return this;
        }
        @CustomType.Setter
        public Builder inboundRouteMapId(@Nullable String inboundRouteMapId) {
            this.inboundRouteMapId = inboundRouteMapId;
            return this;
        }
        @CustomType.Setter
        public Builder outboundRouteMapId(@Nullable String outboundRouteMapId) {
            this.outboundRouteMapId = outboundRouteMapId;
            return this;
        }
        @CustomType.Setter
        public Builder propagatedRouteTable(@Nullable VpnGatewayConnectionRoutingPropagatedRouteTable propagatedRouteTable) {
            this.propagatedRouteTable = propagatedRouteTable;
            return this;
        }
        public VpnGatewayConnectionRouting build() {
            final var o = new VpnGatewayConnectionRouting();
            o.associatedRouteTable = associatedRouteTable;
            o.inboundRouteMapId = inboundRouteMapId;
            o.outboundRouteMapId = outboundRouteMapId;
            o.propagatedRouteTable = propagatedRouteTable;
            return o;
        }
    }
}
