Class ResourceParameter
java.lang.Object
com.azure.resourcemanager.agrifood.models.ResourceParameter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceParameter>
public final class ResourceParameter
extends Object
implements com.azure.json.JsonSerializable<ResourceParameter>
The ResourceParameter model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceParameterfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceParameter from the JsonReader.Get the resourceIdName property: The resourceIdName property.Get the resourceType property: The resourceType property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withResourceIdName(String resourceIdName) Set the resourceIdName property: The resourceIdName property.withResourceType(String resourceType) Set the resourceType property: The resourceType property.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
-
ResourceParameter
public ResourceParameter()Creates an instance of ResourceParameter class.
-
-
Method Details
-
resourceIdName
Get the resourceIdName property: The resourceIdName property.- Returns:
- the resourceIdName value.
-
withResourceIdName
Set the resourceIdName property: The resourceIdName property.- Parameters:
resourceIdName- the resourceIdName value to set.- Returns:
- the ResourceParameter object itself.
-
resourceType
Get the resourceType property: The resourceType property.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: The resourceType property.- Parameters:
resourceType- the resourceType value to set.- Returns:
- the ResourceParameter 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<ResourceParameter>- Throws:
IOException
-
fromJson
Reads an instance of ResourceParameter from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResourceParameter 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 ResourceParameter.
-