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 Summary
ConstructorsConstructorDescriptionCreates an instance of FarmBeatsUpdateRequestModel class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FarmBeatsUpdateRequestModelfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FarmBeatsUpdateRequestModel from the JsonReader.identity()Get the identity property: Identity for the resource.location()Get the location property: Geo-location where the resource lives.Get the properties property: FarmBeats ARM Resource properties.tags()Get the tags property: Resource tags.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIdentity(Identity identity) Set the identity property: Identity for the resource.withLocation(String location) Set the location property: Geo-location where the resource lives.withProperties(FarmBeatsUpdateProperties properties) Set the properties property: FarmBeats ARM Resource properties.Set the tags property: Resource tags.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
-
FarmBeatsUpdateRequestModel
public FarmBeatsUpdateRequestModel()Creates an instance of FarmBeatsUpdateRequestModel class.
-
-
Method Details
-
location
Get the location property: Geo-location where the resource lives.- Returns:
- the location value.
-
withLocation
Set the location property: Geo-location where the resource lives.- Parameters:
location- the location value to set.- Returns:
- the FarmBeatsUpdateRequestModel object itself.
-
identity
Get the identity property: Identity for the resource.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Identity for the resource.- Parameters:
identity- the identity value to set.- Returns:
- the FarmBeatsUpdateRequestModel object itself.
-
properties
Get the properties property: FarmBeats ARM Resource properties.- Returns:
- the properties value.
-
withProperties
Set the properties property: FarmBeats ARM Resource properties.- Parameters:
properties- the properties value to set.- Returns:
- the FarmBeatsUpdateRequestModel object itself.
-
tags
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
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
- Specified by:
toJsonin interfacecom.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.
-