ExpressRouteProviderPortInner Class

public final class ExpressRouteProviderPortInner
extends Resource

ExpressRouteProviderPort resource.

Constructor Summary

Constructor Description
ExpressRouteProviderPortInner()

Creates an instance of ExpressRouteProviderPortInner class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static ExpressRouteProviderPortInner fromJson(JsonReader jsonReader)

Reads an instance of ExpressRouteProviderPortInner from the JsonReader.

String id()

Get the id property: Resource ID.

String name()

Get the name property: The name of the resource.

Integer overprovisionFactor()

Get the overprovisionFactor property: Overprovisioning factor for the port pair.

String peeringLocation()

Get the peeringLocation property: The peering location of the port pair.

Integer portBandwidthInMbps()

Get the portBandwidthInMbps property: Bandwidth of the port in Mbps.

String portPairDescriptor()

Get the portPairDescriptor property: The name of the port pair.

String primaryAzurePort()

Get the primaryAzurePort property: The name of the primary port.

Integer remainingBandwidthInMbps()

Get the remainingBandwidthInMbps property: Remaining Bandwidth of the port in Mbps.

String secondaryAzurePort()

Get the secondaryAzurePort property: The name of the secondary port.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

Integer usedBandwidthInMbps()

Get the usedBandwidthInMbps property: Used Bandwidth of the port in Mbps.

void validate()

Validates the instance.

ExpressRouteProviderPortInner withId(String id)

Set the id property: Resource ID.

ExpressRouteProviderPortInner withLocation(String location)
ExpressRouteProviderPortInner withOverprovisionFactor(Integer overprovisionFactor)

Set the overprovisionFactor property: Overprovisioning factor for the port pair.

ExpressRouteProviderPortInner withPeeringLocation(String peeringLocation)

Set the peeringLocation property: The peering location of the port pair.

ExpressRouteProviderPortInner withPortBandwidthInMbps(Integer portBandwidthInMbps)

Set the portBandwidthInMbps property: Bandwidth of the port in Mbps.

ExpressRouteProviderPortInner withRemainingBandwidthInMbps(Integer remainingBandwidthInMbps)

Set the remainingBandwidthInMbps property: Remaining Bandwidth of the port in Mbps.

ExpressRouteProviderPortInner withTags(Map<String,String> tags)
ExpressRouteProviderPortInner withUsedBandwidthInMbps(Integer usedBandwidthInMbps)

Set the usedBandwidthInMbps property: Used Bandwidth of the port in Mbps.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ExpressRouteProviderPortInner

public ExpressRouteProviderPortInner()

Creates an instance of ExpressRouteProviderPortInner class.

Method Details

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static ExpressRouteProviderPortInner fromJson(JsonReader jsonReader)

Reads an instance of ExpressRouteProviderPortInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ExpressRouteProviderPortInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource ID.

Overrides:

ExpressRouteProviderPortInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ExpressRouteProviderPortInner.name()

Returns:

the name value.

overprovisionFactor

public Integer overprovisionFactor()

Get the overprovisionFactor property: Overprovisioning factor for the port pair.

Returns:

the overprovisionFactor value.

peeringLocation

public String peeringLocation()

Get the peeringLocation property: The peering location of the port pair.

Returns:

the peeringLocation value.

portBandwidthInMbps

public Integer portBandwidthInMbps()

Get the portBandwidthInMbps property: Bandwidth of the port in Mbps.

Returns:

the portBandwidthInMbps value.

portPairDescriptor

public String portPairDescriptor()

Get the portPairDescriptor property: The name of the port pair.

Returns:

the portPairDescriptor value.

primaryAzurePort

public String primaryAzurePort()

Get the primaryAzurePort property: The name of the primary port.

Returns:

the primaryAzurePort value.

remainingBandwidthInMbps

public Integer remainingBandwidthInMbps()

Get the remainingBandwidthInMbps property: Remaining Bandwidth of the port in Mbps.

Returns:

the remainingBandwidthInMbps value.

secondaryAzurePort

public String secondaryAzurePort()

Get the secondaryAzurePort property: The name of the secondary port.

Returns:

the secondaryAzurePort value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ExpressRouteProviderPortInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ExpressRouteProviderPortInner.type()

Returns:

the type value.

usedBandwidthInMbps

public Integer usedBandwidthInMbps()

Get the usedBandwidthInMbps property: Used Bandwidth of the port in Mbps.

Returns:

the usedBandwidthInMbps value.

validate

public void validate()

Validates the instance.

withId

public ExpressRouteProviderPortInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the ExpressRouteProviderPortInner object itself.

withLocation

public ExpressRouteProviderPortInner withLocation(String location)

Overrides:

ExpressRouteProviderPortInner.withLocation(String location)

Parameters:

location

withOverprovisionFactor

public ExpressRouteProviderPortInner withOverprovisionFactor(Integer overprovisionFactor)

Set the overprovisionFactor property: Overprovisioning factor for the port pair.

Parameters:

overprovisionFactor - the overprovisionFactor value to set.

Returns:

the ExpressRouteProviderPortInner object itself.

withPeeringLocation

public ExpressRouteProviderPortInner withPeeringLocation(String peeringLocation)

Set the peeringLocation property: The peering location of the port pair.

Parameters:

peeringLocation - the peeringLocation value to set.

Returns:

the ExpressRouteProviderPortInner object itself.

withPortBandwidthInMbps

public ExpressRouteProviderPortInner withPortBandwidthInMbps(Integer portBandwidthInMbps)

Set the portBandwidthInMbps property: Bandwidth of the port in Mbps.

Parameters:

portBandwidthInMbps - the portBandwidthInMbps value to set.

Returns:

the ExpressRouteProviderPortInner object itself.

withRemainingBandwidthInMbps

public ExpressRouteProviderPortInner withRemainingBandwidthInMbps(Integer remainingBandwidthInMbps)

Set the remainingBandwidthInMbps property: Remaining Bandwidth of the port in Mbps.

Parameters:

remainingBandwidthInMbps - the remainingBandwidthInMbps value to set.

Returns:

the ExpressRouteProviderPortInner object itself.

withTags

public ExpressRouteProviderPortInner withTags(Map tags)

Overrides:

ExpressRouteProviderPortInner.withTags(Map<String,String> tags)

Parameters:

tags

withUsedBandwidthInMbps

public ExpressRouteProviderPortInner withUsedBandwidthInMbps(Integer usedBandwidthInMbps)

Set the usedBandwidthInMbps property: Used Bandwidth of the port in Mbps.

Parameters:

usedBandwidthInMbps - the usedBandwidthInMbps value to set.

Returns:

the ExpressRouteProviderPortInner object itself.

Applies to