Class RecommendedActionImpactRecord

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

public final class RecommendedActionImpactRecord extends Object implements com.azure.json.JsonSerializable<RecommendedActionImpactRecord>
Contains information of estimated or observed impact on various metrics for an Azure SQL Database, Server or Elastic Pool Recommended Action.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of RecommendedActionImpactRecord class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the absoluteValue property: Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected.
    Get the changeValueAbsolute property: Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes.
    Get the changeValueRelative property: Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage.
    Get the dimensionName property: Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RecommendedActionImpactRecord from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the unit property: Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • RecommendedActionImpactRecord

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

    • dimensionName

      public String dimensionName()
      Get the dimensionName property: Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
      Returns:
      the dimensionName value.
    • unit

      public String unit()
      Get the unit property: Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
      Returns:
      the unit value.
    • absoluteValue

      public Double absoluteValue()
      Get the absoluteValue property: Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected.
      Returns:
      the absoluteValue value.
    • changeValueAbsolute

      public Double changeValueAbsolute()
      Get the changeValueAbsolute property: Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes.
      Returns:
      the changeValueAbsolute value.
    • changeValueRelative

      public Double changeValueRelative()
      Get the changeValueRelative property: Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage.
      Returns:
      the changeValueRelative value.
    • 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<RecommendedActionImpactRecord>
      Throws:
      IOException
    • fromJson

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