Class ExpressRoutePortInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.ExpressRoutePortInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class ExpressRoutePortInner
extends com.azure.core.management.Resource
ExpressRoute Port
ExpressRoutePort resource definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allocationDate property: Date of the physical port allocation to be used in Letter of Authorization.Get the bandwidthInGbps property: Bandwidth of procured ports in Gbps.Get the billingType property: The billing type of the ExpressRoutePort resource.List<com.azure.core.management.SubResource> circuits()Get the circuits property: Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource.Get the encapsulation property: Encapsulation method on physical ports.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.Get the etherType property: Ether type of the physical port.static ExpressRoutePortInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressRoutePortInner from the JsonReader.id()Get the id property: Resource ID.identity()Get the identity property: The identity of ExpressRoutePort, if configured.links()Get the links property: The set of physical links of the ExpressRoutePort resource.mtu()Get the mtu property: Maximum transmission unit of the physical port pair(s).name()Get the name property: The name of the resource.Get the peeringLocation property: The name of the peering location that the ExpressRoutePort is mapped to physically.Get the provisionedBandwidthInGbps property: Aggregate Gbps of associated circuit bandwidths.Get the provisioningState property: The provisioning state of the express route port resource.Get the resourceGuid property: The resource GUID property of the express route port resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withBandwidthInGbps(Integer bandwidthInGbps) Set the bandwidthInGbps property: Bandwidth of procured ports in Gbps.withBillingType(ExpressRoutePortsBillingType billingType) Set the billingType property: The billing type of the ExpressRoutePort resource.withEncapsulation(ExpressRoutePortsEncapsulation encapsulation) Set the encapsulation property: Encapsulation method on physical ports.Set the id property: Resource ID.withIdentity(ManagedServiceIdentity identity) Set the identity property: The identity of ExpressRoutePort, if configured.withLinks(List<ExpressRouteLinkInner> links) Set the links property: The set of physical links of the ExpressRoutePort resource.withLocation(String location) withPeeringLocation(String peeringLocation) Set the peeringLocation property: The name of the peering location that the ExpressRoutePort is mapped to physically.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ExpressRoutePortInner
public ExpressRoutePortInner()Creates an instance of ExpressRoutePortInner class.
-
-
Method Details
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
identity
Get the identity property: The identity of ExpressRoutePort, if configured.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The identity of ExpressRoutePort, if configured.- Parameters:
identity- the identity value to set.- Returns:
- the ExpressRoutePortInner object itself.
-
id
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the ExpressRoutePortInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
peeringLocation
Get the peeringLocation property: The name of the peering location that the ExpressRoutePort is mapped to physically.- Returns:
- the peeringLocation value.
-
withPeeringLocation
Set the peeringLocation property: The name of the peering location that the ExpressRoutePort is mapped to physically.- Parameters:
peeringLocation- the peeringLocation value to set.- Returns:
- the ExpressRoutePortInner object itself.
-
bandwidthInGbps
Get the bandwidthInGbps property: Bandwidth of procured ports in Gbps.- Returns:
- the bandwidthInGbps value.
-
withBandwidthInGbps
Set the bandwidthInGbps property: Bandwidth of procured ports in Gbps.- Parameters:
bandwidthInGbps- the bandwidthInGbps value to set.- Returns:
- the ExpressRoutePortInner object itself.
-
provisionedBandwidthInGbps
Get the provisionedBandwidthInGbps property: Aggregate Gbps of associated circuit bandwidths.- Returns:
- the provisionedBandwidthInGbps value.
-
mtu
Get the mtu property: Maximum transmission unit of the physical port pair(s).- Returns:
- the mtu value.
-
encapsulation
Get the encapsulation property: Encapsulation method on physical ports.- Returns:
- the encapsulation value.
-
withEncapsulation
Set the encapsulation property: Encapsulation method on physical ports.- Parameters:
encapsulation- the encapsulation value to set.- Returns:
- the ExpressRoutePortInner object itself.
-
etherType
Get the etherType property: Ether type of the physical port.- Returns:
- the etherType value.
-
allocationDate
Get the allocationDate property: Date of the physical port allocation to be used in Letter of Authorization.- Returns:
- the allocationDate value.
-
links
Get the links property: The set of physical links of the ExpressRoutePort resource.- Returns:
- the links value.
-
withLinks
Set the links property: The set of physical links of the ExpressRoutePort resource.- Parameters:
links- the links value to set.- Returns:
- the ExpressRoutePortInner object itself.
-
circuits
Get the circuits property: Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource.- Returns:
- the circuits value.
-
provisioningState
Get the provisioningState property: The provisioning state of the express route port resource.- Returns:
- the provisioningState value.
-
resourceGuid
Get the resourceGuid property: The resource GUID property of the express route port resource.- Returns:
- the resourceGuid value.
-
billingType
Get the billingType property: The billing type of the ExpressRoutePort resource.- Returns:
- the billingType value.
-
withBillingType
Set the billingType property: The billing type of the ExpressRoutePort resource.- Parameters:
billingType- the billingType value to set.- Returns:
- the ExpressRoutePortInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
public static ExpressRoutePortInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ExpressRoutePortInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExpressRoutePortInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ExpressRoutePortInner.
-