NetworkBootstrapDevicePatch Class

public final class NetworkBootstrapDevicePatch
extends TagsUpdate

The Network Bootstrap Device Patch Parameters defines the patch parameters of the resource.

Constructor Summary

Constructor Description
NetworkBootstrapDevicePatch()

Creates an instance of NetworkBootstrapDevicePatch class.

Method Summary

Modifier and Type Method and Description
String annotation()

Get the annotation property: Switch configuration description.

static NetworkBootstrapDevicePatch fromJson(JsonReader jsonReader)

Reads an instance of NetworkBootstrapDevicePatch from the JsonReader.

String hostName()

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

ManagedServiceIdentityPatch identity()

Get the identity property: The managed service identities assigned to this resource.

String serialNumber()

Get the serialNumber property: Serial number of the device.

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

Set the annotation property: Switch configuration description.

NetworkBootstrapDevicePatch withHostName(String hostName)

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

NetworkBootstrapDevicePatch withIdentity(ManagedServiceIdentityPatch identity)

Set the identity property: The managed service identities assigned to this resource.

NetworkBootstrapDevicePatch withSerialNumber(String serialNumber)

Set the serialNumber property: Serial number of the device.

NetworkBootstrapDevicePatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from TagsUpdate

Methods inherited from java.lang.Object

Constructor Details

NetworkBootstrapDevicePatch

public NetworkBootstrapDevicePatch()

Creates an instance of NetworkBootstrapDevicePatch class.

Method Details

annotation

public String annotation()

Get the annotation property: Switch configuration description.

Returns:

the annotation value.

fromJson

public static NetworkBootstrapDevicePatch fromJson(JsonReader jsonReader)

Reads an instance of NetworkBootstrapDevicePatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hostName

public String hostName()

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

Returns:

the hostName value.

identity

public ManagedServiceIdentityPatch identity()

Get the identity property: The managed service identities assigned to this resource.

Returns:

the identity 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)

Overrides:

NetworkBootstrapDevicePatch.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withAnnotation

public NetworkBootstrapDevicePatch withAnnotation(String annotation)

Set the annotation property: Switch configuration description.

Parameters:

annotation - the annotation value to set.

Returns:

the NetworkBootstrapDevicePatch object itself.

withHostName

public NetworkBootstrapDevicePatch withHostName(String hostName)

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

Parameters:

hostName - the hostName value to set.

Returns:

the NetworkBootstrapDevicePatch object itself.

withIdentity

public NetworkBootstrapDevicePatch withIdentity(ManagedServiceIdentityPatch identity)

Set the identity property: The managed service identities assigned to this resource.

Parameters:

identity - the identity value to set.

Returns:

the NetworkBootstrapDevicePatch object itself.

withSerialNumber

public NetworkBootstrapDevicePatch 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 NetworkBootstrapDevicePatch object itself.

withTags

public NetworkBootstrapDevicePatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Overrides:

NetworkBootstrapDevicePatch.withTags(Map<String,String> tags)

Parameters:

tags

Applies to