@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MaxAgeRule extends Object implements Serializable, Cloneable
A lifecycle rule that deletes application versions after the specified number of days.
Constructor and Description |
---|
MaxAgeRule() |
Modifier and Type | Method and Description |
---|---|
MaxAgeRule |
clone() |
boolean |
equals(Object obj) |
Boolean |
getDeleteSourceFromS3()
Set to
true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
application version. |
Boolean |
getEnabled()
Specify
true to apply the rule, or false to disable it. |
Integer |
getMaxAgeInDays()
Specify the number of days to retain an application versions.
|
int |
hashCode() |
Boolean |
isDeleteSourceFromS3()
Set to
true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
application version. |
Boolean |
isEnabled()
Specify
true to apply the rule, or false to disable it. |
void |
setDeleteSourceFromS3(Boolean deleteSourceFromS3)
Set to
true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
application version. |
void |
setEnabled(Boolean enabled)
Specify
true to apply the rule, or false to disable it. |
void |
setMaxAgeInDays(Integer maxAgeInDays)
Specify the number of days to retain an application versions.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MaxAgeRule |
withDeleteSourceFromS3(Boolean deleteSourceFromS3)
Set to
true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
application version. |
MaxAgeRule |
withEnabled(Boolean enabled)
Specify
true to apply the rule, or false to disable it. |
MaxAgeRule |
withMaxAgeInDays(Integer maxAgeInDays)
Specify the number of days to retain an application versions.
|
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 MaxAgeRule 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 setMaxAgeInDays(Integer maxAgeInDays)
Specify the number of days to retain an application versions.
maxAgeInDays
- Specify the number of days to retain an application versions.public Integer getMaxAgeInDays()
Specify the number of days to retain an application versions.
public MaxAgeRule withMaxAgeInDays(Integer maxAgeInDays)
Specify the number of days to retain an application versions.
maxAgeInDays
- Specify the number of days to retain an application versions.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 MaxAgeRule 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 Object
Object.toString()
public MaxAgeRule clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.