Class CfnApplication.MaxAgeRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticbeanstalk.CfnApplication.MaxAgeRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.MaxAgeRuleProperty>
- Enclosing interface:
CfnApplication.MaxAgeRuleProperty
@Stability(Stable)
public static final class CfnApplication.MaxAgeRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.MaxAgeRuleProperty>
A builder for
CfnApplication.MaxAgeRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deleteSourceFromS3(Boolean deleteSourceFromS3) Sets the value ofCfnApplication.MaxAgeRuleProperty.getDeleteSourceFromS3()deleteSourceFromS3(IResolvable deleteSourceFromS3) Sets the value ofCfnApplication.MaxAgeRuleProperty.getDeleteSourceFromS3()Sets the value ofCfnApplication.MaxAgeRuleProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnApplication.MaxAgeRuleProperty.getEnabled()maxAgeInDays(Number maxAgeInDays) Sets the value ofCfnApplication.MaxAgeRuleProperty.getMaxAgeInDays()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deleteSourceFromS3
@Stability(Stable) public CfnApplication.MaxAgeRuleProperty.Builder deleteSourceFromS3(Boolean deleteSourceFromS3) Sets the value ofCfnApplication.MaxAgeRuleProperty.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.MaxAgeRuleProperty.Builder deleteSourceFromS3(IResolvable deleteSourceFromS3) Sets the value ofCfnApplication.MaxAgeRuleProperty.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.MaxAgeRuleProperty.getEnabled()- Parameters:
enabled- Specifytrueto apply the rule, orfalseto disable it.- Returns:
this
-
enabled
Sets the value ofCfnApplication.MaxAgeRuleProperty.getEnabled()- Parameters:
enabled- Specifytrueto apply the rule, orfalseto disable it.- Returns:
this
-
maxAgeInDays
@Stability(Stable) public CfnApplication.MaxAgeRuleProperty.Builder maxAgeInDays(Number maxAgeInDays) Sets the value ofCfnApplication.MaxAgeRuleProperty.getMaxAgeInDays()- Parameters:
maxAgeInDays- Specify the number of days to retain an application versions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplication.MaxAgeRuleProperty>- Returns:
- a new instance of
CfnApplication.MaxAgeRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-