DeviceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. DeviceProperties
- com.
Implements
public final class DeviceProperties
implements JsonSerializable<DeviceProperties>
List of properties of the device.
Constructor Summary
Constructor | Description |
---|---|
DeviceProperties() |
Creates an instance of Device |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
deviceModel()
Get the device |
String |
deviceVendor()
Get the device |
static
Device |
fromJson(JsonReader jsonReader)
Reads an instance of Device |
Integer |
linkSpeedInMbps()
Get the link |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Device |
withDeviceModel(String deviceModel)
Set the device |
Device |
withDeviceVendor(String deviceVendor)
Set the device |
Device |
withLinkSpeedInMbps(Integer linkSpeedInMbps)
Set the link |
Methods inherited from java.lang.Object
Constructor Details
DeviceProperties
public DeviceProperties()
Creates an instance of DeviceProperties class.
Method Details
deviceModel
public String deviceModel()
Get the deviceModel property: Model of the device.
Returns:
deviceVendor
public String deviceVendor()
Get the deviceVendor property: Name of the device Vendor.
Returns:
fromJson
public static DeviceProperties fromJson(JsonReader jsonReader)
Reads an instance of DeviceProperties from the JsonReader.
Parameters:
Returns:
Throws:
linkSpeedInMbps
public Integer linkSpeedInMbps()
Get the linkSpeedInMbps property: Link speed.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDeviceModel
public DeviceProperties withDeviceModel(String deviceModel)
Set the deviceModel property: Model of the device.
Parameters:
Returns:
withDeviceVendor
public DeviceProperties withDeviceVendor(String deviceVendor)
Set the deviceVendor property: Name of the device Vendor.
Parameters:
Returns:
withLinkSpeedInMbps
public DeviceProperties withLinkSpeedInMbps(Integer linkSpeedInMbps)
Set the linkSpeedInMbps property: Link speed.
Parameters:
Returns:
Applies to
Azure SDK for Java