Class TableThreshold

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.TableThreshold
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:15.877Z") @Stability(Stable) public class TableThreshold extends software.amazon.jsii.JsiiObject
Thresholds for highlighting cells in TableWidget.

Example:

 Dashboard dashboard;
 dashboard.addWidgets(TableWidget.Builder.create()
         // ...
         .thresholds(List.of(TableThreshold.above(1000, Color.RED), TableThreshold.between(500, 1000, Color.ORANGE), TableThreshold.below(500, Color.GREEN)))
         .build());
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    TableThreshold(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    TableThreshold(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    above(Number value)
    A threshold for highlighting and coloring cells above the specified value.
    above(Number value, String color)
    A threshold for highlighting and coloring cells above the specified value.
    below(Number value)
    A threshold for highlighting and coloring cells below the specified value.
    below(Number value, String color)
    A threshold for highlighting and coloring cells below the specified value.
    between(Number lowerBound, Number upperBound)
    A threshold for highlighting and coloring cells within the specified values.
    between(Number lowerBound, Number upperBound, String color)
    A threshold for highlighting and coloring cells within the specified values.
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • TableThreshold

      protected TableThreshold(software.amazon.jsii.JsiiObjectRef objRef)
    • TableThreshold

      protected TableThreshold(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • above

      @Stability(Stable) @NotNull public static TableThreshold above(@NotNull Number value, @Nullable String color)
      A threshold for highlighting and coloring cells above the specified value.

      Parameters:
      value - lower bound of threshold range. This parameter is required.
      color - cell color for values within threshold range.
    • above

      @Stability(Stable) @NotNull public static TableThreshold above(@NotNull Number value)
      A threshold for highlighting and coloring cells above the specified value.

      Parameters:
      value - lower bound of threshold range. This parameter is required.
    • below

      @Stability(Stable) @NotNull public static TableThreshold below(@NotNull Number value, @Nullable String color)
      A threshold for highlighting and coloring cells below the specified value.

      Parameters:
      value - upper bound of threshold range. This parameter is required.
      color - cell color for values within threshold range.
    • below

      @Stability(Stable) @NotNull public static TableThreshold below(@NotNull Number value)
      A threshold for highlighting and coloring cells below the specified value.

      Parameters:
      value - upper bound of threshold range. This parameter is required.
    • between

      @Stability(Stable) @NotNull public static TableThreshold between(@NotNull Number lowerBound, @NotNull Number upperBound, @Nullable String color)
      A threshold for highlighting and coloring cells within the specified values.

      Parameters:
      lowerBound - lower bound of threshold range. This parameter is required.
      upperBound - upper bound of threshold range. This parameter is required.
      color - cell color for values within threshold range.
    • between

      @Stability(Stable) @NotNull public static TableThreshold between(@NotNull Number lowerBound, @NotNull Number upperBound)
      A threshold for highlighting and coloring cells within the specified values.

      Parameters:
      lowerBound - lower bound of threshold range. This parameter is required.
      upperBound - upper bound of threshold range. This parameter is required.
    • toJson

      @Stability(Stable) @NotNull public Object toJson()