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

public final class Insight extends Object implements com.azure.json.JsonSerializable<Insight>
The Insight model.
  • Constructor Details

    • Insight

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

    • farmerId

      public String farmerId()
      Get the farmerId property: The farmerId property.
      Returns:
      the farmerId value.
    • withFarmerId

      public Insight withFarmerId(String farmerId)
      Set the farmerId property: The farmerId property.
      Parameters:
      farmerId - the farmerId value to set.
      Returns:
      the Insight object itself.
    • modelId

      public String modelId()
      Get the modelId property: The modelId property.
      Returns:
      the modelId value.
    • withModelId

      public Insight withModelId(String modelId)
      Set the modelId property: The modelId property.
      Parameters:
      modelId - the modelId value to set.
      Returns:
      the Insight object itself.
    • resourceType

      public String resourceType()
      Get the resourceType property: The resourceType property.
      Returns:
      the resourceType value.
    • withResourceType

      public Insight withResourceType(String resourceType)
      Set the resourceType property: The resourceType property.
      Parameters:
      resourceType - the resourceType value to set.
      Returns:
      the Insight object itself.
    • resourceId

      public String resourceId()
      Get the resourceId property: The resourceId property.
      Returns:
      the resourceId value.
    • withResourceId

      public Insight withResourceId(String resourceId)
      Set the resourceId property: The resourceId property.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the Insight object itself.
    • modelVersion

      public String modelVersion()
      Get the modelVersion property: The modelVersion property.
      Returns:
      the modelVersion value.
    • withModelVersion

      public Insight withModelVersion(String modelVersion)
      Set the modelVersion property: The modelVersion property.
      Parameters:
      modelVersion - the modelVersion value to set.
      Returns:
      the Insight object itself.
    • insightStartDateTime

      public OffsetDateTime insightStartDateTime()
      Get the insightStartDateTime property: The insightStartDateTime property.
      Returns:
      the insightStartDateTime value.
    • withInsightStartDateTime

      public Insight withInsightStartDateTime(OffsetDateTime insightStartDateTime)
      Set the insightStartDateTime property: The insightStartDateTime property.
      Parameters:
      insightStartDateTime - the insightStartDateTime value to set.
      Returns:
      the Insight object itself.
    • insightEndDateTime

      public OffsetDateTime insightEndDateTime()
      Get the insightEndDateTime property: The insightEndDateTime property.
      Returns:
      the insightEndDateTime value.
    • withInsightEndDateTime

      public Insight withInsightEndDateTime(OffsetDateTime insightEndDateTime)
      Set the insightEndDateTime property: The insightEndDateTime property.
      Parameters:
      insightEndDateTime - the insightEndDateTime value to set.
      Returns:
      the Insight object itself.
    • measures

      public Map<String,Measure> measures()
      Get the measures property: Dictionary of <Measure>.
      Returns:
      the measures value.
    • withMeasures

      public Insight withMeasures(Map<String,Measure> measures)
      Set the measures property: Dictionary of <Measure>.
      Parameters:
      measures - the measures value to set.
      Returns:
      the Insight object itself.
    • id

      public String id()
      Get the id property: The id property.
      Returns:
      the id value.
    • withId

      public Insight withId(String id)
      Set the id property: The id property.
      Parameters:
      id - the id value to set.
      Returns:
      the Insight object itself.
    • status

      public String status()
      Get the status property: The status property.
      Returns:
      the status value.
    • withStatus

      public Insight withStatus(String status)
      Set the status property: The status property.
      Parameters:
      status - the status value to set.
      Returns:
      the Insight object itself.
    • createdDateTime

      public OffsetDateTime createdDateTime()
      Get the createdDateTime property: The createdDateTime property.
      Returns:
      the createdDateTime value.
    • withCreatedDateTime

      public Insight withCreatedDateTime(OffsetDateTime createdDateTime)
      Set the createdDateTime property: The createdDateTime property.
      Parameters:
      createdDateTime - the createdDateTime value to set.
      Returns:
      the Insight object itself.
    • modifiedDateTime

      public OffsetDateTime modifiedDateTime()
      Get the modifiedDateTime property: The modifiedDateTime property.
      Returns:
      the modifiedDateTime value.
    • withModifiedDateTime

      public Insight withModifiedDateTime(OffsetDateTime modifiedDateTime)
      Set the modifiedDateTime property: The modifiedDateTime property.
      Parameters:
      modifiedDateTime - the modifiedDateTime value to set.
      Returns:
      the Insight object itself.
    • etag

      public String etag()
      Get the etag property: The eTag property.
      Returns:
      the etag value.
    • withEtag

      public Insight withEtag(String etag)
      Set the etag property: The eTag property.
      Parameters:
      etag - the etag value to set.
      Returns:
      the Insight object itself.
    • name

      public String name()
      Get the name property: The name property.
      Returns:
      the name value.
    • withName

      public Insight withName(String name)
      Set the name property: The name property.
      Parameters:
      name - the name value to set.
      Returns:
      the Insight object itself.
    • description

      public String description()
      Get the description property: The description property.
      Returns:
      the description value.
    • withDescription

      public Insight withDescription(String description)
      Set the description property: The description property.
      Parameters:
      description - the description value to set.
      Returns:
      the Insight object itself.
    • properties

      public Map<String,Object> properties()
      Get the properties property: Dictionary of <any>.
      Returns:
      the properties value.
    • withProperties

      public Insight withProperties(Map<String,Object> properties)
      Set the properties property: Dictionary of <any>.
      Parameters:
      properties - the properties value to set.
      Returns:
      the Insight 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<Insight>
      Throws:
      IOException
    • fromJson

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