Class ObjectRecommendationInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.ObjectRecommendationInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class ObjectRecommendationInner extends com.azure.core.management.ProxyResource
Object recommendation properties.
  • Constructor Details

    • ObjectRecommendationInner

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

    • kind

      public String kind()
      Get the kind property: Always empty.
      Returns:
      the kind value.
    • withKind

      public ObjectRecommendationInner withKind(String kind)
      Set the kind property: Always empty.
      Parameters:
      kind - the kind value to set.
      Returns:
      the ObjectRecommendationInner object itself.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Returns:
      the systemData value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • initialRecommendedTime

      public OffsetDateTime initialRecommendedTime()
      Get the initialRecommendedTime property: Creation time (UTC) of this recommendation.
      Returns:
      the initialRecommendedTime value.
    • lastRecommendedTime

      public OffsetDateTime lastRecommendedTime()
      Get the lastRecommendedTime property: Last time (UTC) that this recommendation was produced.
      Returns:
      the lastRecommendedTime value.
    • timesRecommended

      public Integer timesRecommended()
      Get the timesRecommended property: Number of times this recommendation has been produced.
      Returns:
      the timesRecommended value.
    • improvedQueryIds

      public List<Long> improvedQueryIds()
      Get the improvedQueryIds property: List of identifiers for all queries identified as targets for improvement if the recommendation is applied. The list is only populated for CREATE INDEX recommendations.
      Returns:
      the improvedQueryIds value.
    • recommendationReason

      public String recommendationReason()
      Get the recommendationReason property: Reason for this recommendation.
      Returns:
      the recommendationReason value.
    • currentState

      public String currentState()
      Get the currentState property: Current state.
      Returns:
      the currentState value.
    • recommendationType

      public RecommendationTypeEnum recommendationType()
      Get the recommendationType property: Type for this recommendation.
      Returns:
      the recommendationType value.
    • implementationDetails

      Get the implementationDetails property: Implementation details for the recommended action.
      Returns:
      the implementationDetails value.
    • analyzedWorkload

      Get the analyzedWorkload property: Workload information for the recommended action.
      Returns:
      the analyzedWorkload value.
    • estimatedImpact

      public List<ImpactRecord> estimatedImpact()
      Get the estimatedImpact property: Estimated impact of this recommended action.
      Returns:
      the estimatedImpact value.
    • details

      public ObjectRecommendationDetails details()
      Get the details property: Recommendation details for the recommended action.
      Returns:
      the details 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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

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