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

com.pulumi.azurenative.network.inputs.StaticRouteArgs Maven / Gradle / Ivy

// *** 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.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * List of all Static Routes.
 * 
 */
public final class StaticRouteArgs extends com.pulumi.resources.ResourceArgs {

    public static final StaticRouteArgs Empty = new StaticRouteArgs();

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

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

    /**
     * The name of the StaticRoute that is unique within a VnetRoute.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the StaticRoute that is unique within a VnetRoute.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ip address of the next hop.
     * 
     */
    @Import(name="nextHopIpAddress")
    private @Nullable Output nextHopIpAddress;

    /**
     * @return The ip address of the next hop.
     * 
     */
    public Optional> nextHopIpAddress() {
        return Optional.ofNullable(this.nextHopIpAddress);
    }

    private StaticRouteArgs() {}

    private StaticRouteArgs(StaticRouteArgs $) {
        this.addressPrefixes = $.addressPrefixes;
        this.name = $.name;
        this.nextHopIpAddress = $.nextHopIpAddress;
    }

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

    public static final class Builder {
        private StaticRouteArgs $;

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

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

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

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

        /**
         * @param addressPrefixes List of all address prefixes.
         * 
         * @return builder
         * 
         */
        public Builder addressPrefixes(String... addressPrefixes) {
            return addressPrefixes(List.of(addressPrefixes));
        }

        /**
         * @param name The name of the StaticRoute that is unique within a VnetRoute.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the StaticRoute that is unique within a VnetRoute.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nextHopIpAddress The ip address of the next hop.
         * 
         * @return builder
         * 
         */
        public Builder nextHopIpAddress(@Nullable Output nextHopIpAddress) {
            $.nextHopIpAddress = nextHopIpAddress;
            return this;
        }

        /**
         * @param nextHopIpAddress The ip address of the next hop.
         * 
         * @return builder
         * 
         */
        public Builder nextHopIpAddress(String nextHopIpAddress) {
            return nextHopIpAddress(Output.of(nextHopIpAddress));
        }

        public StaticRouteArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy