NetworkBootstrapDevicePatchProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.managednetworkfabric.fluent.models.NetworkBootstrapDevicePatchProperties

Implements

public final class NetworkBootstrapDevicePatchProperties
implements JsonSerializable<NetworkBootstrapDevicePatchProperties>

Network Bootstrap Device Patch properties.

Constructor Summary

Constructor Description
NetworkBootstrapDevicePatchProperties()

Creates an instance of NetworkBootstrapDevicePatchProperties class.

Method Summary

Modifier and Type Method and Description
String annotation()

Get the annotation property: Switch configuration description.

static NetworkBootstrapDevicePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of NetworkBootstrapDevicePatchProperties from the JsonReader.

String hostName()

Get the hostName property: The host name of the device.

String serialNumber()

Get the serialNumber property: Serial number of the device.

JsonWriter toJson(JsonWriter jsonWriter)
NetworkBootstrapDevicePatchProperties withAnnotation(String annotation)

Set the annotation property: Switch configuration description.

NetworkBootstrapDevicePatchProperties withHostName(String hostName)

Set the hostName property: The host name of the device.

NetworkBootstrapDevicePatchProperties withSerialNumber(String serialNumber)

Set the serialNumber property: Serial number of the device.

Methods inherited from java.lang.Object

Constructor Details

NetworkBootstrapDevicePatchProperties

public NetworkBootstrapDevicePatchProperties()

Creates an instance of NetworkBootstrapDevicePatchProperties class.

Method Details

annotation

public String annotation()

Get the annotation property: Switch configuration description.

Returns:

the annotation value.

fromJson

public static NetworkBootstrapDevicePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of NetworkBootstrapDevicePatchProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NetworkBootstrapDevicePatchProperties 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 NetworkBootstrapDevicePatchProperties.

hostName

public String hostName()

Get the hostName property: The host name of the device.

Returns:

the hostName value.

serialNumber

public String serialNumber()

Get the serialNumber property: Serial number of the device. Format of serial Number - Make;Model;HardwareRevisionId;SerialNumber.

Returns:

the serialNumber value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withAnnotation

public NetworkBootstrapDevicePatchProperties withAnnotation(String annotation)

Set the annotation property: Switch configuration description.

Parameters:

annotation - the annotation value to set.

Returns:

the NetworkBootstrapDevicePatchProperties object itself.

withHostName

public NetworkBootstrapDevicePatchProperties withHostName(String hostName)

Set the hostName property: The host name of the device.

Parameters:

hostName - the hostName value to set.

Returns:

the NetworkBootstrapDevicePatchProperties object itself.

withSerialNumber

public NetworkBootstrapDevicePatchProperties withSerialNumber(String serialNumber)

Set the serialNumber property: Serial number of the device. Format of serial Number - Make;Model;HardwareRevisionId;SerialNumber.

Parameters:

serialNumber - the serialNumber value to set.

Returns:

the NetworkBootstrapDevicePatchProperties object itself.

Applies to