VirtualMachineAgentInstanceView Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.VirtualMachineAgentInstanceView

Implements

public final class VirtualMachineAgentInstanceView
implements JsonSerializable<VirtualMachineAgentInstanceView>

The instance view of the VM Agent running on the virtual machine.

Constructor Summary

Constructor Description
VirtualMachineAgentInstanceView()

Creates an instance of VirtualMachineAgentInstanceView class.

Method Summary

Modifier and Type Method and Description
List<VirtualMachineExtensionHandlerInstanceView> extensionHandlers()

Get the extensionHandlers property: The virtual machine extension handler instance view.

static VirtualMachineAgentInstanceView fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineAgentInstanceView from the JsonReader.

List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String vmAgentVersion()

Get the vmAgentVersion property: The VM Agent full version.

VirtualMachineAgentInstanceView withExtensionHandlers(List<VirtualMachineExtensionHandlerInstanceView> extensionHandlers)

Set the extensionHandlers property: The virtual machine extension handler instance view.

VirtualMachineAgentInstanceView withStatuses(List<InstanceViewStatus> statuses)

Set the statuses property: The resource status information.

VirtualMachineAgentInstanceView withVmAgentVersion(String vmAgentVersion)

Set the vmAgentVersion property: The VM Agent full version.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineAgentInstanceView

public VirtualMachineAgentInstanceView()

Creates an instance of VirtualMachineAgentInstanceView class.

Method Details

extensionHandlers

public List extensionHandlers()

Get the extensionHandlers property: The virtual machine extension handler instance view.

Returns:

the extensionHandlers value.

fromJson

public static VirtualMachineAgentInstanceView fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineAgentInstanceView from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

statuses

public List statuses()

Get the statuses property: The resource status information.

Returns:

the statuses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vmAgentVersion

public String vmAgentVersion()

Get the vmAgentVersion property: The VM Agent full version.

Returns:

the vmAgentVersion value.

withExtensionHandlers

public VirtualMachineAgentInstanceView withExtensionHandlers(List extensionHandlers)

Set the extensionHandlers property: The virtual machine extension handler instance view.

Parameters:

extensionHandlers - the extensionHandlers value to set.

Returns:

the VirtualMachineAgentInstanceView object itself.

withStatuses

public VirtualMachineAgentInstanceView withStatuses(List statuses)

Set the statuses property: The resource status information.

Parameters:

statuses - the statuses value to set.

Returns:

the VirtualMachineAgentInstanceView object itself.

withVmAgentVersion

public VirtualMachineAgentInstanceView withVmAgentVersion(String vmAgentVersion)

Set the vmAgentVersion property: The VM Agent full version.

Parameters:

vmAgentVersion - the vmAgentVersion value to set.

Returns:

the VirtualMachineAgentInstanceView object itself.

Applies to