Class CfnServicePropsMixin.SourceCodeVersionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apprunner.CfnServicePropsMixin.SourceCodeVersionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.SourceCodeVersionProperty>
- Enclosing interface:
CfnServicePropsMixin.SourceCodeVersionProperty
@Stability(Stable)
public static final class CfnServicePropsMixin.SourceCodeVersionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServicePropsMixin.SourceCodeVersionProperty>
A builder for
CfnServicePropsMixin.SourceCodeVersionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnServicePropsMixin.SourceCodeVersionProperty.getType()Sets the value ofCfnServicePropsMixin.SourceCodeVersionProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnServicePropsMixin.SourceCodeVersionProperty.getType()- Parameters:
type- The type of version identifier. For a git-based repository, branches represent versions.- Returns:
this
-
value
@Stability(Stable) public CfnServicePropsMixin.SourceCodeVersionProperty.Builder value(String value) Sets the value ofCfnServicePropsMixin.SourceCodeVersionProperty.getValue()- Parameters:
value- A source code version. 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<CfnServicePropsMixin.SourceCodeVersionProperty>- Returns:
- a new instance of
CfnServicePropsMixin.SourceCodeVersionProperty - Throws:
NullPointerException- if any required attribute was not provided
-