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 Details

    • ImpactRecord

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

    • dimensionName

      public String dimensionName()
      Get the dimensionName property: Dimension name.
      Returns:
      the dimensionName value.
    • withDimensionName

      public ImpactRecord withDimensionName(String dimensionName)
      Set the dimensionName property: Dimension name.
      Parameters:
      dimensionName - the dimensionName value to set.
      Returns:
      the ImpactRecord object itself.
    • unit

      public String unit()
      Get the unit property: Dimension unit.
      Returns:
      the unit value.
    • withUnit

      public ImpactRecord withUnit(String unit)
      Set the unit property: Dimension unit.
      Parameters:
      unit - the unit value to set.
      Returns:
      the ImpactRecord object itself.
    • queryId

      public Long 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

      public ImpactRecord 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.
      Parameters:
      queryId - the queryId value to set.
      Returns:
      the ImpactRecord object itself.
    • absoluteValue

      public Double absoluteValue()
      Get the absoluteValue property: Absolute value.
      Returns:
      the absoluteValue value.
    • withAbsoluteValue

      public ImpactRecord withAbsoluteValue(Double absoluteValue)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ImpactRecord>
      Throws:
      IOException
    • fromJson

      public static ImpactRecord fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.