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 Summary
ConstructorsConstructorDescriptionCreates an instance of ObjectRecommendationPropertiesAnalyzedWorkload class. -
Method Summary
Modifier and TypeMethodDescriptionendTime()Get the endTime property: End time (UTC) of the workload analyzed.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ObjectRecommendationPropertiesAnalyzedWorkload from the JsonReader.Get the queryCount property: Number of queries from the workload that were examined to produce this recommendation.Get the startTime property: Start time (UTC) of the workload analyzed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEndTime(OffsetDateTime endTime) Set the endTime property: End time (UTC) of the workload analyzed.withQueryCount(Integer queryCount) Set the queryCount property: Number of queries from the workload that were examined to produce this recommendation.withStartTime(OffsetDateTime startTime) Set the startTime property: Start time (UTC) of the workload analyzed.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
-
ObjectRecommendationPropertiesAnalyzedWorkload
public ObjectRecommendationPropertiesAnalyzedWorkload()Creates an instance of ObjectRecommendationPropertiesAnalyzedWorkload class.
-
-
Method Details
-
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
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
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
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
- Specified by:
toJsonin interfacecom.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.
-