Class CfnApplication.MaxCountRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticbeanstalk.CfnApplication.MaxCountRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.MaxCountRuleProperty>
- Enclosing interface:
CfnApplication.MaxCountRuleProperty
@Stability(Stable)
public static final class CfnApplication.MaxCountRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.MaxCountRuleProperty>
A builder for
CfnApplication.MaxCountRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deleteSourceFromS3(Boolean deleteSourceFromS3) Sets the value ofCfnApplication.MaxCountRuleProperty.getDeleteSourceFromS3()deleteSourceFromS3(IResolvable deleteSourceFromS3) Sets the value ofCfnApplication.MaxCountRuleProperty.getDeleteSourceFromS3()Sets the value ofCfnApplication.MaxCountRuleProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnApplication.MaxCountRuleProperty.getEnabled()Sets the value ofCfnApplication.MaxCountRuleProperty.getMaxCount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deleteSourceFromS3
@Stability(Stable) public CfnApplication.MaxCountRuleProperty.Builder deleteSourceFromS3(Boolean deleteSourceFromS3) Sets the value ofCfnApplication.MaxCountRuleProperty.getDeleteSourceFromS3()- Parameters:
deleteSourceFromS3- Set totrueto delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.- Returns:
this
-
deleteSourceFromS3
@Stability(Stable) public CfnApplication.MaxCountRuleProperty.Builder deleteSourceFromS3(IResolvable deleteSourceFromS3) Sets the value ofCfnApplication.MaxCountRuleProperty.getDeleteSourceFromS3()- Parameters:
deleteSourceFromS3- Set totrueto delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.- Returns:
this
-
enabled
Sets the value ofCfnApplication.MaxCountRuleProperty.getEnabled()- Parameters:
enabled- Specifytrueto apply the rule, orfalseto disable it.- Returns:
this
-
enabled
Sets the value ofCfnApplication.MaxCountRuleProperty.getEnabled()- Parameters:
enabled- Specifytrueto apply the rule, orfalseto disable it.- Returns:
this
-
maxCount
Sets the value ofCfnApplication.MaxCountRuleProperty.getMaxCount()- Parameters:
maxCount- Specify the maximum number of application versions to retain.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplication.MaxCountRuleProperty>- Returns:
- a new instance of
CfnApplication.MaxCountRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-