Interface HorizontalAnnotation
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HorizontalAnnotation.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:32.483Z")
@Stability(Stable)
public interface HorizontalAnnotation
extends software.amazon.jsii.JsiiSerializable
Horizontal annotation to be added to a graph.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;
HorizontalAnnotation horizontalAnnotation = HorizontalAnnotation.builder()
.value(123)
// the properties below are optional
.color("color")
.fill(Shading.NONE)
.label("label")
.visible(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHorizontalAnnotationstatic final classAn implementation forHorizontalAnnotation -
Method Summary
Modifier and TypeMethodDescriptionstatic HorizontalAnnotation.Builderbuilder()default StringgetColor()The hex color code, prefixed with '#' (e.g.default ShadinggetFill()Add shading above or below the annotation.default StringgetLabel()Label for the annotation.getValue()The value of the annotation.default BooleanWhether the annotation is visible.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getValue
The value of the annotation. -
getColor
The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. TheColorclass has a set of standard colors that can be used here.Default: - Automatic color
-
getFill
Add shading above or below the annotation.Default: No shading
-
getLabel
Label for the annotation.Default: - No label
-
getVisible
Whether the annotation is visible.Default: true
-
builder
- Returns:
- a
HorizontalAnnotation.BuilderofHorizontalAnnotation
-