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

com.pulumi.azurenative.orbital.L2ConnectionArgs 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.orbital;

import com.pulumi.azurenative.orbital.inputs.L2ConnectionsPropertiesEdgeSiteArgs;
import com.pulumi.azurenative.orbital.inputs.L2ConnectionsPropertiesGroundStationArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final L2ConnectionArgs Empty = new L2ConnectionArgs();

    /**
     * A reference to an Microsoft.Orbital/edgeSites resource to route traffic for.
     * 
     */
    @Import(name="edgeSite", required=true)
    private Output edgeSite;

    /**
     * @return A reference to an Microsoft.Orbital/edgeSites resource to route traffic for.
     * 
     */
    public Output edgeSite() {
        return this.edgeSite;
    }

    /**
     * A reference to an Microsoft.Orbital/groundStations resource to route traffic for.
     * 
     */
    @Import(name="groundStation", required=true)
    private Output groundStation;

    /**
     * @return A reference to an Microsoft.Orbital/groundStations resource to route traffic for.
     * 
     */
    public Output groundStation() {
        return this.groundStation;
    }

    /**
     * L2 Connection name.
     * 
     */
    @Import(name="l2ConnectionName")
    private @Nullable Output l2ConnectionName;

    /**
     * @return L2 Connection name.
     * 
     */
    public Optional> l2ConnectionName() {
        return Optional.ofNullable(this.l2ConnectionName);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The unique name of the partner router that cross-connects with the Orbital Edge Router at the ground station site.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The unique name of the partner router that cross-connects with the Orbital Edge Router at the ground station site.
     * 
     */
    public Output name() {
        return this.name;
    }

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

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    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);
    }

    /**
     * The VLAN ID for the L2 connection.
     * 
     */
    @Import(name="vlanId", required=true)
    private Output vlanId;

    /**
     * @return The VLAN ID for the L2 connection.
     * 
     */
    public Output vlanId() {
        return this.vlanId;
    }

    private L2ConnectionArgs() {}

    private L2ConnectionArgs(L2ConnectionArgs $) {
        this.edgeSite = $.edgeSite;
        this.groundStation = $.groundStation;
        this.l2ConnectionName = $.l2ConnectionName;
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.vlanId = $.vlanId;
    }

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

    public static final class Builder {
        private L2ConnectionArgs $;

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

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

        /**
         * @param edgeSite A reference to an Microsoft.Orbital/edgeSites resource to route traffic for.
         * 
         * @return builder
         * 
         */
        public Builder edgeSite(Output edgeSite) {
            $.edgeSite = edgeSite;
            return this;
        }

        /**
         * @param edgeSite A reference to an Microsoft.Orbital/edgeSites resource to route traffic for.
         * 
         * @return builder
         * 
         */
        public Builder edgeSite(L2ConnectionsPropertiesEdgeSiteArgs edgeSite) {
            return edgeSite(Output.of(edgeSite));
        }

        /**
         * @param groundStation A reference to an Microsoft.Orbital/groundStations resource to route traffic for.
         * 
         * @return builder
         * 
         */
        public Builder groundStation(Output groundStation) {
            $.groundStation = groundStation;
            return this;
        }

        /**
         * @param groundStation A reference to an Microsoft.Orbital/groundStations resource to route traffic for.
         * 
         * @return builder
         * 
         */
        public Builder groundStation(L2ConnectionsPropertiesGroundStationArgs groundStation) {
            return groundStation(Output.of(groundStation));
        }

        /**
         * @param l2ConnectionName L2 Connection name.
         * 
         * @return builder
         * 
         */
        public Builder l2ConnectionName(@Nullable Output l2ConnectionName) {
            $.l2ConnectionName = l2ConnectionName;
            return this;
        }

        /**
         * @param l2ConnectionName L2 Connection name.
         * 
         * @return builder
         * 
         */
        public Builder l2ConnectionName(String l2ConnectionName) {
            return l2ConnectionName(Output.of(l2ConnectionName));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The unique name of the partner router that cross-connects with the Orbital Edge Router at the ground station site.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The unique name of the partner router that cross-connects with the Orbital Edge Router at the ground station site.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @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 vlanId The VLAN ID for the L2 connection.
         * 
         * @return builder
         * 
         */
        public Builder vlanId(Output vlanId) {
            $.vlanId = vlanId;
            return this;
        }

        /**
         * @param vlanId The VLAN ID for the L2 connection.
         * 
         * @return builder
         * 
         */
        public Builder vlanId(Integer vlanId) {
            return vlanId(Output.of(vlanId));
        }

        public L2ConnectionArgs build() {
            if ($.edgeSite == null) {
                throw new MissingRequiredPropertyException("L2ConnectionArgs", "edgeSite");
            }
            if ($.groundStation == null) {
                throw new MissingRequiredPropertyException("L2ConnectionArgs", "groundStation");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("L2ConnectionArgs", "name");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("L2ConnectionArgs", "resourceGroupName");
            }
            if ($.vlanId == null) {
                throw new MissingRequiredPropertyException("L2ConnectionArgs", "vlanId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy