Class DiagramOptions.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.cdkgraphplugindiagram.DiagramOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DiagramOptions>
- Enclosing interface:
- DiagramOptions
@Stability(Experimental) public static final class DiagramOptions.Builder extends Object implements software.amazon.jsii.Builder<DiagramOptions>
A builder forDiagramOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiagramOptionsbuild()Builds the configured instance.DiagramOptions.Builderpreset(software.aws.awsprototypingsdk.cdkgraph.FilterPreset preset)Sets the value ofDiagramOptions.getPreset()DiagramOptions.Buildertheme(String theme)Sets the value ofDiagramOptions.getTheme()DiagramOptions.Buildertheme(IGraphThemeConfigAlt theme)Sets the value ofDiagramOptions.getTheme()DiagramOptions.Buildertitle(String title)Sets the value ofDiagramOptions.getTitle()
-
-
-
Method Detail
-
title
@Stability(Experimental) public DiagramOptions.Builder title(String title)
Sets the value ofDiagramOptions.getTitle()- Parameters:
title- the value to be set. This parameter is required.- Returns:
this
-
preset
@Stability(Experimental) public DiagramOptions.Builder preset(software.aws.awsprototypingsdk.cdkgraph.FilterPreset preset)
Sets the value ofDiagramOptions.getPreset()- Parameters:
preset- the value to be set.- Returns:
this
-
theme
@Stability(Experimental) public DiagramOptions.Builder theme(String theme)
Sets the value ofDiagramOptions.getTheme()- Parameters:
theme- the value to be set.- Returns:
this
-
theme
@Stability(Experimental) public DiagramOptions.Builder theme(IGraphThemeConfigAlt theme)
Sets the value ofDiagramOptions.getTheme()- Parameters:
theme- the value to be set.- Returns:
this
-
build
@Stability(Experimental) public DiagramOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DiagramOptions>- Returns:
- a new instance of
DiagramOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-