Class CfnService.SourceCodeVersionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.SourceCodeVersionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.SourceCodeVersionProperty>
- Enclosing interface:
CfnService.SourceCodeVersionProperty
@Stability(Stable)
public static final class CfnService.SourceCodeVersionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.SourceCodeVersionProperty>
A builder for
CfnService.SourceCodeVersionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnService.SourceCodeVersionProperty.getType()Sets the value ofCfnService.SourceCodeVersionProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnService.SourceCodeVersionProperty.getType()- Parameters:
type- The type of version identifier. This parameter is required. For a git-based repository, branches represent versions.- Returns:
this
-
value
Sets the value ofCfnService.SourceCodeVersionProperty.getValue()- Parameters:
value- A source code version. This parameter is required. For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.SourceCodeVersionProperty>- Returns:
- a new instance of
CfnService.SourceCodeVersionProperty - Throws:
NullPointerException- if any required attribute was not provided
-