@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ApplicationVersionLifecycleConfig extends Object implements Serializable, Cloneable
The application version lifecycle settings for an application. Defines the rules that Elastic Beanstalk applies to an application's versions in order to avoid hitting the per-region limit for application versions.
When Elastic Beanstalk deletes an application version from its database, you can no longer deploy that version to an environment. The source bundle remains in S3 unless you configure the rule to delete it.
Constructor and Description |
---|
ApplicationVersionLifecycleConfig() |
Modifier and Type | Method and Description |
---|---|
ApplicationVersionLifecycleConfig |
clone() |
boolean |
equals(Object obj) |
MaxAgeRule |
getMaxAgeRule()
Specify a max age rule to restrict the length of time that application versions are retained for an application.
|
MaxCountRule |
getMaxCountRule()
Specify a max count rule to restrict the number of application versions that are retained for an application.
|
int |
hashCode() |
void |
setMaxAgeRule(MaxAgeRule maxAgeRule)
Specify a max age rule to restrict the length of time that application versions are retained for an application.
|
void |
setMaxCountRule(MaxCountRule maxCountRule)
Specify a max count rule to restrict the number of application versions that are retained for an application.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ApplicationVersionLifecycleConfig |
withMaxAgeRule(MaxAgeRule maxAgeRule)
Specify a max age rule to restrict the length of time that application versions are retained for an application.
|
ApplicationVersionLifecycleConfig |
withMaxCountRule(MaxCountRule maxCountRule)
Specify a max count rule to restrict the number of application versions that are retained for an application.
|
public void setMaxCountRule(MaxCountRule maxCountRule)
Specify a max count rule to restrict the number of application versions that are retained for an application.
maxCountRule
- Specify a max count rule to restrict the number of application versions that are retained for an
application.public MaxCountRule getMaxCountRule()
Specify a max count rule to restrict the number of application versions that are retained for an application.
public ApplicationVersionLifecycleConfig withMaxCountRule(MaxCountRule maxCountRule)
Specify a max count rule to restrict the number of application versions that are retained for an application.
maxCountRule
- Specify a max count rule to restrict the number of application versions that are retained for an
application.public void setMaxAgeRule(MaxAgeRule maxAgeRule)
Specify a max age rule to restrict the length of time that application versions are retained for an application.
maxAgeRule
- Specify a max age rule to restrict the length of time that application versions are retained for an
application.public MaxAgeRule getMaxAgeRule()
Specify a max age rule to restrict the length of time that application versions are retained for an application.
public ApplicationVersionLifecycleConfig withMaxAgeRule(MaxAgeRule maxAgeRule)
Specify a max age rule to restrict the length of time that application versions are retained for an application.
maxAgeRule
- Specify a max age rule to restrict the length of time that application versions are retained for an
application.public String toString()
toString
in class Object
Object.toString()
public ApplicationVersionLifecycleConfig clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.