VirtualMachineExtensionInstanceView Class

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

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 VirtualMachineExtensionInstanceView class.

Method Summary

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

Reads an instance of VirtualMachineExtensionInstanceView from the JsonReader.

String name()

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.

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.

VirtualMachineExtensionInstanceView withName(String name)

Set the name property: The virtual machine extension name.

VirtualMachineExtensionInstanceView withStatuses(List<InstanceViewStatus> statuses)

Set the statuses property: The resource status information.

VirtualMachineExtensionInstanceView withSubstatuses(List<InstanceViewStatus> substatuses)

Set the substatuses property: The resource status information.

VirtualMachineExtensionInstanceView withType(String type)

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

VirtualMachineExtensionInstanceView withTypeHandlerVersion(String typeHandlerVersion)

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

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:

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.

name

public String name()

Get the name property: The virtual machine extension name.

Returns:

the name value.

statuses

public List statuses()

Get the statuses property: The resource status information.

Returns:

the statuses value.

substatuses

public List substatuses()

Get the substatuses property: The resource status information.

Returns:

the substatuses 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.

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.

withStatuses

public VirtualMachineExtensionInstanceView withStatuses(List statuses)

Set the statuses property: The resource status information.

Parameters:

statuses - the statuses value to set.

Returns:

the VirtualMachineExtensionInstanceView object itself.

withSubstatuses

public VirtualMachineExtensionInstanceView withSubstatuses(List substatuses)

Set the substatuses property: The resource status information.

Parameters:

substatuses - the substatuses value to set.

Returns:

the VirtualMachineExtensionInstanceView object itself.

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.

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.

Applies to