@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MaxCountRule extends Object implements Serializable, Cloneable
A lifecycle rule that deletes the oldest application version when the maximum count is exceeded.
| Constructor and Description | 
|---|
| MaxCountRule() | 
| Modifier and Type | Method and Description | 
|---|---|
| MaxCountRule | clone() | 
| boolean | equals(Object obj) | 
| Boolean | getDeleteSourceFromS3()
 Set to  trueto delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
 application version. | 
| Boolean | getEnabled()
 Specify  trueto apply the rule, orfalseto disable it. | 
| Integer | getMaxCount()
 Specify the maximum number of application versions to retain. | 
| int | hashCode() | 
| Boolean | isDeleteSourceFromS3()
 Set to  trueto delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
 application version. | 
| Boolean | isEnabled()
 Specify  trueto apply the rule, orfalseto disable it. | 
| void | setDeleteSourceFromS3(Boolean deleteSourceFromS3)
 Set to  trueto delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
 application version. | 
| void | setEnabled(Boolean enabled)
 Specify  trueto apply the rule, orfalseto disable it. | 
| void | setMaxCount(Integer maxCount)
 Specify the maximum number of application versions to retain. | 
| String | toString()Returns a string representation of this object. | 
| MaxCountRule | withDeleteSourceFromS3(Boolean deleteSourceFromS3)
 Set to  trueto delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
 application version. | 
| MaxCountRule | withEnabled(Boolean enabled)
 Specify  trueto apply the rule, orfalseto disable it. | 
| MaxCountRule | withMaxCount(Integer maxCount)
 Specify the maximum number of application versions to retain. | 
public void setEnabled(Boolean enabled)
 Specify true to apply the rule, or false to disable it.
 
enabled - Specify true to apply the rule, or false to disable it.public Boolean getEnabled()
 Specify true to apply the rule, or false to disable it.
 
true to apply the rule, or false to disable it.public MaxCountRule withEnabled(Boolean enabled)
 Specify true to apply the rule, or false to disable it.
 
enabled - Specify true to apply the rule, or false to disable it.public Boolean isEnabled()
 Specify true to apply the rule, or false to disable it.
 
true to apply the rule, or false to disable it.public void setMaxCount(Integer maxCount)
Specify the maximum number of application versions to retain.
maxCount - Specify the maximum number of application versions to retain.public Integer getMaxCount()
Specify the maximum number of application versions to retain.
public MaxCountRule withMaxCount(Integer maxCount)
Specify the maximum number of application versions to retain.
maxCount - Specify the maximum number of application versions to retain.public void setDeleteSourceFromS3(Boolean deleteSourceFromS3)
 Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
 application version.
 
deleteSourceFromS3 - Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes
        the application version.public Boolean getDeleteSourceFromS3()
 Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
 application version.
 
true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk
         deletes the application version.public MaxCountRule withDeleteSourceFromS3(Boolean deleteSourceFromS3)
 Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
 application version.
 
deleteSourceFromS3 - Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes
        the application version.public Boolean isDeleteSourceFromS3()
 Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
 application version.
 
true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk
         deletes the application version.public String toString()
toString in class ObjectObject.toString()public MaxCountRule clone()
Copyright © 2021. All rights reserved.