// *** 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.VirtualHubConnectionRoutingPropagatedRouteTable;
import com.pulumi.azure.network.outputs.VirtualHubConnectionRoutingStaticVnetRoute;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class VirtualHubConnectionRouting {
    /**
     * @return The ID of the route table associated with this Virtual Hub connection.
     * 
     */
    private @Nullable String associatedRouteTableId;
    /**
     * @return A `propagated_route_table` block as defined below.
     * 
     */
    private @Nullable VirtualHubConnectionRoutingPropagatedRouteTable propagatedRouteTable;
    /**
     * @return A `static_vnet_route` block as defined below.
     * 
     */
    private @Nullable List<VirtualHubConnectionRoutingStaticVnetRoute> staticVnetRoutes;

    private VirtualHubConnectionRouting() {}
    /**
     * @return The ID of the route table associated with this Virtual Hub connection.
     * 
     */
    public Optional<String> associatedRouteTableId() {
        return Optional.ofNullable(this.associatedRouteTableId);
    }
    /**
     * @return A `propagated_route_table` block as defined below.
     * 
     */
    public Optional<VirtualHubConnectionRoutingPropagatedRouteTable> propagatedRouteTable() {
        return Optional.ofNullable(this.propagatedRouteTable);
    }
    /**
     * @return A `static_vnet_route` block as defined below.
     * 
     */
    public List<VirtualHubConnectionRoutingStaticVnetRoute> staticVnetRoutes() {
        return this.staticVnetRoutes == null ? List.of() : this.staticVnetRoutes;
    }

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

    public static Builder builder(VirtualHubConnectionRouting defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String associatedRouteTableId;
        private @Nullable VirtualHubConnectionRoutingPropagatedRouteTable propagatedRouteTable;
        private @Nullable List<VirtualHubConnectionRoutingStaticVnetRoute> staticVnetRoutes;
        public Builder() {}
        public Builder(VirtualHubConnectionRouting defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.associatedRouteTableId = defaults.associatedRouteTableId;
    	      this.propagatedRouteTable = defaults.propagatedRouteTable;
    	      this.staticVnetRoutes = defaults.staticVnetRoutes;
        }

        @CustomType.Setter
        public Builder associatedRouteTableId(@Nullable String associatedRouteTableId) {
            this.associatedRouteTableId = associatedRouteTableId;
            return this;
        }
        @CustomType.Setter
        public Builder propagatedRouteTable(@Nullable VirtualHubConnectionRoutingPropagatedRouteTable propagatedRouteTable) {
            this.propagatedRouteTable = propagatedRouteTable;
            return this;
        }
        @CustomType.Setter
        public Builder staticVnetRoutes(@Nullable List<VirtualHubConnectionRoutingStaticVnetRoute> staticVnetRoutes) {
            this.staticVnetRoutes = staticVnetRoutes;
            return this;
        }
        public Builder staticVnetRoutes(VirtualHubConnectionRoutingStaticVnetRoute... staticVnetRoutes) {
            return staticVnetRoutes(List.of(staticVnetRoutes));
        }
        public VirtualHubConnectionRouting build() {
            final var o = new VirtualHubConnectionRouting();
            o.associatedRouteTableId = associatedRouteTableId;
            o.propagatedRouteTable = propagatedRouteTable;
            o.staticVnetRoutes = staticVnetRoutes;
            return o;
        }
    }
}
