Class ImpactRecord
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.ImpactRecord
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ImpactRecord>
public final class ImpactRecord
extends Object
implements com.azure.json.JsonSerializable<ImpactRecord>
Impact on some metric if this recommended action is applied.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the absoluteValue property: Absolute value.Get the dimensionName property: Dimension name.static ImpactRecordfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ImpactRecord from the JsonReader.queryId()Get the queryId property: Optional property that can be used to store the identifier of the query, if the metric is for a specific query.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: Dimension unit.voidvalidate()Validates the instance.withAbsoluteValue(Double absoluteValue) Set the absoluteValue property: Absolute value.withDimensionName(String dimensionName) Set the dimensionName property: Dimension name.withQueryId(Long queryId) Set the queryId property: Optional property that can be used to store the identifier of the query, if the metric is for a specific query.Set the unit property: Dimension unit.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
-
ImpactRecord
public ImpactRecord()Creates an instance of ImpactRecord class.
-
-
Method Details
-
dimensionName
Get the dimensionName property: Dimension name.- Returns:
- the dimensionName value.
-
withDimensionName
Set the dimensionName property: Dimension name.- Parameters:
dimensionName- the dimensionName value to set.- Returns:
- the ImpactRecord object itself.
-
unit
-
withUnit
Set the unit property: Dimension unit.- Parameters:
unit- the unit value to set.- Returns:
- the ImpactRecord object itself.
-
queryId
Get the queryId property: Optional property that can be used to store the identifier of the query, if the metric is for a specific query.- Returns:
- the queryId value.
-
withQueryId
Set the queryId property: Optional property that can be used to store the identifier of the query, if the metric is for a specific query.- Parameters:
queryId- the queryId value to set.- Returns:
- the ImpactRecord object itself.
-
absoluteValue
Get the absoluteValue property: Absolute value.- Returns:
- the absoluteValue value.
-
withAbsoluteValue
Set the absoluteValue property: Absolute value.- Parameters:
absoluteValue- the absoluteValue value to set.- Returns:
- the ImpactRecord 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<ImpactRecord>- Throws:
IOException
-
fromJson
Reads an instance of ImpactRecord from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ImpactRecord 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 ImpactRecord.
-