Class MachineRunCommandUpdate

java.lang.Object
com.azure.resourcemanager.hybridcompute.models.ResourceUpdate
com.azure.resourcemanager.hybridcompute.models.MachineRunCommandUpdate
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceUpdate>

public final class MachineRunCommandUpdate extends ResourceUpdate
Describes a Machine Extension Update.
  • Constructor Details

    • MachineRunCommandUpdate

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

    • withTags

      public MachineRunCommandUpdate withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Overrides:
      withTags in class ResourceUpdate
      Parameters:
      tags - the tags value to set.
      Returns:
      the ResourceUpdate object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ResourceUpdate
      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<ResourceUpdate>
      Overrides:
      toJson in class ResourceUpdate
      Throws:
      IOException
    • fromJson

      public static MachineRunCommandUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MachineRunCommandUpdate from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MachineRunCommandUpdate 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 MachineRunCommandUpdate.