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

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

There is a newer version: 2.82.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.enums.ExpressRoutePortsBillingType;
import com.pulumi.azurenative.network.enums.ExpressRoutePortsEncapsulation;
import com.pulumi.azurenative.network.inputs.ExpressRouteLinkArgs;
import com.pulumi.azurenative.network.inputs.ManagedServiceIdentityArgs;
import com.pulumi.core.Either;
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.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ExpressRoutePortArgs Empty = new ExpressRoutePortArgs();

    /**
     * Bandwidth of procured ports in Gbps.
     * 
     */
    @Import(name="bandwidthInGbps")
    private @Nullable Output bandwidthInGbps;

    /**
     * @return Bandwidth of procured ports in Gbps.
     * 
     */
    public Optional> bandwidthInGbps() {
        return Optional.ofNullable(this.bandwidthInGbps);
    }

    /**
     * The billing type of the ExpressRoutePort resource.
     * 
     */
    @Import(name="billingType")
    private @Nullable Output> billingType;

    /**
     * @return The billing type of the ExpressRoutePort resource.
     * 
     */
    public Optional>> billingType() {
        return Optional.ofNullable(this.billingType);
    }

    /**
     * Encapsulation method on physical ports.
     * 
     */
    @Import(name="encapsulation")
    private @Nullable Output> encapsulation;

    /**
     * @return Encapsulation method on physical ports.
     * 
     */
    public Optional>> encapsulation() {
        return Optional.ofNullable(this.encapsulation);
    }

    /**
     * The name of the ExpressRoutePort resource.
     * 
     */
    @Import(name="expressRoutePortName")
    private @Nullable Output expressRoutePortName;

    /**
     * @return The name of the ExpressRoutePort resource.
     * 
     */
    public Optional> expressRoutePortName() {
        return Optional.ofNullable(this.expressRoutePortName);
    }

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

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

    /**
     * The identity of ExpressRoutePort, if configured.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The identity of ExpressRoutePort, if configured.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The set of physical links of the ExpressRoutePort resource.
     * 
     */
    @Import(name="links")
    private @Nullable Output> links;

    /**
     * @return The set of physical links of the ExpressRoutePort resource.
     * 
     */
    public Optional>> links() {
        return Optional.ofNullable(this.links);
    }

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

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

    /**
     * The name of the peering location that the ExpressRoutePort is mapped to physically.
     * 
     */
    @Import(name="peeringLocation")
    private @Nullable Output peeringLocation;

    /**
     * @return The name of the peering location that the ExpressRoutePort is mapped to physically.
     * 
     */
    public Optional> peeringLocation() {
        return Optional.ofNullable(this.peeringLocation);
    }

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

    private ExpressRoutePortArgs() {}

    private ExpressRoutePortArgs(ExpressRoutePortArgs $) {
        this.bandwidthInGbps = $.bandwidthInGbps;
        this.billingType = $.billingType;
        this.encapsulation = $.encapsulation;
        this.expressRoutePortName = $.expressRoutePortName;
        this.id = $.id;
        this.identity = $.identity;
        this.links = $.links;
        this.location = $.location;
        this.peeringLocation = $.peeringLocation;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ExpressRoutePortArgs $;

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

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

        /**
         * @param bandwidthInGbps Bandwidth of procured ports in Gbps.
         * 
         * @return builder
         * 
         */
        public Builder bandwidthInGbps(@Nullable Output bandwidthInGbps) {
            $.bandwidthInGbps = bandwidthInGbps;
            return this;
        }

        /**
         * @param bandwidthInGbps Bandwidth of procured ports in Gbps.
         * 
         * @return builder
         * 
         */
        public Builder bandwidthInGbps(Integer bandwidthInGbps) {
            return bandwidthInGbps(Output.of(bandwidthInGbps));
        }

        /**
         * @param billingType The billing type of the ExpressRoutePort resource.
         * 
         * @return builder
         * 
         */
        public Builder billingType(@Nullable Output> billingType) {
            $.billingType = billingType;
            return this;
        }

        /**
         * @param billingType The billing type of the ExpressRoutePort resource.
         * 
         * @return builder
         * 
         */
        public Builder billingType(Either billingType) {
            return billingType(Output.of(billingType));
        }

        /**
         * @param billingType The billing type of the ExpressRoutePort resource.
         * 
         * @return builder
         * 
         */
        public Builder billingType(String billingType) {
            return billingType(Either.ofLeft(billingType));
        }

        /**
         * @param billingType The billing type of the ExpressRoutePort resource.
         * 
         * @return builder
         * 
         */
        public Builder billingType(ExpressRoutePortsBillingType billingType) {
            return billingType(Either.ofRight(billingType));
        }

        /**
         * @param encapsulation Encapsulation method on physical ports.
         * 
         * @return builder
         * 
         */
        public Builder encapsulation(@Nullable Output> encapsulation) {
            $.encapsulation = encapsulation;
            return this;
        }

        /**
         * @param encapsulation Encapsulation method on physical ports.
         * 
         * @return builder
         * 
         */
        public Builder encapsulation(Either encapsulation) {
            return encapsulation(Output.of(encapsulation));
        }

        /**
         * @param encapsulation Encapsulation method on physical ports.
         * 
         * @return builder
         * 
         */
        public Builder encapsulation(String encapsulation) {
            return encapsulation(Either.ofLeft(encapsulation));
        }

        /**
         * @param encapsulation Encapsulation method on physical ports.
         * 
         * @return builder
         * 
         */
        public Builder encapsulation(ExpressRoutePortsEncapsulation encapsulation) {
            return encapsulation(Either.ofRight(encapsulation));
        }

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

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

        /**
         * @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 identity The identity of ExpressRoutePort, if configured.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity The identity of ExpressRoutePort, if configured.
         * 
         * @return builder
         * 
         */
        public Builder identity(ManagedServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param links The set of physical links of the ExpressRoutePort resource.
         * 
         * @return builder
         * 
         */
        public Builder links(@Nullable Output> links) {
            $.links = links;
            return this;
        }

        /**
         * @param links The set of physical links of the ExpressRoutePort resource.
         * 
         * @return builder
         * 
         */
        public Builder links(List links) {
            return links(Output.of(links));
        }

        /**
         * @param links The set of physical links of the ExpressRoutePort resource.
         * 
         * @return builder
         * 
         */
        public Builder links(ExpressRouteLinkArgs... links) {
            return links(List.of(links));
        }

        /**
         * @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 peeringLocation The name of the peering location that the ExpressRoutePort is mapped to physically.
         * 
         * @return builder
         * 
         */
        public Builder peeringLocation(@Nullable Output peeringLocation) {
            $.peeringLocation = peeringLocation;
            return this;
        }

        /**
         * @param peeringLocation The name of the peering location that the ExpressRoutePort is mapped to physically.
         * 
         * @return builder
         * 
         */
        public Builder peeringLocation(String peeringLocation) {
            return peeringLocation(Output.of(peeringLocation));
        }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy