Class ObjectRecommendationPropertiesAnalyzedWorkload

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.ObjectRecommendationPropertiesAnalyzedWorkload
All Implemented Interfaces:
com.azure.json.JsonSerializable<ObjectRecommendationPropertiesAnalyzedWorkload>

public final class ObjectRecommendationPropertiesAnalyzedWorkload extends Object implements com.azure.json.JsonSerializable<ObjectRecommendationPropertiesAnalyzedWorkload>
Workload information for the recommended action.
  • Constructor Details

    • ObjectRecommendationPropertiesAnalyzedWorkload

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

    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: Start time (UTC) of the workload analyzed.
      Returns:
      the startTime value.
    • withStartTime

      Set the startTime property: Start time (UTC) of the workload analyzed.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the ObjectRecommendationPropertiesAnalyzedWorkload object itself.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: End time (UTC) of the workload analyzed.
      Returns:
      the endTime value.
    • withEndTime

      Set the endTime property: End time (UTC) of the workload analyzed.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the ObjectRecommendationPropertiesAnalyzedWorkload object itself.
    • queryCount

      public Integer queryCount()
      Get the queryCount property: Number of queries from the workload that were examined to produce this recommendation. For DROP INDEX recommendations it's 0 (zero).
      Returns:
      the queryCount value.
    • withQueryCount

      public ObjectRecommendationPropertiesAnalyzedWorkload withQueryCount(Integer queryCount)
      Set the queryCount property: Number of queries from the workload that were examined to produce this recommendation. For DROP INDEX recommendations it's 0 (zero).
      Parameters:
      queryCount - the queryCount value to set.
      Returns:
      the ObjectRecommendationPropertiesAnalyzedWorkload 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<ObjectRecommendationPropertiesAnalyzedWorkload>
      Throws:
      IOException
    • fromJson

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