Class ProximityPlacementGroupUpdate

java.lang.Object
com.azure.resourcemanager.compute.models.UpdateResource
com.azure.resourcemanager.compute.models.ProximityPlacementGroupUpdate
All Implemented Interfaces:
com.azure.json.JsonSerializable<UpdateResource>

public final class ProximityPlacementGroupUpdate extends UpdateResource
Specifies information about the proximity placement group.
  • Constructor Details

    • ProximityPlacementGroupUpdate

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

    • withTags

      Set the tags property: Resource tags.
      Overrides:
      withTags in class UpdateResource
      Parameters:
      tags - the tags value to set.
      Returns:
      the UpdateResource object itself.
    • validate

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

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