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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the deviceModel property: Model of the device.Get the deviceVendor property: Name of the device Vendor.static DevicePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeviceProperties from the JsonReader.Get the linkSpeedInMbps property: Link speed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDeviceModel(String deviceModel) Set the deviceModel property: Model of the device.withDeviceVendor(String deviceVendor) Set the deviceVendor property: Name of the device Vendor.withLinkSpeedInMbps(Integer linkSpeedInMbps) Set the linkSpeedInMbps property: Link speed.Methods 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
-
DeviceProperties
public DeviceProperties()Creates an instance of DeviceProperties class.
-
-
Method Details
-
deviceVendor
Get the deviceVendor property: Name of the device Vendor.- Returns:
- the deviceVendor value.
-
withDeviceVendor
Set the deviceVendor property: Name of the device Vendor.- Parameters:
deviceVendor- the deviceVendor value to set.- Returns:
- the DeviceProperties object itself.
-
deviceModel
Get the deviceModel property: Model of the device.- Returns:
- the deviceModel value.
-
withDeviceModel
Set the deviceModel property: Model of the device.- Parameters:
deviceModel- the deviceModel value to set.- Returns:
- the DeviceProperties object itself.
-
linkSpeedInMbps
Get the linkSpeedInMbps property: Link speed.- Returns:
- the linkSpeedInMbps value.
-
withLinkSpeedInMbps
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeviceProperties>- Throws:
IOException
-
fromJson
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.
-