Class LifecyclePolicyDetailExclusionRulesAmisLastLaunched
- java.lang.Object
-
- software.amazon.awssdk.services.imagebuilder.model.LifecyclePolicyDetailExclusionRulesAmisLastLaunched
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builder,LifecyclePolicyDetailExclusionRulesAmisLastLaunched>
@Generated("software.amazon.awssdk:codegen") public final class LifecyclePolicyDetailExclusionRulesAmisLastLaunched extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builder,LifecyclePolicyDetailExclusionRulesAmisLastLaunched>
Defines criteria to exclude AMIs from lifecycle actions based on the last time they were used to launch an instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends LifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builder>serializableBuilderClass()LifecyclePolicyDetailExclusionRulesAmisLastLaunched.BuildertoBuilder()StringtoString()Returns a string representation of this object.LifecyclePolicyTimeUnitunit()Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI.StringunitAsString()Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI.Integervalue()The integer number of units for the time period.-
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
-
value
public final Integer value()
The integer number of units for the time period. For example
6(months).- Returns:
- The integer number of units for the time period. For example
6(months).
-
unit
public final 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.
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 calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years.
- See Also:
LifecyclePolicyTimeUnit
-
unitAsString
public final String unitAsString()
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.
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 calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years.
- See Also:
LifecyclePolicyTimeUnit
-
toBuilder
public LifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builder toBuilder()
-
builder
public static LifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builder builder()
-
serializableBuilderClass
public static Class<? extends LifecyclePolicyDetailExclusionRulesAmisLastLaunched.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.
-
-