Package io.github.cdklabs.projen.web
Class PostCssOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.web.PostCssOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PostCssOptions>
- Enclosing interface:
- PostCssOptions
@Stability(Experimental) public static final class PostCssOptions.Builder extends Object implements software.amazon.jsii.Builder<PostCssOptions>
A builder forPostCssOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostCssOptionsbuild()Builds the configured instance.PostCssOptions.BuilderfileName(String fileName)Sets the value ofPostCssOptions.getFileName()PostCssOptions.Buildertailwind(Boolean tailwind)Sets the value ofPostCssOptions.getTailwind()PostCssOptions.BuildertailwindOptions(TailwindConfigOptions tailwindOptions)Sets the value ofPostCssOptions.getTailwindOptions()
-
-
-
Method Detail
-
fileName
@Stability(Experimental) public PostCssOptions.Builder fileName(String fileName)
Sets the value ofPostCssOptions.getFileName()- Parameters:
fileName- the value to be set.- Returns:
this
-
tailwind
@Stability(Experimental) public PostCssOptions.Builder tailwind(Boolean tailwind)
Sets the value ofPostCssOptions.getTailwind()- Parameters:
tailwind- Install Tailwind CSS as a PostCSS plugin.- Returns:
this
-
tailwindOptions
@Stability(Experimental) public PostCssOptions.Builder tailwindOptions(TailwindConfigOptions tailwindOptions)
Sets the value ofPostCssOptions.getTailwindOptions()- Parameters:
tailwindOptions- Tailwind CSS options.- Returns:
this
-
build
@Stability(Experimental) public PostCssOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PostCssOptions>- Returns:
- a new instance of
PostCssOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-