@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Expiry extends Object implements Serializable, Cloneable, StructuredPojo
An object to specify the expiration of a routing step.
Constructor and Description |
---|
Expiry() |
Modifier and Type | Method and Description |
---|---|
Expiry |
clone() |
boolean |
equals(Object obj) |
Integer |
getDurationInSeconds()
The number of seconds to wait before expiring the routing step.
|
Date |
getExpiryTimestamp()
The timestamp indicating when the routing step expires.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDurationInSeconds(Integer durationInSeconds)
The number of seconds to wait before expiring the routing step.
|
void |
setExpiryTimestamp(Date expiryTimestamp)
The timestamp indicating when the routing step expires.
|
String |
toString()
Returns a string representation of this object.
|
Expiry |
withDurationInSeconds(Integer durationInSeconds)
The number of seconds to wait before expiring the routing step.
|
Expiry |
withExpiryTimestamp(Date expiryTimestamp)
The timestamp indicating when the routing step expires.
|
public void setDurationInSeconds(Integer durationInSeconds)
The number of seconds to wait before expiring the routing step.
durationInSeconds
- The number of seconds to wait before expiring the routing step.public Integer getDurationInSeconds()
The number of seconds to wait before expiring the routing step.
public Expiry withDurationInSeconds(Integer durationInSeconds)
The number of seconds to wait before expiring the routing step.
durationInSeconds
- The number of seconds to wait before expiring the routing step.public void setExpiryTimestamp(Date expiryTimestamp)
The timestamp indicating when the routing step expires.
expiryTimestamp
- The timestamp indicating when the routing step expires.public Date getExpiryTimestamp()
The timestamp indicating when the routing step expires.
public Expiry withExpiryTimestamp(Date expiryTimestamp)
The timestamp indicating when the routing step expires.
expiryTimestamp
- The timestamp indicating when the routing step expires.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.