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

com.pulumi.azure.network.inputs.RouteTableRouteArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.15.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.azure.network.inputs;

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


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

    public static final RouteTableRouteArgs Empty = new RouteTableRouteArgs();

    /**
     * The destination to which the route applies. Can be CIDR (such as `10.1.0.0/16`) or [Azure Service Tag](https://docs.microsoft.com/azure/virtual-network/service-tags-overview) (such as `ApiManagement`, `AzureBackup` or `AzureMonitor`) format.
     * 
     */
    @Import(name="addressPrefix", required=true)
    private Output addressPrefix;

    /**
     * @return The destination to which the route applies. Can be CIDR (such as `10.1.0.0/16`) or [Azure Service Tag](https://docs.microsoft.com/azure/virtual-network/service-tags-overview) (such as `ApiManagement`, `AzureBackup` or `AzureMonitor`) format.
     * 
     */
    public Output addressPrefix() {
        return this.addressPrefix;
    }

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

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

    /**
     * Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is `VirtualAppliance`.
     * 
     */
    @Import(name="nextHopInIpAddress")
    private @Nullable Output nextHopInIpAddress;

    /**
     * @return Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is `VirtualAppliance`.
     * 
     */
    public Optional> nextHopInIpAddress() {
        return Optional.ofNullable(this.nextHopInIpAddress);
    }

    /**
     * The type of Azure hop the packet should be sent to. Possible values are `VirtualNetworkGateway`, `VnetLocal`, `Internet`, `VirtualAppliance` and `None`.
     * 
     */
    @Import(name="nextHopType", required=true)
    private Output nextHopType;

    /**
     * @return The type of Azure hop the packet should be sent to. Possible values are `VirtualNetworkGateway`, `VnetLocal`, `Internet`, `VirtualAppliance` and `None`.
     * 
     */
    public Output nextHopType() {
        return this.nextHopType;
    }

    private RouteTableRouteArgs() {}

    private RouteTableRouteArgs(RouteTableRouteArgs $) {
        this.addressPrefix = $.addressPrefix;
        this.name = $.name;
        this.nextHopInIpAddress = $.nextHopInIpAddress;
        this.nextHopType = $.nextHopType;
    }

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

    public static final class Builder {
        private RouteTableRouteArgs $;

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

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

        /**
         * @param addressPrefix The destination to which the route applies. Can be CIDR (such as `10.1.0.0/16`) or [Azure Service Tag](https://docs.microsoft.com/azure/virtual-network/service-tags-overview) (such as `ApiManagement`, `AzureBackup` or `AzureMonitor`) format.
         * 
         * @return builder
         * 
         */
        public Builder addressPrefix(Output addressPrefix) {
            $.addressPrefix = addressPrefix;
            return this;
        }

        /**
         * @param addressPrefix The destination to which the route applies. Can be CIDR (such as `10.1.0.0/16`) or [Azure Service Tag](https://docs.microsoft.com/azure/virtual-network/service-tags-overview) (such as `ApiManagement`, `AzureBackup` or `AzureMonitor`) format.
         * 
         * @return builder
         * 
         */
        public Builder addressPrefix(String addressPrefix) {
            return addressPrefix(Output.of(addressPrefix));
        }

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

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

        /**
         * @param nextHopInIpAddress Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is `VirtualAppliance`.
         * 
         * @return builder
         * 
         */
        public Builder nextHopInIpAddress(@Nullable Output nextHopInIpAddress) {
            $.nextHopInIpAddress = nextHopInIpAddress;
            return this;
        }

        /**
         * @param nextHopInIpAddress Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is `VirtualAppliance`.
         * 
         * @return builder
         * 
         */
        public Builder nextHopInIpAddress(String nextHopInIpAddress) {
            return nextHopInIpAddress(Output.of(nextHopInIpAddress));
        }

        /**
         * @param nextHopType The type of Azure hop the packet should be sent to. Possible values are `VirtualNetworkGateway`, `VnetLocal`, `Internet`, `VirtualAppliance` and `None`.
         * 
         * @return builder
         * 
         */
        public Builder nextHopType(Output nextHopType) {
            $.nextHopType = nextHopType;
            return this;
        }

        /**
         * @param nextHopType The type of Azure hop the packet should be sent to. Possible values are `VirtualNetworkGateway`, `VnetLocal`, `Internet`, `VirtualAppliance` and `None`.
         * 
         * @return builder
         * 
         */
        public Builder nextHopType(String nextHopType) {
            return nextHopType(Output.of(nextHopType));
        }

        public RouteTableRouteArgs build() {
            if ($.addressPrefix == null) {
                throw new MissingRequiredPropertyException("RouteTableRouteArgs", "addressPrefix");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("RouteTableRouteArgs", "name");
            }
            if ($.nextHopType == null) {
                throw new MissingRequiredPropertyException("RouteTableRouteArgs", "nextHopType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy