Class VpnLinkProviderProperties

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

public final class VpnLinkProviderProperties extends Object implements com.azure.json.JsonSerializable<VpnLinkProviderProperties>
List of properties of a link provider.
  • Constructor Details

    • VpnLinkProviderProperties

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

    • linkProviderName

      public String linkProviderName()
      Get the linkProviderName property: Name of the link provider.
      Returns:
      the linkProviderName value.
    • withLinkProviderName

      public VpnLinkProviderProperties withLinkProviderName(String linkProviderName)
      Set the linkProviderName property: Name of the link provider.
      Parameters:
      linkProviderName - the linkProviderName value to set.
      Returns:
      the VpnLinkProviderProperties object itself.
    • linkSpeedInMbps

      public Integer linkSpeedInMbps()
      Get the linkSpeedInMbps property: Link speed.
      Returns:
      the linkSpeedInMbps value.
    • withLinkSpeedInMbps

      public VpnLinkProviderProperties withLinkSpeedInMbps(Integer linkSpeedInMbps)
      Set the linkSpeedInMbps property: Link speed.
      Parameters:
      linkSpeedInMbps - the linkSpeedInMbps value to set.
      Returns:
      the VpnLinkProviderProperties 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<VpnLinkProviderProperties>
      Throws:
      IOException
    • fromJson

      public static VpnLinkProviderProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VpnLinkProviderProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VpnLinkProviderProperties 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 VpnLinkProviderProperties.