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 Details

    • DeploymentDiagnosticsDefinition

      public DeploymentDiagnosticsDefinition()
      Creates an instance of DeploymentDiagnosticsDefinition class.
  • Method Details

    • level

      public Level level()
      Get the level property: Denotes the additional response level.
      Returns:
      the level value.
    • code

      public String code()
      Get the code property: The error code.
      Returns:
      the code value.
    • message

      public String message()
      Get the message property: The error message.
      Returns:
      the message value.
    • target

      public String target()
      Get the target property: The error target.
      Returns:
      the target value.
    • additionalInfo

      public List<ErrorAdditionalInfo> 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.