@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.TtlDurationUnit
public String getUnit()
TtlDuration
time unit.
TtlDuration
time unit.TtlDurationUnit
public TtlDuration withUnit(String unit)
TtlDuration
time unit.
unit
- TtlDuration
time unit.TtlDurationUnit
public TtlDuration withUnit(TtlDurationUnit unit)
TtlDuration
time unit.
unit
- TtlDuration
time unit.TtlDurationUnit
public 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 Object
Object.toString()
public TtlDuration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.