Class DiagnosticsProperties
java.lang.Object
com.azure.resourcemanager.appcontainers.models.DiagnosticsProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiagnosticsProperties>
public final class DiagnosticsProperties
extends Object
implements com.azure.json.JsonSerializable<DiagnosticsProperties>
Diagnostics resource specific properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dataProviderMetadata property: List of data providers' metadata.dataset()
Get the dataset property: Set of data collections associated with the response.static DiagnosticsProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DiagnosticsProperties from the JsonReader.metadata()
Get the metadata property: Metadata of the diagnostics response.status()
Get the status property: Status of the diagnostics response.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDataProviderMetadata
(DiagnosticDataProviderMetadata dataProviderMetadata) Set the dataProviderMetadata property: List of data providers' metadata.withDataset
(List<DiagnosticsDataApiResponse> dataset) Set the dataset property: Set of data collections associated with the response.withMetadata
(DiagnosticsDefinition metadata) Set the metadata property: Metadata of the diagnostics response.withStatus
(DiagnosticsStatus status) Set the status property: Status of the diagnostics response.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
-
DiagnosticsProperties
public DiagnosticsProperties()Creates an instance of DiagnosticsProperties class.
-
-
Method Details
-
metadata
Get the metadata property: Metadata of the diagnostics response.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: Metadata of the diagnostics response.- Parameters:
metadata
- the metadata value to set.- Returns:
- the DiagnosticsProperties object itself.
-
dataset
Get the dataset property: Set of data collections associated with the response.- Returns:
- the dataset value.
-
withDataset
Set the dataset property: Set of data collections associated with the response.- Parameters:
dataset
- the dataset value to set.- Returns:
- the DiagnosticsProperties object itself.
-
status
Get the status property: Status of the diagnostics response.- Returns:
- the status value.
-
withStatus
Set the status property: Status of the diagnostics response.- Parameters:
status
- the status value to set.- Returns:
- the DiagnosticsProperties object itself.
-
dataProviderMetadata
Get the dataProviderMetadata property: List of data providers' metadata.- Returns:
- the dataProviderMetadata value.
-
withDataProviderMetadata
public DiagnosticsProperties withDataProviderMetadata(DiagnosticDataProviderMetadata dataProviderMetadata) Set the dataProviderMetadata property: List of data providers' metadata.- Parameters:
dataProviderMetadata
- the dataProviderMetadata value to set.- Returns:
- the DiagnosticsProperties 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<DiagnosticsProperties>
- Throws:
IOException
-
fromJson
public static DiagnosticsProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DiagnosticsProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DiagnosticsProperties 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 DiagnosticsProperties.
-