@Generated(value="software.amazon.awssdk:codegen") public final class MaxCountRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MaxCountRule.Builder,MaxCountRule>
A lifecycle rule that deletes the oldest application version when the maximum count is exceeded.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MaxCountRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MaxCountRule.Builder |
builder() |
Boolean |
deleteSourceFromS3()
Set to
true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the
application version. |
Boolean |
enabled()
Specify
true to apply the rule, or false to disable it. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
maxCount()
Specify the maximum number of application versions to retain.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MaxCountRule.Builder> |
serializableBuilderClass() |
MaxCountRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean enabled()
Specify true to apply the rule, or false to disable it.
true to apply the rule, or false to disable it.public final Integer maxCount()
Specify the maximum number of application versions to retain.
public final Boolean deleteSourceFromS3()
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MaxCountRule.Builder,MaxCountRule>public static MaxCountRule.Builder builder()
public static Class<? extends MaxCountRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.