Class AnalysisData
java.lang.Object
com.azure.resourcemanager.appservice.models.AnalysisData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AnalysisData>
public final class AnalysisData
extends Object
implements com.azure.json.JsonSerializable<AnalysisData>
Class Representing Detector Evidence used for analysis.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata()
Get the data property: Additional Source Data.Get the detectorDefinition property: Detector Definition.Get the detectorMetadata property: Detector Meta Data.static AnalysisData
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AnalysisData from the JsonReader.metrics()
Get the metrics property: Source Metrics.source()
Get the source property: Name of the Detector.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withData
(List<List<NameValuePair>> data) Set the data property: Additional Source Data.withDetectorDefinition
(DetectorDefinition detectorDefinition) Set the detectorDefinition property: Detector Definition.withDetectorMetadata
(ResponseMetadata detectorMetadata) Set the detectorMetadata property: Detector Meta Data.withMetrics
(List<DiagnosticMetricSet> metrics) Set the metrics property: Source Metrics.withSource
(String source) Set the source property: Name of the Detector.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AnalysisData
public AnalysisData()Creates an instance of AnalysisData class.
-
-
Method Details
-
source
Get the source property: Name of the Detector.- Returns:
- the source value.
-
withSource
Set the source property: Name of the Detector.- Parameters:
source
- the source value to set.- Returns:
- the AnalysisData object itself.
-
detectorDefinition
Get the detectorDefinition property: Detector Definition.- Returns:
- the detectorDefinition value.
-
withDetectorDefinition
Set the detectorDefinition property: Detector Definition.- Parameters:
detectorDefinition
- the detectorDefinition value to set.- Returns:
- the AnalysisData object itself.
-
metrics
Get the metrics property: Source Metrics.- Returns:
- the metrics value.
-
withMetrics
Set the metrics property: Source Metrics.- Parameters:
metrics
- the metrics value to set.- Returns:
- the AnalysisData object itself.
-
data
Get the data property: Additional Source Data.- Returns:
- the data value.
-
withData
Set the data property: Additional Source Data.- Parameters:
data
- the data value to set.- Returns:
- the AnalysisData object itself.
-
detectorMetadata
Get the detectorMetadata property: Detector Meta Data.- Returns:
- the detectorMetadata value.
-
withDetectorMetadata
Set the detectorMetadata property: Detector Meta Data.- Parameters:
detectorMetadata
- the detectorMetadata value to set.- Returns:
- the AnalysisData object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AnalysisData>
- Throws:
IOException
-
fromJson
Reads an instance of AnalysisData from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AnalysisData 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 AnalysisData.
-