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

com.pulumi.azure.network.RouteServerBgpConnectionArgs 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.azure.network;

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


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

    public static final RouteServerBgpConnectionArgs Empty = new RouteServerBgpConnectionArgs();

    /**
     * The name which should be used for this Route Server Bgp Connection. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Route Server Bgp Connection. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The peer autonomous system number for the Route Server Bgp Connection. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="peerAsn", required=true)
    private Output peerAsn;

    /**
     * @return The peer autonomous system number for the Route Server Bgp Connection. Changing this forces a new resource to be created.
     * 
     */
    public Output peerAsn() {
        return this.peerAsn;
    }

    /**
     * The peer ip address for the Route Server Bgp Connection. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="peerIp", required=true)
    private Output peerIp;

    /**
     * @return The peer ip address for the Route Server Bgp Connection. Changing this forces a new resource to be created.
     * 
     */
    public Output peerIp() {
        return this.peerIp;
    }

    /**
     * The ID of the Route Server within which this Bgp connection should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="routeServerId", required=true)
    private Output routeServerId;

    /**
     * @return The ID of the Route Server within which this Bgp connection should be created. Changing this forces a new resource to be created.
     * 
     */
    public Output routeServerId() {
        return this.routeServerId;
    }

    private RouteServerBgpConnectionArgs() {}

    private RouteServerBgpConnectionArgs(RouteServerBgpConnectionArgs $) {
        this.name = $.name;
        this.peerAsn = $.peerAsn;
        this.peerIp = $.peerIp;
        this.routeServerId = $.routeServerId;
    }

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

    public static final class Builder {
        private RouteServerBgpConnectionArgs $;

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

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

        /**
         * @param name The name which should be used for this Route Server Bgp Connection. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Route Server Bgp Connection. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param peerAsn The peer autonomous system number for the Route Server Bgp Connection. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder peerAsn(Output peerAsn) {
            $.peerAsn = peerAsn;
            return this;
        }

        /**
         * @param peerAsn The peer autonomous system number for the Route Server Bgp Connection. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder peerAsn(Integer peerAsn) {
            return peerAsn(Output.of(peerAsn));
        }

        /**
         * @param peerIp The peer ip address for the Route Server Bgp Connection. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder peerIp(Output peerIp) {
            $.peerIp = peerIp;
            return this;
        }

        /**
         * @param peerIp The peer ip address for the Route Server Bgp Connection. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder peerIp(String peerIp) {
            return peerIp(Output.of(peerIp));
        }

        /**
         * @param routeServerId The ID of the Route Server within which this Bgp connection should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder routeServerId(Output routeServerId) {
            $.routeServerId = routeServerId;
            return this;
        }

        /**
         * @param routeServerId The ID of the Route Server within which this Bgp connection should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder routeServerId(String routeServerId) {
            return routeServerId(Output.of(routeServerId));
        }

        public RouteServerBgpConnectionArgs build() {
            if ($.peerAsn == null) {
                throw new MissingRequiredPropertyException("RouteServerBgpConnectionArgs", "peerAsn");
            }
            if ($.peerIp == null) {
                throw new MissingRequiredPropertyException("RouteServerBgpConnectionArgs", "peerIp");
            }
            if ($.routeServerId == null) {
                throw new MissingRequiredPropertyException("RouteServerBgpConnectionArgs", "routeServerId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy