VirtualMachineExtensionInstanceView Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VirtualMachineExtensionInstanceView
- com.
Implements
public final class VirtualMachineExtensionInstanceView
implements JsonSerializable<VirtualMachineExtensionInstanceView>
The instance view of a virtual machine extension.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineExtensionInstanceView() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
String |
name()
Get the name property: The virtual machine extension name. |
List<Instance |
statuses()
Get the statuses property: The resource status information. |
List<Instance |
substatuses()
Get the substatuses property: The resource status information. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Specifies the type of the extension; an example is "Custom |
String |
typeHandlerVersion()
Get the type |
void |
validate()
Validates the instance. |
Virtual |
withName(String name)
Set the name property: The virtual machine extension name. |
Virtual |
withStatuses(List<InstanceViewStatus> statuses)
Set the statuses property: The resource status information. |
Virtual |
withSubstatuses(List<InstanceViewStatus> substatuses)
Set the substatuses property: The resource status information. |
Virtual |
withType(String type)
Set the type property: Specifies the type of the extension; an example is "Custom |
Virtual |
withTypeHandlerVersion(String typeHandlerVersion)
Set the type |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineExtensionInstanceView
public VirtualMachineExtensionInstanceView()
Creates an instance of VirtualMachineExtensionInstanceView class.
Method Details
fromJson
public static VirtualMachineExtensionInstanceView fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineExtensionInstanceView from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The virtual machine extension name.
Returns:
statuses
public List
Get the statuses property: The resource status information.
Returns:
substatuses
public List
Get the substatuses property: The resource status information.
Returns:
toJson
type
public String type()
Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
Returns:
typeHandlerVersion
public String typeHandlerVersion()
Get the typeHandlerVersion property: Specifies the version of the script handler.
Returns:
validate
public void validate()
Validates the instance.
withName
public VirtualMachineExtensionInstanceView withName(String name)
Set the name property: The virtual machine extension name.
Parameters:
Returns:
withStatuses
public VirtualMachineExtensionInstanceView withStatuses(List
Set the statuses property: The resource status information.
Parameters:
Returns:
withSubstatuses
public VirtualMachineExtensionInstanceView withSubstatuses(List
Set the substatuses property: The resource status information.
Parameters:
Returns:
withType
public VirtualMachineExtensionInstanceView withType(String type)
Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
Parameters:
Returns:
withTypeHandlerVersion
public VirtualMachineExtensionInstanceView withTypeHandlerVersion(String typeHandlerVersion)
Set the typeHandlerVersion property: Specifies the version of the script handler.
Parameters:
Returns:
Applies to
Azure SDK for Java