Class MachineExtensionUpgrade
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpgrade
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MachineExtensionUpgrade>
public final class MachineExtensionUpgrade
extends Object
implements com.azure.json.JsonSerializable<MachineExtensionUpgrade>
Describes the Machine Extension Upgrade Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MachineExtensionUpgrade class. -
Method Summary
Modifier and TypeMethodDescriptionGet the extensionTargets property: Describes the Extension Target Properties.static MachineExtensionUpgradefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MachineExtensionUpgrade from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withExtensionTargets(Map<String, ExtensionTargetProperties> extensionTargets) Set the extensionTargets property: Describes the Extension Target Properties.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
-
MachineExtensionUpgrade
public MachineExtensionUpgrade()Creates an instance of MachineExtensionUpgrade class.
-
-
Method Details
-
extensionTargets
Get the extensionTargets property: Describes the Extension Target Properties.- Returns:
- the extensionTargets value.
-
withExtensionTargets
public MachineExtensionUpgrade withExtensionTargets(Map<String, ExtensionTargetProperties> extensionTargets) Set the extensionTargets property: Describes the Extension Target Properties.- Parameters:
extensionTargets- the extensionTargets value to set.- Returns:
- the MachineExtensionUpgrade 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<MachineExtensionUpgrade>- Throws:
IOException
-
fromJson
public static MachineExtensionUpgrade fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MachineExtensionUpgrade from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MachineExtensionUpgrade 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 MachineExtensionUpgrade.
-