Class VirtualMachineAgentInstanceView
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineAgentInstanceView
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineAgentInstanceView>
public final class VirtualMachineAgentInstanceView
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineAgentInstanceView>
The instance view of the VM Agent running on the virtual machine.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineAgentInstanceView class. -
Method Summary
Modifier and TypeMethodDescriptionGet the extensionHandlers property: The virtual machine extension handler instance view.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineAgentInstanceView from the JsonReader.statuses()Get the statuses property: The resource status information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vmAgentVersion property: The VM Agent full version.withExtensionHandlers(List<VirtualMachineExtensionHandlerInstanceView> extensionHandlers) Set the extensionHandlers property: The virtual machine extension handler instance view.withStatuses(List<InstanceViewStatus> statuses) Set the statuses property: The resource status information.withVmAgentVersion(String vmAgentVersion) Set the vmAgentVersion property: The VM Agent full version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualMachineAgentInstanceView
public VirtualMachineAgentInstanceView()Creates an instance of VirtualMachineAgentInstanceView class.
-
-
Method Details
-
vmAgentVersion
Get the vmAgentVersion property: The VM Agent full version.- Returns:
- the vmAgentVersion value.
-
withVmAgentVersion
Set the vmAgentVersion property: The VM Agent full version.- Parameters:
vmAgentVersion- the vmAgentVersion value to set.- Returns:
- the VirtualMachineAgentInstanceView object itself.
-
extensionHandlers
Get the extensionHandlers property: The virtual machine extension handler instance view.- Returns:
- the extensionHandlers value.
-
withExtensionHandlers
public VirtualMachineAgentInstanceView withExtensionHandlers(List<VirtualMachineExtensionHandlerInstanceView> extensionHandlers) Set the extensionHandlers property: The virtual machine extension handler instance view.- Parameters:
extensionHandlers- the extensionHandlers value to set.- Returns:
- the VirtualMachineAgentInstanceView object itself.
-
statuses
Get the statuses property: The resource status information.- Returns:
- the statuses value.
-
withStatuses
Set the statuses property: The resource status information.- Parameters:
statuses- the statuses value to set.- Returns:
- the VirtualMachineAgentInstanceView object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualMachineAgentInstanceView>- Throws:
IOException
-
fromJson
public static VirtualMachineAgentInstanceView fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-