Class CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticbeanstalk.CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty>
- Enclosing interface:
CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty
@Stability(Stable)
public static final class CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxAgeRule(IResolvable maxAgeRule) maxCountRule(CfnApplicationPropsMixin.MaxCountRuleProperty maxCountRule) maxCountRule(IResolvable maxCountRule)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxAgeRule
@Stability(Stable) public CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty.Builder maxAgeRule(IResolvable maxAgeRule) Sets the value ofCfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty.getMaxAgeRule()- Parameters:
maxAgeRule- Specify a max age rule to restrict the length of time that application versions are retained for an application.- Returns:
this
-
maxAgeRule
@Stability(Stable) public CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty.Builder maxAgeRule(CfnApplicationPropsMixin.MaxAgeRuleProperty maxAgeRule) Sets the value ofCfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty.getMaxAgeRule()- Parameters:
maxAgeRule- Specify a max age rule to restrict the length of time that application versions are retained for an application.- Returns:
this
-
maxCountRule
@Stability(Stable) public CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty.Builder maxCountRule(IResolvable maxCountRule) Sets the value ofCfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty.getMaxCountRule()- Parameters:
maxCountRule- Specify a max count rule to restrict the number of application versions that are retained for an application.- Returns:
this
-
maxCountRule
@Stability(Stable) public CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty.Builder maxCountRule(CfnApplicationPropsMixin.MaxCountRuleProperty maxCountRule) Sets the value ofCfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty.getMaxCountRule()- Parameters:
maxCountRule- Specify a max count rule to restrict the number of application versions that are retained for an application.- Returns:
this
-
build
@Stability(Stable) public CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty>- Returns:
- a new instance of
CfnApplicationPropsMixin.ApplicationVersionLifecycleConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-