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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the createdDateTime property: The createdDateTime property.Get the description property: The description property.etag()Get the etag property: The eTag property.farmerId()Get the farmerId property: The farmerId property.fileLink()Get the fileLink property: The fileLink property.static InsightAttachmentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of InsightAttachment from the JsonReader.id()Get the id property: The id property.Get the insightId property: The insightId property.modelId()Get the modelId property: The modelId property.Get the modifiedDateTime property: The modifiedDateTime property.name()Get the name property: The name property.Get the originalFileName property: The originalFileName property.Get the resourceId property: The resourceId property.Get the resourceType property: The resourceType property.status()Get the status property: The status property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCreatedDateTime(OffsetDateTime createdDateTime) Set the createdDateTime property: The createdDateTime property.withDescription(String description) Set the description property: The description property.Set the etag property: The eTag property.withFarmerId(String farmerId) Set the farmerId property: The farmerId property.withFileLink(String fileLink) Set the fileLink property: The fileLink property.Set the id property: The id property.withInsightId(String insightId) Set the insightId property: The insightId property.withModelId(String modelId) Set the modelId property: The modelId property.withModifiedDateTime(OffsetDateTime modifiedDateTime) Set the modifiedDateTime property: The modifiedDateTime property.Set the name property: The name property.withOriginalFileName(String originalFileName) Set the originalFileName property: The originalFileName property.withResourceId(String resourceId) Set the resourceId property: The resourceId property.withResourceType(String resourceType) Set the resourceType property: The resourceType property.withStatus(String status) Set the status property: The status 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
-
InsightAttachment
public InsightAttachment()Creates an instance of InsightAttachment class.
-
-
Method Details
-
insightId
Get the insightId property: The insightId property.- Returns:
- the insightId value.
-
withInsightId
Set the insightId property: The insightId property.- Parameters:
insightId- the insightId value to set.- Returns:
- the InsightAttachment object itself.
-
modelId
Get the modelId property: The modelId property.- Returns:
- the modelId value.
-
withModelId
Set the modelId property: The modelId property.- Parameters:
modelId- the modelId value to set.- Returns:
- the InsightAttachment 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 InsightAttachment object itself.
-
resourceId
Get the resourceId property: The resourceId property.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The resourceId property.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the InsightAttachment object itself.
-
fileLink
Get the fileLink property: The fileLink property.- Returns:
- the fileLink value.
-
withFileLink
Set the fileLink property: The fileLink property.- Parameters:
fileLink- the fileLink value to set.- Returns:
- the InsightAttachment object itself.
-
originalFileName
Get the originalFileName property: The originalFileName property.- Returns:
- the originalFileName value.
-
withOriginalFileName
Set the originalFileName property: The originalFileName property.- Parameters:
originalFileName- the originalFileName value to set.- Returns:
- the InsightAttachment object itself.
-
farmerId
Get the farmerId property: The farmerId property.- Returns:
- the farmerId value.
-
withFarmerId
Set the farmerId property: The farmerId property.- Parameters:
farmerId- the farmerId value to set.- Returns:
- the InsightAttachment object itself.
-
id
Get the id property: The id property.- Returns:
- the id value.
-
withId
Set the id property: The id property.- Parameters:
id- the id value to set.- Returns:
- the InsightAttachment object itself.
-
status
Get the status property: The status property.- Returns:
- the status value.
-
withStatus
Set the status property: The status property.- Parameters:
status- the status value to set.- Returns:
- the InsightAttachment object itself.
-
createdDateTime
Get the createdDateTime property: The createdDateTime property.- Returns:
- the createdDateTime value.
-
withCreatedDateTime
Set the createdDateTime property: The createdDateTime property.- Parameters:
createdDateTime- the createdDateTime value to set.- Returns:
- the InsightAttachment object itself.
-
modifiedDateTime
Get the modifiedDateTime property: The modifiedDateTime property.- Returns:
- the modifiedDateTime value.
-
withModifiedDateTime
Set the modifiedDateTime property: The modifiedDateTime property.- Parameters:
modifiedDateTime- the modifiedDateTime value to set.- Returns:
- the InsightAttachment object itself.
-
name
Get the name property: The name property.- Returns:
- the name value.
-
withName
Set the name property: The name property.- Parameters:
name- the name value to set.- Returns:
- the InsightAttachment object itself.
-
description
Get the description property: The description property.- Returns:
- the description value.
-
withDescription
Set the description property: The description property.- Parameters:
description- the description value to set.- Returns:
- the InsightAttachment object itself.
-
etag
Get the etag property: The eTag property.- Returns:
- the etag value.
-
withEtag
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<InsightAttachment>- Throws:
IOException
-
fromJson
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.
-