Class LifecyclePolicyDetailFilter
- java.lang.Object
-
- software.amazon.awssdk.services.imagebuilder.model.LifecyclePolicyDetailFilter
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LifecyclePolicyDetailFilter.Builder,LifecyclePolicyDetailFilter>
@Generated("software.amazon.awssdk:codegen") public final class LifecyclePolicyDetailFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LifecyclePolicyDetailFilter.Builder,LifecyclePolicyDetailFilter>
Defines filters that the lifecycle policy uses to determine impacted resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLifecyclePolicyDetailFilter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LifecyclePolicyDetailFilter.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerretainAtLeast()For age-based filters, this is the number of resources to keep on hand after the lifecycleDELETEaction is applied.List<SdkField<?>>sdkFields()static Class<? extends LifecyclePolicyDetailFilter.Builder>serializableBuilderClass()LifecyclePolicyDetailFilter.BuildertoBuilder()StringtoString()Returns a string representation of this object.LifecyclePolicyDetailFilterTypetype()Filter resources based on eitherageorcount.StringtypeAsString()Filter resources based on eitherageorcount.LifecyclePolicyTimeUnitunit()Defines the unit of time that the lifecycle policy uses to determine impacted resources.StringunitAsString()Defines the unit of time that the lifecycle policy uses to determine impacted resources.Integervalue()The number of units for the time period or for the count.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
public final LifecyclePolicyDetailFilterType type()
Filter resources based on either
ageorcount.If the service returns an enum value that is not available in the current SDK version,
typewill returnLifecyclePolicyDetailFilterType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Filter resources based on either
ageorcount. - See Also:
LifecyclePolicyDetailFilterType
-
typeAsString
public final String typeAsString()
Filter resources based on either
ageorcount.If the service returns an enum value that is not available in the current SDK version,
typewill returnLifecyclePolicyDetailFilterType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Filter resources based on either
ageorcount. - See Also:
LifecyclePolicyDetailFilterType
-
value
public final Integer value()
The number of units for the time period or for the count. For example, a value of
6might refer to six months or six AMIs.For count-based filters, this value represents the minimum number of resources to keep on hand. If you have fewer resources than this number, the resource is excluded from lifecycle actions.
- Returns:
- The number of units for the time period or for the count. For example, a value of
6might refer to six months or six AMIs.For count-based filters, this value represents the minimum number of resources to keep on hand. If you have fewer resources than this number, the resource is excluded from lifecycle actions.
-
unit
public final LifecyclePolicyTimeUnit unit()
Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnLifecyclePolicyTimeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.
- See Also:
LifecyclePolicyTimeUnit
-
unitAsString
public final String unitAsString()
Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnLifecyclePolicyTimeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.
- See Also:
LifecyclePolicyTimeUnit
-
retainAtLeast
public final Integer retainAtLeast()
For age-based filters, this is the number of resources to keep on hand after the lifecycle
DELETEaction is applied. Impacted resources are only deleted if you have more than this number of resources. If you have fewer resources than this number, the impacted resource is not deleted.- Returns:
- For age-based filters, this is the number of resources to keep on hand after the lifecycle
DELETEaction is applied. Impacted resources are only deleted if you have more than this number of resources. If you have fewer resources than this number, the impacted resource is not deleted.
-
toBuilder
public LifecyclePolicyDetailFilter.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LifecyclePolicyDetailFilter.Builder,LifecyclePolicyDetailFilter>
-
builder
public static LifecyclePolicyDetailFilter.Builder builder()
-
serializableBuilderClass
public static Class<? extends LifecyclePolicyDetailFilter.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-