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 Details

    • ExtensionTargetProperties

      public ExtensionTargetProperties()
      Creates an instance of ExtensionTargetProperties class.
  • Method Details

    • targetVersion

      public String targetVersion()
      Get the targetVersion property: Properties for the specified Extension to Upgrade.
      Returns:
      the targetVersion value.
    • withTargetVersion

      public ExtensionTargetProperties withTargetVersion(String targetVersion)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.