VirtualMachineExtensionHandlerInstanceView Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.VirtualMachineExtensionHandlerInstanceView

Implements

public final class VirtualMachineExtensionHandlerInstanceView
implements JsonSerializable<VirtualMachineExtensionHandlerInstanceView>

The instance view of a virtual machine extension handler.

Constructor Summary

Constructor Description
VirtualMachineExtensionHandlerInstanceView()

Creates an instance of VirtualMachineExtensionHandlerInstanceView class.

Method Summary

Modifier and Type Method and Description
static VirtualMachineExtensionHandlerInstanceView fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineExtensionHandlerInstanceView from the JsonReader.

InstanceViewStatus status()

Get the status property: The extension handler status.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".

String typeHandlerVersion()

Get the typeHandlerVersion property: Specifies the version of the script handler.

void validate()

Validates the instance.

VirtualMachineExtensionHandlerInstanceView withStatus(InstanceViewStatus status)

Set the status property: The extension handler status.

VirtualMachineExtensionHandlerInstanceView withType(String type)

Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".

VirtualMachineExtensionHandlerInstanceView withTypeHandlerVersion(String typeHandlerVersion)

Set the typeHandlerVersion property: Specifies the version of the script handler.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineExtensionHandlerInstanceView

public VirtualMachineExtensionHandlerInstanceView()

Creates an instance of VirtualMachineExtensionHandlerInstanceView class.

Method Details

fromJson

public static VirtualMachineExtensionHandlerInstanceView fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineExtensionHandlerInstanceView from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineExtensionHandlerInstanceView 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 VirtualMachineExtensionHandlerInstanceView.

status

public InstanceViewStatus status()

Get the status property: The extension handler status.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".

Returns:

the type value.

typeHandlerVersion

public String typeHandlerVersion()

Get the typeHandlerVersion property: Specifies the version of the script handler.

Returns:

the typeHandlerVersion value.

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to