Class VerticalAnnotation.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.VerticalAnnotation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VerticalAnnotation>
- Enclosing interface:
VerticalAnnotation
@Stability(Stable)
public static final class VerticalAnnotation.Builder
extends Object
implements software.amazon.jsii.Builder<VerticalAnnotation>
A builder for
VerticalAnnotation-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofVerticalAnnotation.getColor()Sets the value ofVerticalAnnotation.getDate()fill(VerticalShading fill) Sets the value ofVerticalAnnotation.getFill()Sets the value ofVerticalAnnotation.getLabel()Sets the value ofVerticalAnnotation.getVisible()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
date
Sets the value ofVerticalAnnotation.getDate()- Parameters:
date- The date and time (in ISO 8601 format) in the graph where the vertical annotation line is to appear. This parameter is required.- Returns:
this
-
color
Sets the value ofVerticalAnnotation.getColor()- Parameters:
color- 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.- Returns:
this
-
fill
Sets the value ofVerticalAnnotation.getFill()- Parameters:
fill- Add shading before or after the annotation.- Returns:
this
-
label
Sets the value ofVerticalAnnotation.getLabel()- Parameters:
label- Label for the annotation.- Returns:
this
-
visible
Sets the value ofVerticalAnnotation.getVisible()- Parameters:
visible- Whether the annotation is visible.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VerticalAnnotation>- Returns:
- a new instance of
VerticalAnnotation - Throws:
NullPointerException- if any required attribute was not provided
-