Class MachineExtensionInstanceView
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MachineExtensionInstanceView>
public final class MachineExtensionInstanceView
extends Object
implements com.azure.json.JsonSerializable<MachineExtensionInstanceView>
Describes the Machine Extension Instance View.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MachineExtensionInstanceView class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MachineExtensionInstanceViewfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MachineExtensionInstanceView from the JsonReader.name()Get the name property: The machine extension name.status()Get the status property: Instance view status.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".Get the typeHandlerVersion property: Specifies the version of the script handler.voidvalidate()Validates the instance.Set the name property: The machine extension name.Set the status property: Instance view status.Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".withTypeHandlerVersion(String typeHandlerVersion) Set the typeHandlerVersion property: Specifies the version of the script handler.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MachineExtensionInstanceView
public MachineExtensionInstanceView()Creates an instance of MachineExtensionInstanceView class.
-
-
Method Details
-
name
Get the name property: The machine extension name.- Returns:
- the name value.
-
withName
Set the name property: The machine extension name.- Parameters:
name- the name value to set.- Returns:
- the MachineExtensionInstanceView object itself.
-
type
Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Returns:
- the type value.
-
withType
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.
-
typeHandlerVersion
Get the typeHandlerVersion property: Specifies the version of the script handler.- Returns:
- the typeHandlerVersion value.
-
withTypeHandlerVersion
Set the typeHandlerVersion property: Specifies the version of the script handler.- Parameters:
typeHandlerVersion- the typeHandlerVersion value to set.- Returns:
- the MachineExtensionInstanceView object itself.
-
status
Get the status property: Instance view status.- Returns:
- the status value.
-
withStatus
Set the status property: Instance view status.- Parameters:
status- the status value to set.- Returns:
- the MachineExtensionInstanceView object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MachineExtensionInstanceView>- Throws:
IOException
-
fromJson
public static MachineExtensionInstanceView fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MachineExtensionInstanceView from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MachineExtensionInstanceView 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 MachineExtensionInstanceView.
-