public String getUnit() {
        return this.unit;
    }
<p>
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.
</p>

@return 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.
@see LifecyclePolicyTimeUnit
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/LifecyclePolicyDetailExclusionRulesAmisLastLaunched.java