Class FarmBeatsUpdateRequestModel

java.lang.Object
com.azure.resourcemanager.agrifood.models.FarmBeatsUpdateRequestModel
All Implemented Interfaces:
com.azure.json.JsonSerializable<FarmBeatsUpdateRequestModel>

public final class FarmBeatsUpdateRequestModel extends Object implements com.azure.json.JsonSerializable<FarmBeatsUpdateRequestModel>
FarmBeats update request.
  • Constructor Details

    • FarmBeatsUpdateRequestModel

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

    • location

      public String location()
      Get the location property: Geo-location where the resource lives.
      Returns:
      the location value.
    • withLocation

      public FarmBeatsUpdateRequestModel withLocation(String location)
      Set the location property: Geo-location where the resource lives.
      Parameters:
      location - the location value to set.
      Returns:
      the FarmBeatsUpdateRequestModel object itself.
    • identity

      public Identity identity()
      Get the identity property: Identity for the resource.
      Returns:
      the identity value.
    • withIdentity

      public FarmBeatsUpdateRequestModel withIdentity(Identity identity)
      Set the identity property: Identity for the resource.
      Parameters:
      identity - the identity value to set.
      Returns:
      the FarmBeatsUpdateRequestModel object itself.
    • properties

      public FarmBeatsUpdateProperties properties()
      Get the properties property: FarmBeats ARM Resource properties.
      Returns:
      the properties value.
    • withProperties

      public FarmBeatsUpdateRequestModel withProperties(FarmBeatsUpdateProperties properties)
      Set the properties property: FarmBeats ARM Resource properties.
      Parameters:
      properties - the properties value to set.
      Returns:
      the FarmBeatsUpdateRequestModel object itself.
    • tags

      public Map<String,String> tags()
      Get the tags property: Resource tags.
      Returns:
      the tags value.
    • withTags

      public FarmBeatsUpdateRequestModel withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Parameters:
      tags - the tags value to set.
      Returns:
      the FarmBeatsUpdateRequestModel 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<FarmBeatsUpdateRequestModel>
      Throws:
      IOException
    • fromJson

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