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 Summary
ConstructorsConstructorDescriptionCreates an instance of ObjectRecommendationDetails class. -
Method Summary
Modifier and TypeMethodDescriptionGet the databaseName property: Database name.static ObjectRecommendationDetailsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ObjectRecommendationDetails from the JsonReader.Get the includedColumns property: Index included columns.Get the indexColumns property: Index columns.Get the indexName property: Index name.Get the indexType property: Index type.schema()Get the schema property: Schema name.table()Get the table property: Table name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDatabaseName(String databaseName) Set the databaseName property: Database name.withIncludedColumns(List<String> includedColumns) Set the includedColumns property: Index included columns.withIndexColumns(List<String> indexColumns) Set the indexColumns property: Index columns.withIndexName(String indexName) Set the indexName property: Index name.withIndexType(String indexType) Set the indexType property: Index type.withSchema(String schema) Set the schema property: Schema name.Set the table property: Table name.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ObjectRecommendationDetails
public ObjectRecommendationDetails()Creates an instance of ObjectRecommendationDetails class.
-
-
Method Details
-
databaseName
Get the databaseName property: Database name.- Returns:
- the databaseName value.
-
withDatabaseName
Set the databaseName property: Database name.- Parameters:
databaseName- the databaseName value to set.- Returns:
- the ObjectRecommendationDetails object itself.
-
schema
-
withSchema
Set the schema property: Schema name.- Parameters:
schema- the schema value to set.- Returns:
- the ObjectRecommendationDetails object itself.
-
table
-
withTable
Set the table property: Table name.- Parameters:
table- the table value to set.- Returns:
- the ObjectRecommendationDetails object itself.
-
indexType
-
withIndexType
Set the indexType property: Index type.- Parameters:
indexType- the indexType value to set.- Returns:
- the ObjectRecommendationDetails object itself.
-
indexName
-
withIndexName
Set the indexName property: Index name.- Parameters:
indexName- the indexName value to set.- Returns:
- the ObjectRecommendationDetails object itself.
-
indexColumns
-
withIndexColumns
Set the indexColumns property: Index columns.- Parameters:
indexColumns- the indexColumns value to set.- Returns:
- the ObjectRecommendationDetails object itself.
-
includedColumns
-
withIncludedColumns
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
- Specified by:
toJsonin interfacecom.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.
-