Class DeploymentDiagnosticsDefinition
java.lang.Object
com.azure.resourcemanager.resources.models.DeploymentDiagnosticsDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentDiagnosticsDefinition>
public final class DeploymentDiagnosticsDefinition
extends Object
implements com.azure.json.JsonSerializable<DeploymentDiagnosticsDefinition>
The DeploymentDiagnosticsDefinition model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DeploymentDiagnosticsDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalInfo property: The error additional info.code()Get the code property: The error code.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentDiagnosticsDefinition from the JsonReader.level()Get the level property: Denotes the additional response level.message()Get the message property: The error message.target()Get the target property: The error target.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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
-
DeploymentDiagnosticsDefinition
public DeploymentDiagnosticsDefinition()Creates an instance of DeploymentDiagnosticsDefinition class.
-
-
Method Details
-
level
Get the level property: Denotes the additional response level.- Returns:
- the level value.
-
code
Get the code property: The error code.- Returns:
- the code value.
-
message
Get the message property: The error message.- Returns:
- the message value.
-
target
Get the target property: The error target.- Returns:
- the target value.
-
additionalInfo
Get the additionalInfo property: The error additional info.- Returns:
- the additionalInfo value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeploymentDiagnosticsDefinition>- Throws:
IOException
-
fromJson
public static DeploymentDiagnosticsDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeploymentDiagnosticsDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeploymentDiagnosticsDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DeploymentDiagnosticsDefinition.
-