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

com.pulumi.azurenative.network.VirtualRouterArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.network.inputs.SubResourceArgs;
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.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VirtualRouterArgs Empty = new VirtualRouterArgs();

    /**
     * The Gateway on which VirtualRouter is hosted.
     * 
     */
    @Import(name="hostedGateway")
    private @Nullable Output hostedGateway;

    /**
     * @return The Gateway on which VirtualRouter is hosted.
     * 
     */
    public Optional> hostedGateway() {
        return Optional.ofNullable(this.hostedGateway);
    }

    /**
     * The Subnet on which VirtualRouter is hosted.
     * 
     */
    @Import(name="hostedSubnet")
    private @Nullable Output hostedSubnet;

    /**
     * @return The Subnet on which VirtualRouter is hosted.
     * 
     */
    public Optional> hostedSubnet() {
        return Optional.ofNullable(this.hostedSubnet);
    }

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

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

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

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

    /**
     * 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;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

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

    /**
     * VirtualRouter ASN.
     * 
     */
    @Import(name="virtualRouterAsn")
    private @Nullable Output virtualRouterAsn;

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

    /**
     * VirtualRouter IPs.
     * 
     */
    @Import(name="virtualRouterIps")
    private @Nullable Output> virtualRouterIps;

    /**
     * @return VirtualRouter IPs.
     * 
     */
    public Optional>> virtualRouterIps() {
        return Optional.ofNullable(this.virtualRouterIps);
    }

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

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

    private VirtualRouterArgs() {}

    private VirtualRouterArgs(VirtualRouterArgs $) {
        this.hostedGateway = $.hostedGateway;
        this.hostedSubnet = $.hostedSubnet;
        this.id = $.id;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.virtualRouterAsn = $.virtualRouterAsn;
        this.virtualRouterIps = $.virtualRouterIps;
        this.virtualRouterName = $.virtualRouterName;
    }

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

    public static final class Builder {
        private VirtualRouterArgs $;

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

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

        /**
         * @param hostedGateway The Gateway on which VirtualRouter is hosted.
         * 
         * @return builder
         * 
         */
        public Builder hostedGateway(@Nullable Output hostedGateway) {
            $.hostedGateway = hostedGateway;
            return this;
        }

        /**
         * @param hostedGateway The Gateway on which VirtualRouter is hosted.
         * 
         * @return builder
         * 
         */
        public Builder hostedGateway(SubResourceArgs hostedGateway) {
            return hostedGateway(Output.of(hostedGateway));
        }

        /**
         * @param hostedSubnet The Subnet on which VirtualRouter is hosted.
         * 
         * @return builder
         * 
         */
        public Builder hostedSubnet(@Nullable Output hostedSubnet) {
            $.hostedSubnet = hostedSubnet;
            return this;
        }

        /**
         * @param hostedSubnet The Subnet on which VirtualRouter is hosted.
         * 
         * @return builder
         * 
         */
        public Builder hostedSubnet(SubResourceArgs hostedSubnet) {
            return hostedSubnet(Output.of(hostedSubnet));
        }

        /**
         * @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 location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

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

        /**
         * @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 tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

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

        /**
         * @param virtualRouterIps VirtualRouter IPs.
         * 
         * @return builder
         * 
         */
        public Builder virtualRouterIps(@Nullable Output> virtualRouterIps) {
            $.virtualRouterIps = virtualRouterIps;
            return this;
        }

        /**
         * @param virtualRouterIps VirtualRouter IPs.
         * 
         * @return builder
         * 
         */
        public Builder virtualRouterIps(List virtualRouterIps) {
            return virtualRouterIps(Output.of(virtualRouterIps));
        }

        /**
         * @param virtualRouterIps VirtualRouter IPs.
         * 
         * @return builder
         * 
         */
        public Builder virtualRouterIps(String... virtualRouterIps) {
            return virtualRouterIps(List.of(virtualRouterIps));
        }

        /**
         * @param virtualRouterName The name of the Virtual Router.
         * 
         * @return builder
         * 
         */
        public Builder virtualRouterName(@Nullable 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 VirtualRouterArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("VirtualRouterArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy