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

com.pulumi.azurenative.network.VirtualHubRouteTableV2Args Maven / Gradle / Ivy

There is a newer version: 2.82.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;

import com.pulumi.azurenative.network.inputs.VirtualHubRouteV2Args;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class VirtualHubRouteTableV2Args extends com.pulumi.resources.ResourceArgs {

    public static final VirtualHubRouteTableV2Args Empty = new VirtualHubRouteTableV2Args();

    /**
     * List of all connections attached to this route table v2.
     * 
     */
    @Import(name="attachedConnections")
    private @Nullable Output> attachedConnections;

    /**
     * @return List of all connections attached to this route table v2.
     * 
     */
    public Optional>> attachedConnections() {
        return Optional.ofNullable(this.attachedConnections);
    }

    /**
     * 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 that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

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

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

    /**
     * The name of the VirtualHubRouteTableV2.
     * 
     */
    @Import(name="routeTableName")
    private @Nullable Output routeTableName;

    /**
     * @return The name of the VirtualHubRouteTableV2.
     * 
     */
    public Optional> routeTableName() {
        return Optional.ofNullable(this.routeTableName);
    }

    /**
     * List of all routes.
     * 
     */
    @Import(name="routes")
    private @Nullable Output> routes;

    /**
     * @return List of all routes.
     * 
     */
    public Optional>> routes() {
        return Optional.ofNullable(this.routes);
    }

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

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

    private VirtualHubRouteTableV2Args() {}

    private VirtualHubRouteTableV2Args(VirtualHubRouteTableV2Args $) {
        this.attachedConnections = $.attachedConnections;
        this.id = $.id;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.routeTableName = $.routeTableName;
        this.routes = $.routes;
        this.virtualHubName = $.virtualHubName;
    }

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

    public static final class Builder {
        private VirtualHubRouteTableV2Args $;

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

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

        /**
         * @param attachedConnections List of all connections attached to this route table v2.
         * 
         * @return builder
         * 
         */
        public Builder attachedConnections(@Nullable Output> attachedConnections) {
            $.attachedConnections = attachedConnections;
            return this;
        }

        /**
         * @param attachedConnections List of all connections attached to this route table v2.
         * 
         * @return builder
         * 
         */
        public Builder attachedConnections(List attachedConnections) {
            return attachedConnections(Output.of(attachedConnections));
        }

        /**
         * @param attachedConnections List of all connections attached to this route table v2.
         * 
         * @return builder
         * 
         */
        public Builder attachedConnections(String... attachedConnections) {
            return attachedConnections(List.of(attachedConnections));
        }

        /**
         * @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 that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The resource group name of the VirtualHub.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

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

        /**
         * @param routeTableName The name of the VirtualHubRouteTableV2.
         * 
         * @return builder
         * 
         */
        public Builder routeTableName(@Nullable Output routeTableName) {
            $.routeTableName = routeTableName;
            return this;
        }

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

        /**
         * @param routes List of all routes.
         * 
         * @return builder
         * 
         */
        public Builder routes(@Nullable Output> routes) {
            $.routes = routes;
            return this;
        }

        /**
         * @param routes List of all routes.
         * 
         * @return builder
         * 
         */
        public Builder routes(List routes) {
            return routes(Output.of(routes));
        }

        /**
         * @param routes List of all routes.
         * 
         * @return builder
         * 
         */
        public Builder routes(VirtualHubRouteV2Args... routes) {
            return routes(List.of(routes));
        }

        /**
         * @param virtualHubName The name of the VirtualHub.
         * 
         * @return builder
         * 
         */
        public Builder virtualHubName(Output virtualHubName) {
            $.virtualHubName = virtualHubName;
            return this;
        }

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

        public VirtualHubRouteTableV2Args build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("VirtualHubRouteTableV2Args", "resourceGroupName");
            }
            if ($.virtualHubName == null) {
                throw new MissingRequiredPropertyException("VirtualHubRouteTableV2Args", "virtualHubName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy