Interface VerticalAnnotation
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VerticalAnnotation.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:58.544Z")
@Stability(Stable)
public interface VerticalAnnotation
extends software.amazon.jsii.JsiiSerializable
Vertical 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.*; VerticalAnnotation verticalAnnotation = VerticalAnnotation.builder() .date("date") // the properties below are optional .color("color") .fill(VerticalShading.NONE) .label("label") .visible(false) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVerticalAnnotation
static final class
An implementation forVerticalAnnotation
-
Method Summary
Modifier and TypeMethodDescriptionstatic VerticalAnnotation.Builder
builder()
default String
getColor()
The hex color code, prefixed with '#' (e.g.getDate()
The date and time (in ISO 8601 format) in the graph where the vertical annotation line is to appear.default VerticalShading
getFill()
Add shading before or after the annotation.default String
getLabel()
Label for the annotation.default Boolean
Whether the annotation is visible.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDate
The date and time (in ISO 8601 format) in the graph where the vertical annotation line is to appear. -
getColor
The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. TheColor
class has a set of standard colors that can be used here.Default: - Automatic color
-
getFill
Add shading before or after the annotation.Default: No shading
-
getLabel
Label for the annotation.Default: - No label
-
getVisible
Whether the annotation is visible.Default: true
-
builder
- Returns:
- a
VerticalAnnotation.Builder
ofVerticalAnnotation
-