Package org.cdk8s
Class AppProps.Builder
- java.lang.Object
-
- org.cdk8s.AppProps.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppProps
build()
Builds the configured instance.AppProps.Builder
outdir(String outdir)
Sets the value ofAppProps.getOutdir()
AppProps.Builder
outputFileExtension(String outputFileExtension)
Sets the value ofAppProps.getOutputFileExtension()
AppProps.Builder
recordConstructMetadata(Boolean recordConstructMetadata)
Sets the value ofAppProps.getRecordConstructMetadata()
AppProps.Builder
yamlOutputType(YamlOutputType yamlOutputType)
Sets the value ofAppProps.getYamlOutputType()
-
-
-
Method Detail
-
outdir
@Stability(Stable) public AppProps.Builder outdir(String outdir)
Sets the value ofAppProps.getOutdir()
- Parameters:
outdir
- The directory to output Kubernetes manifests. If you synthesize your application usingcdk8s synth
, you must also pass this value to the CLI using the--output
option or theoutput
property in thecdk8s.yaml
configuration file. Otherwise, the CLI will not know about the output directory, and synthesis will fail.This property is intended for internal and testing use.
- Returns:
this
-
outputFileExtension
@Stability(Stable) public AppProps.Builder outputFileExtension(String outputFileExtension)
Sets the value ofAppProps.getOutputFileExtension()
- Parameters:
outputFileExtension
- The file extension to use for rendered YAML files.- Returns:
this
-
recordConstructMetadata
@Stability(Stable) public AppProps.Builder recordConstructMetadata(Boolean recordConstructMetadata)
Sets the value ofAppProps.getRecordConstructMetadata()
- Parameters:
recordConstructMetadata
- When set to true, the output directory will contain a `construct-metadata.json` file that holds construct related metadata on every resource in the app.- Returns:
this
-
yamlOutputType
@Stability(Stable) public AppProps.Builder yamlOutputType(YamlOutputType yamlOutputType)
Sets the value ofAppProps.getYamlOutputType()
- Parameters:
yamlOutputType
- How to divide the YAML output into files.- Returns:
this
-
build
@Stability(Stable) public AppProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AppProps>
- Returns:
- a new instance of
AppProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-