Class PerfMonResponseInner

java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.PerfMonResponseInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<PerfMonResponseInner>

public final class PerfMonResponseInner extends Object implements com.azure.json.JsonSerializable<PerfMonResponseInner>
Performance monitor API response.
  • Constructor Details

    • PerfMonResponseInner

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

    • code

      public String code()
      Get the code property: The response code.
      Returns:
      the code value.
    • withCode

      public PerfMonResponseInner withCode(String code)
      Set the code property: The response code.
      Parameters:
      code - the code value to set.
      Returns:
      the PerfMonResponseInner object itself.
    • message

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

      public PerfMonResponseInner withMessage(String message)
      Set the message property: The message.
      Parameters:
      message - the message value to set.
      Returns:
      the PerfMonResponseInner object itself.
    • data

      public PerfMonSet data()
      Get the data property: The performance monitor counters.
      Returns:
      the data value.
    • withData

      public PerfMonResponseInner withData(PerfMonSet data)
      Set the data property: The performance monitor counters.
      Parameters:
      data - the data value to set.
      Returns:
      the PerfMonResponseInner object itself.
    • 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<PerfMonResponseInner>
      Throws:
      IOException
    • fromJson

      public static PerfMonResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PerfMonResponseInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PerfMonResponseInner 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 PerfMonResponseInner.