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