Class ExpressRouteLinkPropertiesFormat

java.lang.Object
com.azure.resourcemanager.network.fluent.models.ExpressRouteLinkPropertiesFormat
All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpressRouteLinkPropertiesFormat>

public final class ExpressRouteLinkPropertiesFormat extends Object implements com.azure.json.JsonSerializable<ExpressRouteLinkPropertiesFormat>
ExpressRouteLink Resource Properties Properties specific to ExpressRouteLink resources.
  • Constructor Details

    • ExpressRouteLinkPropertiesFormat

      public ExpressRouteLinkPropertiesFormat()
      Creates an instance of ExpressRouteLinkPropertiesFormat class.
  • Method Details

    • routerName

      public String routerName()
      Get the routerName property: Name of Azure router associated with physical port.
      Returns:
      the routerName value.
    • interfaceName

      public String interfaceName()
      Get the interfaceName property: Name of Azure router interface.
      Returns:
      the interfaceName value.
    • patchPanelId

      public String patchPanelId()
      Get the patchPanelId property: Mapping between physical port to patch panel port.
      Returns:
      the patchPanelId value.
    • rackId

      public String rackId()
      Get the rackId property: Mapping of physical patch panel to rack.
      Returns:
      the rackId value.
    • coloLocation

      public String coloLocation()
      Get the coloLocation property: Cololocation for ExpressRoute Hybrid Direct.
      Returns:
      the coloLocation value.
    • connectorType

      public ExpressRouteLinkConnectorType connectorType()
      Get the connectorType property: Physical fiber port type.
      Returns:
      the connectorType value.
    • adminState

      public ExpressRouteLinkAdminState adminState()
      Get the adminState property: Administrative state of the physical port.
      Returns:
      the adminState value.
    • withAdminState

      Set the adminState property: Administrative state of the physical port.
      Parameters:
      adminState - the adminState value to set.
      Returns:
      the ExpressRouteLinkPropertiesFormat object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the express route link resource.
      Returns:
      the provisioningState value.
    • macSecConfig

      public ExpressRouteLinkMacSecConfig macSecConfig()
      Get the macSecConfig property: MacSec configuration.
      Returns:
      the macSecConfig value.
    • withMacSecConfig

      public ExpressRouteLinkPropertiesFormat withMacSecConfig(ExpressRouteLinkMacSecConfig macSecConfig)
      Set the macSecConfig property: MacSec configuration.
      Parameters:
      macSecConfig - the macSecConfig value to set.
      Returns:
      the ExpressRouteLinkPropertiesFormat object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ExpressRouteLinkPropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static ExpressRouteLinkPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ExpressRouteLinkPropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ExpressRouteLinkPropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ExpressRouteLinkPropertiesFormat.