Class SmithyApiGatewayProjectOptions.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.openapigateway.SmithyApiGatewayProjectOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SmithyApiGatewayProjectOptions>
- Enclosing interface:
- SmithyApiGatewayProjectOptions
@Stability(Experimental) public static final class SmithyApiGatewayProjectOptions.Builder extends Object implements software.amazon.jsii.Builder<SmithyApiGatewayProjectOptions>
A builder forSmithyApiGatewayProjectOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
serviceName
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder serviceName(SmithyServiceName serviceName)
Sets the value ofSmithyApiGatewayProjectOptions.getServiceName()- Parameters:
serviceName- The name of the Smithy service from your model which will be targeted for deployment and client generation. This parameter is required. On initial project synthesis this service name will be written to the sample "hello world" model. If you change this value after initial synthesis you will need to manually update your Smithy models to match, unless you delete the "model" directory. Likewise, if you change the namespace or service name in your Smithy models you will need to update this value to ensure your service can be found.- Returns:
this
-
ignoreGradleWrapper
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder ignoreGradleWrapper(Boolean ignoreGradleWrapper)
Sets the value ofSmithyApiGatewayProjectOptions.getIgnoreGradleWrapper()- Parameters:
ignoreGradleWrapper- Set to false if you would like to check in your gradle wrapper. Do so if you would like to use a different version of gradle to the one provided by default- Returns:
this
-
ignoreSmithyBuildOutput
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder ignoreSmithyBuildOutput(Boolean ignoreSmithyBuildOutput)
Sets the value ofSmithyApiGatewayProjectOptions.getIgnoreSmithyBuildOutput()- Parameters:
ignoreSmithyBuildOutput- Set to false if you would like to check in your smithy build output or have more fine-grained control over what is checked in, eg if you add other projections to the smithy-build.json file.- Returns:
this
-
modelDir
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder modelDir(String modelDir)
Sets the value ofSmithyApiGatewayProjectOptions.getModelDir()- Parameters:
modelDir- The path to the Smithy model directory, relative to the project source directory (srcdir).- Returns:
this
-
smithyBuildOptions
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder smithyBuildOptions(SmithyBuildOptions smithyBuildOptions)
Sets the value ofSmithyApiGatewayProjectOptions.getSmithyBuildOptions()- Parameters:
smithyBuildOptions- Any additional properties you'd like to add your smithy-build.json. The smithy-build.json will automatically include the "openapi" plugin, but you can add extra configuration for that via this option if you like.- Returns:
this
-
clientLanguages
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder clientLanguages(List<? extends ClientLanguage> clientLanguages)
Sets the value ofCommonApiProjectOptions.getClientLanguages()- Parameters:
clientLanguages- The list of languages for which clients will be generated. This parameter is required. A typescript client will always be generated.- Returns:
this
-
apiSrcDir
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder apiSrcDir(String apiSrcDir)
Sets the value ofCommonApiProjectOptions.getApiSrcDir()- Parameters:
apiSrcDir- The directory in which the api generated code will reside, relative to the project srcdir.- Returns:
this
-
documentationFormats
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder documentationFormats(List<? extends DocumentationFormat> documentationFormats)
Sets the value ofCommonApiProjectOptions.getDocumentationFormats()- Parameters:
documentationFormats- Formats to generate documentation in.- Returns:
this
-
forceGenerateCodeAndDocs
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder forceGenerateCodeAndDocs(Boolean forceGenerateCodeAndDocs)
Sets the value ofCommonApiProjectOptions.getForceGenerateCodeAndDocs()- Parameters:
forceGenerateCodeAndDocs- Force to generate code and docs even if there were no changes in spec.- Returns:
this
-
generatedCodeDir
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder generatedCodeDir(String generatedCodeDir)
Sets the value ofCommonApiProjectOptions.getGeneratedCodeDir()- Parameters:
generatedCodeDir- The directory in which generated client code will be generated, relative to the outdir of this project.- Returns:
this
-
javaClientOptions
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder javaClientOptions(io.github.cdklabs.projen.java.JavaProjectOptions javaClientOptions)
Sets the value ofCommonApiProjectOptions.getJavaClientOptions()- Parameters:
javaClientOptions- Options for the generated java client (if specified in clientLanguages). These override the default inferred options.- Returns:
this
-
parsedSpecFileName
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder parsedSpecFileName(String parsedSpecFileName)
Sets the value ofCommonApiProjectOptions.getParsedSpecFileName()- Parameters:
parsedSpecFileName- The name of the output parsed OpenAPI specification file. Must end with .json.- Returns:
this
-
pythonClientOptions
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder pythonClientOptions(io.github.cdklabs.projen.python.PythonProjectOptions pythonClientOptions)
Sets the value ofCommonApiProjectOptions.getPythonClientOptions()- Parameters:
pythonClientOptions- Options for the generated python client (if specified in clientLanguages). These override the default inferred options.- Returns:
this
-
typescriptClientOptions
@Stability(Experimental) public SmithyApiGatewayProjectOptions.Builder typescriptClientOptions(io.github.cdklabs.projen.typescript.TypeScriptProjectOptions typescriptClientOptions)
Sets the value ofCommonApiProjectOptions.getTypescriptClientOptions()- Parameters:
typescriptClientOptions- Options for the generated typescript client. These override the default inferred options.- Returns:
this
-
build
@Stability(Experimental) public SmithyApiGatewayProjectOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SmithyApiGatewayProjectOptions>- Returns:
- a new instance of
SmithyApiGatewayProjectOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-