@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecyclePolicyDetailFilter extends Object implements Serializable, Cloneable, StructuredPojo
Defines filters that the lifecycle policy uses to determine impacted resource.
Constructor and Description |
---|
LifecyclePolicyDetailFilter() |
Modifier and Type | Method and Description |
---|---|
LifecyclePolicyDetailFilter |
clone() |
boolean |
equals(Object obj) |
Integer |
getRetainAtLeast()
For age-based filters, this is the number of resources to keep on hand after the lifecycle
DELETE
action is applied. |
String |
getType()
Filter resources based on either
age or count . |
String |
getUnit()
Defines the unit of time that the lifecycle policy uses to determine impacted resources.
|
Integer |
getValue()
The number of units for the time period or for the count.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRetainAtLeast(Integer retainAtLeast)
For age-based filters, this is the number of resources to keep on hand after the lifecycle
DELETE
action is applied. |
void |
setType(String type)
Filter resources based on either
age or count . |
void |
setUnit(String unit)
Defines the unit of time that the lifecycle policy uses to determine impacted resources.
|
void |
setValue(Integer value)
The number of units for the time period or for the count.
|
String |
toString()
Returns a string representation of this object.
|
LifecyclePolicyDetailFilter |
withRetainAtLeast(Integer retainAtLeast)
For age-based filters, this is the number of resources to keep on hand after the lifecycle
DELETE
action is applied. |
LifecyclePolicyDetailFilter |
withType(LifecyclePolicyDetailFilterType type)
Filter resources based on either
age or count . |
LifecyclePolicyDetailFilter |
withType(String type)
Filter resources based on either
age or count . |
LifecyclePolicyDetailFilter |
withUnit(LifecyclePolicyTimeUnit unit)
Defines the unit of time that the lifecycle policy uses to determine impacted resources.
|
LifecyclePolicyDetailFilter |
withUnit(String unit)
Defines the unit of time that the lifecycle policy uses to determine impacted resources.
|
LifecyclePolicyDetailFilter |
withValue(Integer value)
The number of units for the time period or for the count.
|
public void setType(String type)
Filter resources based on either age
or count
.
type
- Filter resources based on either age
or count
.LifecyclePolicyDetailFilterType
public String getType()
Filter resources based on either age
or count
.
age
or count
.LifecyclePolicyDetailFilterType
public LifecyclePolicyDetailFilter withType(String type)
Filter resources based on either age
or count
.
type
- Filter resources based on either age
or count
.LifecyclePolicyDetailFilterType
public LifecyclePolicyDetailFilter withType(LifecyclePolicyDetailFilterType type)
Filter resources based on either age
or count
.
type
- Filter resources based on either age
or count
.LifecyclePolicyDetailFilterType
public void setValue(Integer value)
The number of units for the time period or for the count. For example, a value of 6
might 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.
value
- The number of units for the time period or for the count. For example, a value of 6
might
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.
public Integer getValue()
The number of units for the time period or for the count. For example, a value of 6
might 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.
6
might
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.
public LifecyclePolicyDetailFilter withValue(Integer value)
The number of units for the time period or for the count. For example, a value of 6
might 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.
value
- The number of units for the time period or for the count. For example, a value of 6
might
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.
public void setUnit(String unit)
Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.
unit
- Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required
for age-based rules.LifecyclePolicyTimeUnit
public String getUnit()
Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.
LifecyclePolicyTimeUnit
public LifecyclePolicyDetailFilter withUnit(String unit)
Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.
unit
- Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required
for age-based rules.LifecyclePolicyTimeUnit
public LifecyclePolicyDetailFilter withUnit(LifecyclePolicyTimeUnit unit)
Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.
unit
- Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required
for age-based rules.LifecyclePolicyTimeUnit
public void setRetainAtLeast(Integer retainAtLeast)
For age-based filters, this is the number of resources to keep on hand after the lifecycle DELETE
action 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.
retainAtLeast
- For age-based filters, this is the number of resources to keep on hand after the lifecycle
DELETE
action 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.public Integer getRetainAtLeast()
For age-based filters, this is the number of resources to keep on hand after the lifecycle DELETE
action 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.
DELETE
action 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.public LifecyclePolicyDetailFilter withRetainAtLeast(Integer retainAtLeast)
For age-based filters, this is the number of resources to keep on hand after the lifecycle DELETE
action 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.
retainAtLeast
- For age-based filters, this is the number of resources to keep on hand after the lifecycle
DELETE
action 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.public String toString()
toString
in class Object
Object.toString()
public LifecyclePolicyDetailFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.