Class CfnApplicationVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticbeanstalk.CfnApplicationVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationVersionProps>
- Enclosing interface:
- CfnApplicationVersionProps
@Stability(Stable)
public static final class CfnApplicationVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationVersionProps>
A builder for
CfnApplicationVersionProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationName
(String applicationName) Sets the value ofCfnApplicationVersionProps.getApplicationName()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnApplicationVersionProps.getDescription()
sourceBundle
(IResolvable sourceBundle) Sets the value ofCfnApplicationVersionProps.getSourceBundle()
sourceBundle
(CfnApplicationVersion.SourceBundleProperty sourceBundle) Sets the value ofCfnApplicationVersionProps.getSourceBundle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationName
@Stability(Stable) public CfnApplicationVersionProps.Builder applicationName(String applicationName) Sets the value ofCfnApplicationVersionProps.getApplicationName()
- Parameters:
applicationName
- The name of the Elastic Beanstalk application that is associated with this application version. This parameter is required.- Returns:
this
-
sourceBundle
Sets the value ofCfnApplicationVersionProps.getSourceBundle()
- Parameters:
sourceBundle
- The Amazon S3 bucket and key that identify the location of the source bundle for this version. This parameter is required.The Amazon S3 bucket must be in the same region as the environment.
- Returns:
this
-
sourceBundle
@Stability(Stable) public CfnApplicationVersionProps.Builder sourceBundle(CfnApplicationVersion.SourceBundleProperty sourceBundle) Sets the value ofCfnApplicationVersionProps.getSourceBundle()
- Parameters:
sourceBundle
- The Amazon S3 bucket and key that identify the location of the source bundle for this version. This parameter is required.The Amazon S3 bucket must be in the same region as the environment.
- Returns:
this
-
description
Sets the value ofCfnApplicationVersionProps.getDescription()
- Parameters:
description
- A description of this application version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplicationVersionProps>
- Returns:
- a new instance of
CfnApplicationVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-