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

com.pulumi.azure.network.outputs.GetExpressRouteCircuitPeering Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.network.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetExpressRouteCircuitPeering {
    /**
     * @return The Either a 16-bit or a 32-bit ASN for Azure.
     * 
     */
    private Integer azureAsn;
    /**
     * @return The Either a 16-bit or a 32-bit ASN. Can either be public or private.
     * 
     */
    private Integer peerAsn;
    /**
     * @return The type of the ExpressRoute Circuit Peering. Acceptable values include `AzurePrivatePeering`, `AzurePublicPeering` and `MicrosoftPeering`. Changing this forces a new resource to be created.
     * 
     */
    private String peeringType;
    /**
     * @return A `/30` subnet for the primary link.
     * 
     */
    private String primaryPeerAddressPrefix;
    /**
     * @return A `/30` subnet for the secondary link.
     * 
     */
    private String secondaryPeerAddressPrefix;
    /**
     * @return The shared key. Can be a maximum of 25 characters.
     * 
     */
    private String sharedKey;
    /**
     * @return A valid VLAN ID to establish this peering on.
     * 
     */
    private Integer vlanId;

    private GetExpressRouteCircuitPeering() {}
    /**
     * @return The Either a 16-bit or a 32-bit ASN for Azure.
     * 
     */
    public Integer azureAsn() {
        return this.azureAsn;
    }
    /**
     * @return The Either a 16-bit or a 32-bit ASN. Can either be public or private.
     * 
     */
    public Integer peerAsn() {
        return this.peerAsn;
    }
    /**
     * @return The type of the ExpressRoute Circuit Peering. Acceptable values include `AzurePrivatePeering`, `AzurePublicPeering` and `MicrosoftPeering`. Changing this forces a new resource to be created.
     * 
     */
    public String peeringType() {
        return this.peeringType;
    }
    /**
     * @return A `/30` subnet for the primary link.
     * 
     */
    public String primaryPeerAddressPrefix() {
        return this.primaryPeerAddressPrefix;
    }
    /**
     * @return A `/30` subnet for the secondary link.
     * 
     */
    public String secondaryPeerAddressPrefix() {
        return this.secondaryPeerAddressPrefix;
    }
    /**
     * @return The shared key. Can be a maximum of 25 characters.
     * 
     */
    public String sharedKey() {
        return this.sharedKey;
    }
    /**
     * @return A valid VLAN ID to establish this peering on.
     * 
     */
    public Integer vlanId() {
        return this.vlanId;
    }

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

    public static Builder builder(GetExpressRouteCircuitPeering defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer azureAsn;
        private Integer peerAsn;
        private String peeringType;
        private String primaryPeerAddressPrefix;
        private String secondaryPeerAddressPrefix;
        private String sharedKey;
        private Integer vlanId;
        public Builder() {}
        public Builder(GetExpressRouteCircuitPeering defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.azureAsn = defaults.azureAsn;
    	      this.peerAsn = defaults.peerAsn;
    	      this.peeringType = defaults.peeringType;
    	      this.primaryPeerAddressPrefix = defaults.primaryPeerAddressPrefix;
    	      this.secondaryPeerAddressPrefix = defaults.secondaryPeerAddressPrefix;
    	      this.sharedKey = defaults.sharedKey;
    	      this.vlanId = defaults.vlanId;
        }

        @CustomType.Setter
        public Builder azureAsn(Integer azureAsn) {
            if (azureAsn == null) {
              throw new MissingRequiredPropertyException("GetExpressRouteCircuitPeering", "azureAsn");
            }
            this.azureAsn = azureAsn;
            return this;
        }
        @CustomType.Setter
        public Builder peerAsn(Integer peerAsn) {
            if (peerAsn == null) {
              throw new MissingRequiredPropertyException("GetExpressRouteCircuitPeering", "peerAsn");
            }
            this.peerAsn = peerAsn;
            return this;
        }
        @CustomType.Setter
        public Builder peeringType(String peeringType) {
            if (peeringType == null) {
              throw new MissingRequiredPropertyException("GetExpressRouteCircuitPeering", "peeringType");
            }
            this.peeringType = peeringType;
            return this;
        }
        @CustomType.Setter
        public Builder primaryPeerAddressPrefix(String primaryPeerAddressPrefix) {
            if (primaryPeerAddressPrefix == null) {
              throw new MissingRequiredPropertyException("GetExpressRouteCircuitPeering", "primaryPeerAddressPrefix");
            }
            this.primaryPeerAddressPrefix = primaryPeerAddressPrefix;
            return this;
        }
        @CustomType.Setter
        public Builder secondaryPeerAddressPrefix(String secondaryPeerAddressPrefix) {
            if (secondaryPeerAddressPrefix == null) {
              throw new MissingRequiredPropertyException("GetExpressRouteCircuitPeering", "secondaryPeerAddressPrefix");
            }
            this.secondaryPeerAddressPrefix = secondaryPeerAddressPrefix;
            return this;
        }
        @CustomType.Setter
        public Builder sharedKey(String sharedKey) {
            if (sharedKey == null) {
              throw new MissingRequiredPropertyException("GetExpressRouteCircuitPeering", "sharedKey");
            }
            this.sharedKey = sharedKey;
            return this;
        }
        @CustomType.Setter
        public Builder vlanId(Integer vlanId) {
            if (vlanId == null) {
              throw new MissingRequiredPropertyException("GetExpressRouteCircuitPeering", "vlanId");
            }
            this.vlanId = vlanId;
            return this;
        }
        public GetExpressRouteCircuitPeering build() {
            final var _resultValue = new GetExpressRouteCircuitPeering();
            _resultValue.azureAsn = azureAsn;
            _resultValue.peerAsn = peerAsn;
            _resultValue.peeringType = peeringType;
            _resultValue.primaryPeerAddressPrefix = primaryPeerAddressPrefix;
            _resultValue.secondaryPeerAddressPrefix = secondaryPeerAddressPrefix;
            _resultValue.sharedKey = sharedKey;
            _resultValue.vlanId = vlanId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy