@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TtlDuration extends Object implements Serializable, Cloneable, StructuredPojo
Time to live duration, where the record is hard deleted after the expiration time is reached; ExpiresAt
= EventTime + TtlDuration. For information on HardDelete, see the DeleteRecord
API in the Amazon SageMaker API Reference guide.
| Constructor and Description |
|---|
TtlDuration() |
| Modifier and Type | Method and Description |
|---|---|
TtlDuration |
clone() |
boolean |
equals(Object obj) |
String |
getUnit()
TtlDuration time unit. |
Integer |
getValue()
TtlDuration time value. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setUnit(String unit)
TtlDuration time unit. |
void |
setValue(Integer value)
TtlDuration time value. |
String |
toString()
Returns a string representation of this object.
|
TtlDuration |
withUnit(String unit)
TtlDuration time unit. |
TtlDuration |
withUnit(TtlDurationUnit unit)
TtlDuration time unit. |
TtlDuration |
withValue(Integer value)
TtlDuration time value. |
public void setUnit(String unit)
TtlDuration time unit.
unit - TtlDuration time unit.TtlDurationUnitpublic String getUnit()
TtlDuration time unit.
TtlDuration time unit.TtlDurationUnitpublic TtlDuration withUnit(String unit)
TtlDuration time unit.
unit - TtlDuration time unit.TtlDurationUnitpublic TtlDuration withUnit(TtlDurationUnit unit)
TtlDuration time unit.
unit - TtlDuration time unit.TtlDurationUnitpublic void setValue(Integer value)
TtlDuration time value.
value - TtlDuration time value.public Integer getValue()
TtlDuration time value.
TtlDuration time value.public TtlDuration withValue(Integer value)
TtlDuration time value.
value - TtlDuration time value.public String toString()
toString in class ObjectObject.toString()public TtlDuration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.