Interface LifecyclePolicyDetailFilter.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LifecyclePolicyDetailFilter.Builder,LifecyclePolicyDetailFilter>,SdkBuilder<LifecyclePolicyDetailFilter.Builder,LifecyclePolicyDetailFilter>,SdkPojo
- Enclosing class:
- LifecyclePolicyDetailFilter
public static interface LifecyclePolicyDetailFilter.Builder extends SdkPojo, CopyableBuilder<LifecyclePolicyDetailFilter.Builder,LifecyclePolicyDetailFilter>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LifecyclePolicyDetailFilter.BuilderretainAtLeast(Integer retainAtLeast)For age-based filters, this is the number of resources to keep on hand after the lifecycleDELETEaction is applied.LifecyclePolicyDetailFilter.Buildertype(String type)Filter resources based on eitherageorcount.LifecyclePolicyDetailFilter.Buildertype(LifecyclePolicyDetailFilterType type)Filter resources based on eitherageorcount.LifecyclePolicyDetailFilter.Builderunit(String unit)Defines the unit of time that the lifecycle policy uses to determine impacted resources.LifecyclePolicyDetailFilter.Builderunit(LifecyclePolicyTimeUnit unit)Defines the unit of time that the lifecycle policy uses to determine impacted resources.LifecyclePolicyDetailFilter.Buildervalue(Integer value)The number of units for the time period or for the count.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
type
LifecyclePolicyDetailFilter.Builder type(String type)
Filter resources based on either
ageorcount.- Parameters:
type- Filter resources based on eitherageorcount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LifecyclePolicyDetailFilterType,LifecyclePolicyDetailFilterType
-
type
LifecyclePolicyDetailFilter.Builder type(LifecyclePolicyDetailFilterType type)
Filter resources based on either
ageorcount.- Parameters:
type- Filter resources based on eitherageorcount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LifecyclePolicyDetailFilterType,LifecyclePolicyDetailFilterType
-
value
LifecyclePolicyDetailFilter.Builder value(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.
- Parameters:
value- The number of units for the time period or for the count. For example, a value of6might 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:
- Returns a reference to this object so that method calls can be chained together.
-
unit
LifecyclePolicyDetailFilter.Builder unit(String unit)
Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.
- Parameters:
unit- Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LifecyclePolicyTimeUnit,LifecyclePolicyTimeUnit
-
unit
LifecyclePolicyDetailFilter.Builder unit(LifecyclePolicyTimeUnit unit)
Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.
- Parameters:
unit- Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LifecyclePolicyTimeUnit,LifecyclePolicyTimeUnit
-
retainAtLeast
LifecyclePolicyDetailFilter.Builder retainAtLeast(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.- Parameters:
retainAtLeast- For age-based filters, this is the number of resources to keep on hand after the lifecycleDELETEaction 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:
- Returns a reference to this object so that method calls can be chained together.
-
-