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

com.pulumi.azurenative.network.inputs.GetVirtualNetworkPeeringArgs 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.Objects;


public final class GetVirtualNetworkPeeringArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetVirtualNetworkPeeringArgs Empty = new GetVirtualNetworkPeeringArgs();

    /**
     * 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 network.
     * 
     */
    @Import(name="virtualNetworkName", required=true)
    private Output virtualNetworkName;

    /**
     * @return The name of the virtual network.
     * 
     */
    public Output virtualNetworkName() {
        return this.virtualNetworkName;
    }

    /**
     * The name of the virtual network peering.
     * 
     */
    @Import(name="virtualNetworkPeeringName", required=true)
    private Output virtualNetworkPeeringName;

    /**
     * @return The name of the virtual network peering.
     * 
     */
    public Output virtualNetworkPeeringName() {
        return this.virtualNetworkPeeringName;
    }

    private GetVirtualNetworkPeeringArgs() {}

    private GetVirtualNetworkPeeringArgs(GetVirtualNetworkPeeringArgs $) {
        this.resourceGroupName = $.resourceGroupName;
        this.virtualNetworkName = $.virtualNetworkName;
        this.virtualNetworkPeeringName = $.virtualNetworkPeeringName;
    }

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

    public static final class Builder {
        private GetVirtualNetworkPeeringArgs $;

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

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

        /**
         * @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 virtualNetworkName The name of the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkName(Output virtualNetworkName) {
            $.virtualNetworkName = virtualNetworkName;
            return this;
        }

        /**
         * @param virtualNetworkName The name of the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkName(String virtualNetworkName) {
            return virtualNetworkName(Output.of(virtualNetworkName));
        }

        /**
         * @param virtualNetworkPeeringName The name of the virtual network peering.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkPeeringName(Output virtualNetworkPeeringName) {
            $.virtualNetworkPeeringName = virtualNetworkPeeringName;
            return this;
        }

        /**
         * @param virtualNetworkPeeringName The name of the virtual network peering.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkPeeringName(String virtualNetworkPeeringName) {
            return virtualNetworkPeeringName(Output.of(virtualNetworkPeeringName));
        }

        public GetVirtualNetworkPeeringArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetVirtualNetworkPeeringArgs", "resourceGroupName");
            }
            if ($.virtualNetworkName == null) {
                throw new MissingRequiredPropertyException("GetVirtualNetworkPeeringArgs", "virtualNetworkName");
            }
            if ($.virtualNetworkPeeringName == null) {
                throw new MissingRequiredPropertyException("GetVirtualNetworkPeeringArgs", "virtualNetworkPeeringName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy