Class VirtualMachineExtensionInstanceView
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineExtensionInstanceView
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineExtensionInstanceView>
public final class VirtualMachineExtensionInstanceView
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineExtensionInstanceView>
The instance view of a virtual machine extension.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineExtensionInstanceView class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineExtensionInstanceView from the JsonReader.name()Get the name property: The virtual machine extension name.statuses()Get the statuses property: The resource status information.Get the substatuses property: The resource status information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".Get the typeHandlerVersion property: Specifies the version of the script handler.voidvalidate()Validates the instance.Set the name property: The virtual machine extension name.withStatuses(List<InstanceViewStatus> statuses) Set the statuses property: The resource status information.withSubstatuses(List<InstanceViewStatus> substatuses) Set the substatuses property: The resource status information.Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".withTypeHandlerVersion(String typeHandlerVersion) Set the typeHandlerVersion property: Specifies the version of the script handler.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
-
VirtualMachineExtensionInstanceView
public VirtualMachineExtensionInstanceView()Creates an instance of VirtualMachineExtensionInstanceView class.
-
-
Method Details
-
name
Get the name property: The virtual machine extension name.- Returns:
- the name value.
-
withName
Set the name property: The virtual machine extension name.- Parameters:
name- the name value to set.- Returns:
- the VirtualMachineExtensionInstanceView object itself.
-
type
Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Returns:
- the type value.
-
withType
Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Parameters:
type- the type value to set.- Returns:
- the VirtualMachineExtensionInstanceView object itself.
-
typeHandlerVersion
Get the typeHandlerVersion property: Specifies the version of the script handler.- Returns:
- the typeHandlerVersion value.
-
withTypeHandlerVersion
Set the typeHandlerVersion property: Specifies the version of the script handler.- Parameters:
typeHandlerVersion- the typeHandlerVersion value to set.- Returns:
- the VirtualMachineExtensionInstanceView object itself.
-
substatuses
Get the substatuses property: The resource status information.- Returns:
- the substatuses value.
-
withSubstatuses
Set the substatuses property: The resource status information.- Parameters:
substatuses- the substatuses value to set.- Returns:
- the VirtualMachineExtensionInstanceView 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 VirtualMachineExtensionInstanceView 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<VirtualMachineExtensionInstanceView>- Throws:
IOException
-
fromJson
public static VirtualMachineExtensionInstanceView fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineExtensionInstanceView from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineExtensionInstanceView 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 VirtualMachineExtensionInstanceView.
-