@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecyclePolicyDetailExclusionRulesAmisLastLaunched extends Object implements Serializable, Cloneable, StructuredPojo
Defines criteria to exclude AMIs from lifecycle actions based on the last time they were used to launch an instance.
Constructor and Description |
---|
LifecyclePolicyDetailExclusionRulesAmisLastLaunched() |
Modifier and Type | Method and Description |
---|---|
LifecyclePolicyDetailExclusionRulesAmisLastLaunched |
clone() |
boolean |
equals(Object obj) |
String |
getUnit()
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance
launched from the AMI.
|
Integer |
getValue()
The integer number of units for the time period.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setUnit(String unit)
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance
launched from the AMI.
|
void |
setValue(Integer value)
The integer number of units for the time period.
|
String |
toString()
Returns a string representation of this object.
|
LifecyclePolicyDetailExclusionRulesAmisLastLaunched |
withUnit(LifecyclePolicyTimeUnit unit)
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance
launched from the AMI.
|
LifecyclePolicyDetailExclusionRulesAmisLastLaunched |
withUnit(String unit)
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance
launched from the AMI.
|
LifecyclePolicyDetailExclusionRulesAmisLastLaunched |
withValue(Integer value)
The integer number of units for the time period.
|
public LifecyclePolicyDetailExclusionRulesAmisLastLaunched()
public void setValue(Integer value)
The integer number of units for the time period. For example 6
(months).
value
- The integer number of units for the time period. For example 6
(months).public Integer getValue()
The integer number of units for the time period. For example 6
(months).
6
(months).public LifecyclePolicyDetailExclusionRulesAmisLastLaunched withValue(Integer value)
The integer number of units for the time period. For example 6
(months).
value
- The integer number of units for the time period. For example 6
(months).public void setUnit(String unit)
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years.
unit
- Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance
launched from the AMI. For example: days, weeks, months, or years.LifecyclePolicyTimeUnit
public String getUnit()
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years.
LifecyclePolicyTimeUnit
public LifecyclePolicyDetailExclusionRulesAmisLastLaunched withUnit(String unit)
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years.
unit
- Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance
launched from the AMI. For example: days, weeks, months, or years.LifecyclePolicyTimeUnit
public LifecyclePolicyDetailExclusionRulesAmisLastLaunched withUnit(LifecyclePolicyTimeUnit unit)
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years.
unit
- Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance
launched from the AMI. For example: days, weeks, months, or years.LifecyclePolicyTimeUnit
public String toString()
toString
in class Object
Object.toString()
public LifecyclePolicyDetailExclusionRulesAmisLastLaunched clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.