Class VirtualMachineExtensionInstanceView
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.VirtualMachineExtensionInstanceView
-
public final class VirtualMachineExtensionInstanceView extends Object
The instance view of a virtual machine extension.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineExtensionInstanceView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: The virtual machine extension name.List<InstanceViewStatus>statuses()Get the statuses property: The resource status information.List<InstanceViewStatus>substatuses()Get the substatuses property: The resource status information.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.VirtualMachineExtensionInstanceViewwithName(String name)Set the name property: The virtual machine extension name.VirtualMachineExtensionInstanceViewwithStatuses(List<InstanceViewStatus> statuses)Set the statuses property: The resource status information.VirtualMachineExtensionInstanceViewwithSubstatuses(List<InstanceViewStatus> substatuses)Set the substatuses property: The resource status information.VirtualMachineExtensionInstanceViewwithType(String type)Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".VirtualMachineExtensionInstanceViewwithTypeHandlerVersion(String typeHandlerVersion)Set the typeHandlerVersion property: Specifies the version of the script handler.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The virtual machine extension name.- Returns:
- the name value.
-
withName
public VirtualMachineExtensionInstanceView withName(String name)
Set the name property: The virtual machine extension name.- Parameters:
name- the name value to set.- Returns:
- the VirtualMachineExtensionInstanceView object itself.
-
type
public String type()
Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Returns:
- the type value.
-
withType
public VirtualMachineExtensionInstanceView 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 VirtualMachineExtensionInstanceView object itself.
-
typeHandlerVersion
public String typeHandlerVersion()
Get the typeHandlerVersion property: Specifies the version of the script handler.- Returns:
- the typeHandlerVersion value.
-
withTypeHandlerVersion
public VirtualMachineExtensionInstanceView withTypeHandlerVersion(String typeHandlerVersion)
Set the typeHandlerVersion property: Specifies the version of the script handler.- Parameters:
typeHandlerVersion- the typeHandlerVersion value to set.- Returns:
- the VirtualMachineExtensionInstanceView object itself.
-
substatuses
public List<InstanceViewStatus> substatuses()
Get the substatuses property: The resource status information.- Returns:
- the substatuses value.
-
withSubstatuses
public VirtualMachineExtensionInstanceView withSubstatuses(List<InstanceViewStatus> substatuses)
Set the substatuses property: The resource status information.- Parameters:
substatuses- the substatuses value to set.- Returns:
- the VirtualMachineExtensionInstanceView object itself.
-
statuses
public List<InstanceViewStatus> statuses()
Get the statuses property: The resource status information.- Returns:
- the statuses value.
-
withStatuses
public VirtualMachineExtensionInstanceView withStatuses(List<InstanceViewStatus> statuses)
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.
-
-