Class Insight
java.lang.Object
com.azure.resourcemanager.agrifood.models.Insight
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Insight>
The Insight 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.static InsightfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Insight from the JsonReader.id()Get the id property: The id property.Get the insightEndDateTime property: The insightEndDateTime property.Get the insightStartDateTime property: The insightStartDateTime property.measures()Get the measures property: Dictionary of <Measure>.modelId()Get the modelId property: The modelId property.Get the modelVersion property: The modelVersion property.Get the modifiedDateTime property: The modifiedDateTime property.name()Get the name property: The name property.Get the properties property: Dictionary of <any>.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.Set the id property: The id property.withInsightEndDateTime(OffsetDateTime insightEndDateTime) Set the insightEndDateTime property: The insightEndDateTime property.withInsightStartDateTime(OffsetDateTime insightStartDateTime) Set the insightStartDateTime property: The insightStartDateTime property.withMeasures(Map<String, Measure> measures) Set the measures property: Dictionary of <Measure>.withModelId(String modelId) Set the modelId property: The modelId property.withModelVersion(String modelVersion) Set the modelVersion property: The modelVersion property.withModifiedDateTime(OffsetDateTime modifiedDateTime) Set the modifiedDateTime property: The modifiedDateTime property.Set the name property: The name property.withProperties(Map<String, Object> properties) Set the properties property: Dictionary of <any>.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
-
Insight
public Insight()Creates an instance of Insight class.
-
-
Method Details
-
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 Insight 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 Insight 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 Insight 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 Insight object itself.
-
modelVersion
Get the modelVersion property: The modelVersion property.- Returns:
- the modelVersion value.
-
withModelVersion
Set the modelVersion property: The modelVersion property.- Parameters:
modelVersion- the modelVersion value to set.- Returns:
- the Insight object itself.
-
insightStartDateTime
Get the insightStartDateTime property: The insightStartDateTime property.- Returns:
- the insightStartDateTime value.
-
withInsightStartDateTime
Set the insightStartDateTime property: The insightStartDateTime property.- Parameters:
insightStartDateTime- the insightStartDateTime value to set.- Returns:
- the Insight object itself.
-
insightEndDateTime
Get the insightEndDateTime property: The insightEndDateTime property.- Returns:
- the insightEndDateTime value.
-
withInsightEndDateTime
Set the insightEndDateTime property: The insightEndDateTime property.- Parameters:
insightEndDateTime- the insightEndDateTime value to set.- Returns:
- the Insight object itself.
-
measures
Get the measures property: Dictionary of <Measure>.- Returns:
- the measures value.
-
withMeasures
Set the measures property: Dictionary of <Measure>.- Parameters:
measures- the measures value to set.- Returns:
- the Insight 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 Insight 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 Insight 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 Insight 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 Insight 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 Insight 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 Insight 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 Insight object itself.
-
properties
Get the properties property: Dictionary of <any>.- Returns:
- the properties value.
-
withProperties
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Insight>- Throws:
IOException
-
fromJson
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.
-