Class VirtualMachineExtensionHandlerInstanceView
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.VirtualMachineExtensionHandlerInstanceView
-
public final class VirtualMachineExtensionHandlerInstanceView extends Object
The instance view of a virtual machine extension handler.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineExtensionHandlerInstanceView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceViewStatusstatus()Get the status property: The extension handler status.Stringtype()Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".StringtypeHandlerVersion()Get the typeHandlerVersion property: Specifies the version of the script handler.voidvalidate()Validates the instance.VirtualMachineExtensionHandlerInstanceViewwithStatus(InstanceViewStatus status)Set the status property: The extension handler status.VirtualMachineExtensionHandlerInstanceViewwithType(String type)Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".VirtualMachineExtensionHandlerInstanceViewwithTypeHandlerVersion(String typeHandlerVersion)Set the typeHandlerVersion property: Specifies the version of the script handler.
-
-
-
Method Detail
-
type
public String type()
Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Returns:
- the type value.
-
withType
public VirtualMachineExtensionHandlerInstanceView withType(String type)
Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Parameters:
type- the type value to set.- Returns:
- the VirtualMachineExtensionHandlerInstanceView object itself.
-
typeHandlerVersion
public String typeHandlerVersion()
Get the typeHandlerVersion property: Specifies the version of the script handler.- Returns:
- the typeHandlerVersion value.
-
withTypeHandlerVersion
public VirtualMachineExtensionHandlerInstanceView withTypeHandlerVersion(String typeHandlerVersion)
Set the typeHandlerVersion property: Specifies the version of the script handler.- Parameters:
typeHandlerVersion- the typeHandlerVersion value to set.- Returns:
- the VirtualMachineExtensionHandlerInstanceView object itself.
-
status
public InstanceViewStatus status()
Get the status property: The extension handler status.- Returns:
- the status value.
-
withStatus
public VirtualMachineExtensionHandlerInstanceView withStatus(InstanceViewStatus status)
Set the status property: The extension handler status.- Parameters:
status- the status value to set.- Returns:
- the VirtualMachineExtensionHandlerInstanceView object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-