Class HorizontalAnnotation.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.HorizontalAnnotation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HorizontalAnnotation>
- Enclosing interface:
HorizontalAnnotation
@Stability(Stable)
public static final class HorizontalAnnotation.Builder
extends Object
implements software.amazon.jsii.Builder<HorizontalAnnotation>
A builder for
HorizontalAnnotation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofHorizontalAnnotation.getColor()
Sets the value ofHorizontalAnnotation.getFill()
Sets the value ofHorizontalAnnotation.getLabel()
Sets the value ofHorizontalAnnotation.getValue()
Sets the value ofHorizontalAnnotation.getVisible()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
Sets the value ofHorizontalAnnotation.getValue()
- Parameters:
value
- The value of the annotation. This parameter is required.- Returns:
this
-
color
Sets the value ofHorizontalAnnotation.getColor()
- Parameters:
color
- 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.- Returns:
this
-
fill
Sets the value ofHorizontalAnnotation.getFill()
- Parameters:
fill
- Add shading above or below the annotation.- Returns:
this
-
label
Sets the value ofHorizontalAnnotation.getLabel()
- Parameters:
label
- Label for the annotation.- Returns:
this
-
visible
Sets the value ofHorizontalAnnotation.getVisible()
- Parameters:
visible
- Whether the annotation is visible.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HorizontalAnnotation>
- Returns:
- a new instance of
HorizontalAnnotation
- Throws:
NullPointerException
- if any required attribute was not provided
-