Class ObjectRecommendationDetails

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

public final class ObjectRecommendationDetails extends Object implements com.azure.json.JsonSerializable<ObjectRecommendationDetails>
Recommendation details for the recommended action.
  • Constructor Details

    • ObjectRecommendationDetails

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

    • databaseName

      public String databaseName()
      Get the databaseName property: Database name.
      Returns:
      the databaseName value.
    • withDatabaseName

      public ObjectRecommendationDetails withDatabaseName(String databaseName)
      Set the databaseName property: Database name.
      Parameters:
      databaseName - the databaseName value to set.
      Returns:
      the ObjectRecommendationDetails object itself.
    • schema

      public String schema()
      Get the schema property: Schema name.
      Returns:
      the schema value.
    • withSchema

      public ObjectRecommendationDetails withSchema(String schema)
      Set the schema property: Schema name.
      Parameters:
      schema - the schema value to set.
      Returns:
      the ObjectRecommendationDetails object itself.
    • table

      public String table()
      Get the table property: Table name.
      Returns:
      the table value.
    • withTable

      public ObjectRecommendationDetails withTable(String table)
      Set the table property: Table name.
      Parameters:
      table - the table value to set.
      Returns:
      the ObjectRecommendationDetails object itself.
    • indexType

      public String indexType()
      Get the indexType property: Index type.
      Returns:
      the indexType value.
    • withIndexType

      public ObjectRecommendationDetails withIndexType(String indexType)
      Set the indexType property: Index type.
      Parameters:
      indexType - the indexType value to set.
      Returns:
      the ObjectRecommendationDetails object itself.
    • indexName

      public String indexName()
      Get the indexName property: Index name.
      Returns:
      the indexName value.
    • withIndexName

      public ObjectRecommendationDetails withIndexName(String indexName)
      Set the indexName property: Index name.
      Parameters:
      indexName - the indexName value to set.
      Returns:
      the ObjectRecommendationDetails object itself.
    • indexColumns

      public List<String> indexColumns()
      Get the indexColumns property: Index columns.
      Returns:
      the indexColumns value.
    • withIndexColumns

      public ObjectRecommendationDetails withIndexColumns(List<String> indexColumns)
      Set the indexColumns property: Index columns.
      Parameters:
      indexColumns - the indexColumns value to set.
      Returns:
      the ObjectRecommendationDetails object itself.
    • includedColumns

      public List<String> includedColumns()
      Get the includedColumns property: Index included columns.
      Returns:
      the includedColumns value.
    • withIncludedColumns

      public ObjectRecommendationDetails withIncludedColumns(List<String> includedColumns)
      Set the includedColumns property: Index included columns.
      Parameters:
      includedColumns - the includedColumns value to set.
      Returns:
      the ObjectRecommendationDetails 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<ObjectRecommendationDetails>
      Throws:
      IOException
    • fromJson

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