Class CfnDeploymentGroup.RevisionLocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.RevisionLocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroup.RevisionLocationProperty>
- Enclosing interface:
- CfnDeploymentGroup.RevisionLocationProperty
@Stability(Stable)
public static final class CfnDeploymentGroup.RevisionLocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroup.RevisionLocationProperty>
A builder for
CfnDeploymentGroup.RevisionLocationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.gitHubLocation
(IResolvable gitHubLocation) Sets the value ofCfnDeploymentGroup.RevisionLocationProperty.getGitHubLocation()
gitHubLocation
(CfnDeploymentGroup.GitHubLocationProperty gitHubLocation) Sets the value ofCfnDeploymentGroup.RevisionLocationProperty.getGitHubLocation()
revisionType
(String revisionType) Sets the value ofCfnDeploymentGroup.RevisionLocationProperty.getRevisionType()
s3Location
(IResolvable s3Location) Sets the value ofCfnDeploymentGroup.RevisionLocationProperty.getS3Location()
s3Location
(CfnDeploymentGroup.S3LocationProperty s3Location) Sets the value ofCfnDeploymentGroup.RevisionLocationProperty.getS3Location()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gitHubLocation
@Stability(Stable) public CfnDeploymentGroup.RevisionLocationProperty.Builder gitHubLocation(IResolvable gitHubLocation) Sets the value ofCfnDeploymentGroup.RevisionLocationProperty.getGitHubLocation()
- Parameters:
gitHubLocation
- Information about the location of application artifacts stored in GitHub.- Returns:
this
-
gitHubLocation
@Stability(Stable) public CfnDeploymentGroup.RevisionLocationProperty.Builder gitHubLocation(CfnDeploymentGroup.GitHubLocationProperty gitHubLocation) Sets the value ofCfnDeploymentGroup.RevisionLocationProperty.getGitHubLocation()
- Parameters:
gitHubLocation
- Information about the location of application artifacts stored in GitHub.- Returns:
this
-
revisionType
@Stability(Stable) public CfnDeploymentGroup.RevisionLocationProperty.Builder revisionType(String revisionType) Sets the value ofCfnDeploymentGroup.RevisionLocationProperty.getRevisionType()
- Parameters:
revisionType
- The type of application revision:.- S3: An application revision stored in Amazon S3.
- GitHub: An application revision stored in GitHub (EC2/On-premises deployments only).
- String: A YAML-formatted or JSON-formatted string ( AWS Lambda deployments only).
- AppSpecContent: An
AppSpecContent
object that contains the contents of an AppSpec file for an AWS Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML stored as a RawString.
- Returns:
this
-
s3Location
@Stability(Stable) public CfnDeploymentGroup.RevisionLocationProperty.Builder s3Location(IResolvable s3Location) Sets the value ofCfnDeploymentGroup.RevisionLocationProperty.getS3Location()
- Parameters:
s3Location
- Information about the location of a revision stored in Amazon S3.- Returns:
this
-
s3Location
@Stability(Stable) public CfnDeploymentGroup.RevisionLocationProperty.Builder s3Location(CfnDeploymentGroup.S3LocationProperty s3Location) Sets the value ofCfnDeploymentGroup.RevisionLocationProperty.getS3Location()
- Parameters:
s3Location
- Information about the location of a revision stored in Amazon S3.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroup.RevisionLocationProperty>
- Returns:
- a new instance of
CfnDeploymentGroup.RevisionLocationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-