Class DiagnosticsDefinition
java.lang.Object
com.azure.resourcemanager.appcontainers.models.DiagnosticsDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiagnosticsDefinition>
public final class DiagnosticsDefinition
extends Object
implements com.azure.json.JsonSerializable<DiagnosticsDefinition>
Metadata of the diagnostics response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the analysisTypes property: List of analysis types.author()
Get the author property: Authors' names of the detector.category()
Get the category property: Category of the detector.Get the description property: Details of the diagnostics info.static DiagnosticsDefinition
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DiagnosticsDefinition from the JsonReader.id()
Get the id property: Unique detector name.name()
Get the name property: Display Name of the detector.score()
Get the score property: Authors' names of the detector.Get the supportTopicList property: List of support topics.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Authors' names of the detector.void
validate()
Validates the instance.withAnalysisTypes
(List<String> analysisTypes) Set the analysisTypes property: List of analysis types.withSupportTopicList
(List<DiagnosticSupportTopic> supportTopicList) Set the supportTopicList property: List of support topics.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
-
DiagnosticsDefinition
public DiagnosticsDefinition()Creates an instance of DiagnosticsDefinition class.
-
-
Method Details
-
id
Get the id property: Unique detector name.- Returns:
- the id value.
-
name
Get the name property: Display Name of the detector.- Returns:
- the name value.
-
description
Get the description property: Details of the diagnostics info.- Returns:
- the description value.
-
author
Get the author property: Authors' names of the detector.- Returns:
- the author value.
-
category
Get the category property: Category of the detector.- Returns:
- the category value.
-
supportTopicList
Get the supportTopicList property: List of support topics.- Returns:
- the supportTopicList value.
-
withSupportTopicList
Set the supportTopicList property: List of support topics.- Parameters:
supportTopicList
- the supportTopicList value to set.- Returns:
- the DiagnosticsDefinition object itself.
-
analysisTypes
Get the analysisTypes property: List of analysis types.- Returns:
- the analysisTypes value.
-
withAnalysisTypes
Set the analysisTypes property: List of analysis types.- Parameters:
analysisTypes
- the analysisTypes value to set.- Returns:
- the DiagnosticsDefinition object itself.
-
type
Get the type property: Authors' names of the detector.- Returns:
- the type value.
-
score
Get the score property: Authors' names of the detector.- Returns:
- the score value.
-
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<DiagnosticsDefinition>
- Throws:
IOException
-
fromJson
public static DiagnosticsDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DiagnosticsDefinition from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DiagnosticsDefinition 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 DiagnosticsDefinition.
-