Partilhar via


DeviceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.DeviceProperties

Implements

public final class DeviceProperties
implements JsonSerializable<DeviceProperties>

List of properties of the device.

Constructor Summary

Constructor Description
DeviceProperties()

Creates an instance of DeviceProperties class.

Method Summary

Modifier and Type Method and Description
String deviceModel()

Get the deviceModel property: Model of the device.

String deviceVendor()

Get the deviceVendor property: Name of the device Vendor.

static DeviceProperties fromJson(JsonReader jsonReader)

Reads an instance of DeviceProperties from the JsonReader.

Integer linkSpeedInMbps()

Get the linkSpeedInMbps property: Link speed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DeviceProperties withDeviceModel(String deviceModel)

Set the deviceModel property: Model of the device.

DeviceProperties withDeviceVendor(String deviceVendor)

Set the deviceVendor property: Name of the device Vendor.

DeviceProperties withLinkSpeedInMbps(Integer linkSpeedInMbps)

Set the linkSpeedInMbps property: Link speed.

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:

the deviceModel value.

deviceVendor

public String deviceVendor()

Get the deviceVendor property: Name of the device Vendor.

Returns:

the deviceVendor value.

fromJson

public static DeviceProperties fromJson(JsonReader jsonReader)

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.

linkSpeedInMbps

public Integer linkSpeedInMbps()

Get the linkSpeedInMbps property: Link speed.

Returns:

the linkSpeedInMbps value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

withLinkSpeedInMbps

public DeviceProperties withLinkSpeedInMbps(Integer linkSpeedInMbps)

Set the linkSpeedInMbps property: Link speed.

Parameters:

linkSpeedInMbps - the linkSpeedInMbps value to set.

Returns:

the DeviceProperties object itself.

Applies to