Class DeviceProperties

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

public final class DeviceProperties extends Object implements com.azure.json.JsonSerializable<DeviceProperties>
List of properties of the device.
  • Constructor Details

    • DeviceProperties

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

    • deviceVendor

      public String deviceVendor()
      Get the deviceVendor property: Name of the device Vendor.
      Returns:
      the deviceVendor value.
    • withDeviceVendor

      public DeviceProperties withDeviceVendor(String deviceVendor)
      Set the deviceVendor property: Name of the device Vendor.
      Parameters:
      deviceVendor - the deviceVendor value to set.
      Returns:
      the DeviceProperties object itself.
    • deviceModel

      public String deviceModel()
      Get the deviceModel property: Model of the device.
      Returns:
      the deviceModel value.
    • withDeviceModel

      public DeviceProperties withDeviceModel(String deviceModel)
      Set the deviceModel property: Model of the device.
      Parameters:
      deviceModel - the deviceModel value to set.
      Returns:
      the DeviceProperties object itself.
    • linkSpeedInMbps

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

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

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