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

com.pulumi.azurenative.network.inputs.VnetRouteArgs 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.inputs.StaticRouteArgs;
import com.pulumi.azurenative.network.inputs.StaticRoutesConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * List of routes that control routing from VirtualHub into a virtual network connection.
 * 
 */
public final class VnetRouteArgs extends com.pulumi.resources.ResourceArgs {

    public static final VnetRouteArgs Empty = new VnetRouteArgs();

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

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

    /**
     * Configuration for static routes on this HubVnetConnection.
     * 
     */
    @Import(name="staticRoutesConfig")
    private @Nullable Output staticRoutesConfig;

    /**
     * @return Configuration for static routes on this HubVnetConnection.
     * 
     */
    public Optional> staticRoutesConfig() {
        return Optional.ofNullable(this.staticRoutesConfig);
    }

    private VnetRouteArgs() {}

    private VnetRouteArgs(VnetRouteArgs $) {
        this.staticRoutes = $.staticRoutes;
        this.staticRoutesConfig = $.staticRoutesConfig;
    }

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

    public static final class Builder {
        private VnetRouteArgs $;

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

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

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

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

        /**
         * @param staticRoutes List of all Static Routes.
         * 
         * @return builder
         * 
         */
        public Builder staticRoutes(StaticRouteArgs... staticRoutes) {
            return staticRoutes(List.of(staticRoutes));
        }

        /**
         * @param staticRoutesConfig Configuration for static routes on this HubVnetConnection.
         * 
         * @return builder
         * 
         */
        public Builder staticRoutesConfig(@Nullable Output staticRoutesConfig) {
            $.staticRoutesConfig = staticRoutesConfig;
            return this;
        }

        /**
         * @param staticRoutesConfig Configuration for static routes on this HubVnetConnection.
         * 
         * @return builder
         * 
         */
        public Builder staticRoutesConfig(StaticRoutesConfigArgs staticRoutesConfig) {
            return staticRoutesConfig(Output.of(staticRoutesConfig));
        }

        public VnetRouteArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy