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

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

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


/**
 * The routing policy object used in a RoutingIntent resource.
 * 
 */
public final class RoutingPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final RoutingPolicyArgs Empty = new RoutingPolicyArgs();

    /**
     * List of all destinations which this routing policy is applicable to (for example: Internet, PrivateTraffic).
     * 
     */
    @Import(name="destinations", required=true)
    private Output> destinations;

    /**
     * @return List of all destinations which this routing policy is applicable to (for example: Internet, PrivateTraffic).
     * 
     */
    public Output> destinations() {
        return this.destinations;
    }

    /**
     * The unique name for the routing policy.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The unique name for the routing policy.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The next hop resource id on which this routing policy is applicable to.
     * 
     */
    @Import(name="nextHop", required=true)
    private Output nextHop;

    /**
     * @return The next hop resource id on which this routing policy is applicable to.
     * 
     */
    public Output nextHop() {
        return this.nextHop;
    }

    private RoutingPolicyArgs() {}

    private RoutingPolicyArgs(RoutingPolicyArgs $) {
        this.destinations = $.destinations;
        this.name = $.name;
        this.nextHop = $.nextHop;
    }

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

    public static final class Builder {
        private RoutingPolicyArgs $;

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

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

        /**
         * @param destinations List of all destinations which this routing policy is applicable to (for example: Internet, PrivateTraffic).
         * 
         * @return builder
         * 
         */
        public Builder destinations(Output> destinations) {
            $.destinations = destinations;
            return this;
        }

        /**
         * @param destinations List of all destinations which this routing policy is applicable to (for example: Internet, PrivateTraffic).
         * 
         * @return builder
         * 
         */
        public Builder destinations(List destinations) {
            return destinations(Output.of(destinations));
        }

        /**
         * @param destinations List of all destinations which this routing policy is applicable to (for example: Internet, PrivateTraffic).
         * 
         * @return builder
         * 
         */
        public Builder destinations(String... destinations) {
            return destinations(List.of(destinations));
        }

        /**
         * @param name The unique name for the routing policy.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param nextHop The next hop resource id on which this routing policy is applicable to.
         * 
         * @return builder
         * 
         */
        public Builder nextHop(Output nextHop) {
            $.nextHop = nextHop;
            return this;
        }

        /**
         * @param nextHop The next hop resource id on which this routing policy is applicable to.
         * 
         * @return builder
         * 
         */
        public Builder nextHop(String nextHop) {
            return nextHop(Output.of(nextHop));
        }

        public RoutingPolicyArgs build() {
            if ($.destinations == null) {
                throw new MissingRequiredPropertyException("RoutingPolicyArgs", "destinations");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("RoutingPolicyArgs", "name");
            }
            if ($.nextHop == null) {
                throw new MissingRequiredPropertyException("RoutingPolicyArgs", "nextHop");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy