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

com.pulumi.azurenative.network.VirtualRouterPeeringArgs 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;

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


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

    public static final VirtualRouterPeeringArgs Empty = new VirtualRouterPeeringArgs();

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Resource ID.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Name of the virtual router peering that is unique within a virtual router.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the virtual router peering that is unique within a virtual router.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Peer ASN.
     * 
     */
    @Import(name="peerAsn")
    private @Nullable Output peerAsn;

    /**
     * @return Peer ASN.
     * 
     */
    public Optional> peerAsn() {
        return Optional.ofNullable(this.peerAsn);
    }

    /**
     * Peer IP.
     * 
     */
    @Import(name="peerIp")
    private @Nullable Output peerIp;

    /**
     * @return Peer IP.
     * 
     */
    public Optional> peerIp() {
        return Optional.ofNullable(this.peerIp);
    }

    /**
     * The name of the Virtual Router Peering.
     * 
     */
    @Import(name="peeringName")
    private @Nullable Output peeringName;

    /**
     * @return The name of the Virtual Router Peering.
     * 
     */
    public Optional> peeringName() {
        return Optional.ofNullable(this.peeringName);
    }

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

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

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

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

    private VirtualRouterPeeringArgs() {}

    private VirtualRouterPeeringArgs(VirtualRouterPeeringArgs $) {
        this.id = $.id;
        this.name = $.name;
        this.peerAsn = $.peerAsn;
        this.peerIp = $.peerIp;
        this.peeringName = $.peeringName;
        this.resourceGroupName = $.resourceGroupName;
        this.virtualRouterName = $.virtualRouterName;
    }

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

    public static final class Builder {
        private VirtualRouterPeeringArgs $;

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

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

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param name Name of the virtual router peering that is unique within a virtual router.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the virtual router peering that is unique within a virtual router.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param peerAsn Peer ASN.
         * 
         * @return builder
         * 
         */
        public Builder peerAsn(@Nullable Output peerAsn) {
            $.peerAsn = peerAsn;
            return this;
        }

        /**
         * @param peerAsn Peer ASN.
         * 
         * @return builder
         * 
         */
        public Builder peerAsn(Double peerAsn) {
            return peerAsn(Output.of(peerAsn));
        }

        /**
         * @param peerIp Peer IP.
         * 
         * @return builder
         * 
         */
        public Builder peerIp(@Nullable Output peerIp) {
            $.peerIp = peerIp;
            return this;
        }

        /**
         * @param peerIp Peer IP.
         * 
         * @return builder
         * 
         */
        public Builder peerIp(String peerIp) {
            return peerIp(Output.of(peerIp));
        }

        /**
         * @param peeringName The name of the Virtual Router Peering.
         * 
         * @return builder
         * 
         */
        public Builder peeringName(@Nullable Output peeringName) {
            $.peeringName = peeringName;
            return this;
        }

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

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

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

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

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

        public VirtualRouterPeeringArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("VirtualRouterPeeringArgs", "resourceGroupName");
            }
            if ($.virtualRouterName == null) {
                throw new MissingRequiredPropertyException("VirtualRouterPeeringArgs", "virtualRouterName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy