Class CfnApplicationProps.Builder
java.lang.Object
software.amazon.awscdk.services.serverlessrepo.CfnApplicationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationProps>
- Enclosing interface:
CfnApplicationProps
@Stability(Stable)
public static final class CfnApplicationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationProps>
A builder for
CfnApplicationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnApplicationProps.getAuthor()build()Builds the configured instance.description(String description) Sets the value ofCfnApplicationProps.getDescription()homePageUrl(String homePageUrl) Sets the value ofCfnApplicationProps.getHomePageUrl()Sets the value ofCfnApplicationProps.getLabels()licenseBody(String licenseBody) Sets the value ofCfnApplicationProps.getLicenseBody()Sets the value ofCfnApplicationProps.getName()readmeBody(String readmeBody) Sets the value ofCfnApplicationProps.getReadmeBody()semanticVersion(String semanticVersion) Sets the value ofCfnApplicationProps.getSemanticVersion()sourceCodeUrl(String sourceCodeUrl) Sets the value ofCfnApplicationProps.getSourceCodeUrl()spdxLicenseId(String spdxLicenseId) Sets the value ofCfnApplicationProps.getSpdxLicenseId()templateBody(String templateBody) Sets the value ofCfnApplicationProps.getTemplateBody()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
author
Sets the value ofCfnApplicationProps.getAuthor()- Parameters:
author- The name of the author publishing the app. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnApplicationProps.getDescription()- Parameters:
description- The description of the application. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnApplicationProps.getName()- Parameters:
name- The name of the application. This parameter is required.- Returns:
this
-
homePageUrl
Sets the value ofCfnApplicationProps.getHomePageUrl()- Parameters:
homePageUrl- A URL with more information about the application.- Returns:
this
-
labels
Sets the value ofCfnApplicationProps.getLabels()- Parameters:
labels- Labels to improve discovery of apps in search results.- Returns:
this
-
licenseBody
Sets the value ofCfnApplicationProps.getLicenseBody()- Parameters:
licenseBody- A local text file that contains the license of the app.- Returns:
this
-
readmeBody
Sets the value ofCfnApplicationProps.getReadmeBody()- Parameters:
readmeBody- A text readme file in Markdown language that contains a more detailed description of the application.- Returns:
this
-
semanticVersion
Sets the value ofCfnApplicationProps.getSemanticVersion()- Parameters:
semanticVersion- The semantic version of the application.- Returns:
this
-
sourceCodeUrl
Sets the value ofCfnApplicationProps.getSourceCodeUrl()- Parameters:
sourceCodeUrl- A link to a public repository for the source code of your application.- Returns:
this
-
spdxLicenseId
Sets the value ofCfnApplicationProps.getSpdxLicenseId()- Parameters:
spdxLicenseId- A valid identifier from https://spdx.org/licenses/.- Returns:
this
-
templateBody
Sets the value ofCfnApplicationProps.getTemplateBody()- Parameters:
templateBody- The local raw packaged AWS SAM template file of your application.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplicationProps>- Returns:
- a new instance of
CfnApplicationProps - Throws:
NullPointerException- if any required attribute was not provided
-