MachineExtensionInstanceView Class

  • java.lang.Object
    • com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView

public final class MachineExtensionInstanceView

Describes the Machine Extension Instance View.

Constructor Summary

Constructor Description
MachineExtensionInstanceView()

Creates an instance of MachineExtensionInstanceView class.

Method Summary

Modifier and Type Method and Description
String name()

Get the name property: The machine extension name.

MachineExtensionInstanceViewStatus status()

Get the status property: Instance view status.

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.

MachineExtensionInstanceView withName(String name)

Set the name property: The machine extension name.

MachineExtensionInstanceView withStatus(MachineExtensionInstanceViewStatus status)

Set the status property: Instance view status.

MachineExtensionInstanceView withType(String type)

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

MachineExtensionInstanceView withTypeHandlerVersion(String typeHandlerVersion)

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

Methods inherited from java.lang.Object

Constructor Details

MachineExtensionInstanceView

public MachineExtensionInstanceView()

Creates an instance of MachineExtensionInstanceView class.

Method Details

name

public String name()

Get the name property: The machine extension name.

Returns:

the name value.

status

public MachineExtensionInstanceViewStatus status()

Get the status property: Instance view status.

Returns:

the status value.

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 MachineExtensionInstanceView withName(String name)

Set the name property: The machine extension name.

Parameters:

name - the name value to set.

Returns:

the MachineExtensionInstanceView object itself.

withStatus

public MachineExtensionInstanceView withStatus(MachineExtensionInstanceViewStatus status)

Set the status property: Instance view status.

Parameters:

status - the status value to set.

Returns:

the MachineExtensionInstanceView object itself.

withType

public MachineExtensionInstanceView 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 MachineExtensionInstanceView object itself.

withTypeHandlerVersion

public MachineExtensionInstanceView withTypeHandlerVersion(String typeHandlerVersion)

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

Parameters:

typeHandlerVersion - the typeHandlerVersion value to set.

Returns:

the MachineExtensionInstanceView object itself.

Applies to