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