Class InsightAttachment

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

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

    • InsightAttachment

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

    • insightId

      public String insightId()
      Get the insightId property: The insightId property.
      Returns:
      the insightId value.
    • withInsightId

      public InsightAttachment withInsightId(String insightId)
      Set the insightId property: The insightId property.
      Parameters:
      insightId - the insightId value to set.
      Returns:
      the InsightAttachment object itself.
    • modelId

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

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

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

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

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

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

      public String fileLink()
      Get the fileLink property: The fileLink property.
      Returns:
      the fileLink value.
    • withFileLink

      public InsightAttachment withFileLink(String fileLink)
      Set the fileLink property: The fileLink property.
      Parameters:
      fileLink - the fileLink value to set.
      Returns:
      the InsightAttachment object itself.
    • originalFileName

      public String originalFileName()
      Get the originalFileName property: The originalFileName property.
      Returns:
      the originalFileName value.
    • withOriginalFileName

      public InsightAttachment withOriginalFileName(String originalFileName)
      Set the originalFileName property: The originalFileName property.
      Parameters:
      originalFileName - the originalFileName value to set.
      Returns:
      the InsightAttachment object itself.
    • farmerId

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public InsightAttachment withEtag(String etag)
      Set the etag property: The eTag property.
      Parameters:
      etag - the etag value to set.
      Returns:
      the InsightAttachment 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<InsightAttachment>
      Throws:
      IOException
    • fromJson

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