DeviceRwCommand Class

  • java.lang.Object
    • com.azure.resourcemanager.managednetworkfabric.models.DeviceRwCommand

Implements

public final class DeviceRwCommand
implements JsonSerializable<DeviceRwCommand>

Provide the Rw command.

Constructor Summary

Constructor Description
DeviceRwCommand()

Creates an instance of DeviceRwCommand class.

Method Summary

Modifier and Type Method and Description
String command()

Get the command property: Specify the command.

String commandUrl()

Get the commandUrl property: Specify the commands file URL.

static DeviceRwCommand fromJson(JsonReader jsonReader)

Reads an instance of DeviceRwCommand from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
DeviceRwCommand withCommand(String command)

Set the command property: Specify the command.

DeviceRwCommand withCommandUrl(String commandUrl)

Set the commandUrl property: Specify the commands file URL.

Methods inherited from java.lang.Object

Constructor Details

DeviceRwCommand

public DeviceRwCommand()

Creates an instance of DeviceRwCommand class.

Method Details

command

public String command()

Get the command property: Specify the command.

Returns:

the command value.

commandUrl

public String commandUrl()

Get the commandUrl property: Specify the commands file URL.

Returns:

the commandUrl value.

fromJson

public static DeviceRwCommand fromJson(JsonReader jsonReader)

Reads an instance of DeviceRwCommand from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withCommand

public DeviceRwCommand withCommand(String command)

Set the command property: Specify the command.

Parameters:

command - the command value to set.

Returns:

the DeviceRwCommand object itself.

withCommandUrl

public DeviceRwCommand withCommandUrl(String commandUrl)

Set the commandUrl property: Specify the commands file URL.

Parameters:

commandUrl - the commandUrl value to set.

Returns:

the DeviceRwCommand object itself.

Applies to