public class StartPosition
extends java.lang.Object
implements java.io.Serializable
A filtering option for where to start. For example, if you sent 100 messages, start with message 50.
Constructor and Description |
---|
StartPosition() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAbsoluteTime()
The time in ISO format where to start.
|
java.lang.String |
getId()
The ID of the message or event where to start.
|
java.lang.Integer |
getMostRecent()
The start position of the most recent message where you want to start.
|
int |
hashCode() |
void |
setAbsoluteTime(java.lang.String absoluteTime)
The time in ISO format where to start.
|
void |
setId(java.lang.String id)
The ID of the message or event where to start.
|
void |
setMostRecent(java.lang.Integer mostRecent)
The start position of the most recent message where you want to start.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartPosition |
withAbsoluteTime(java.lang.String absoluteTime)
The time in ISO format where to start.
|
StartPosition |
withId(java.lang.String id)
The ID of the message or event where to start.
|
StartPosition |
withMostRecent(java.lang.Integer mostRecent)
The start position of the most recent message where you want to start.
|
public java.lang.String getId()
The ID of the message or event where to start.
Constraints:
Length: 1 - 256
The ID of the message or event where to start.
public void setId(java.lang.String id)
The ID of the message or event where to start.
Constraints:
Length: 1 - 256
id
- The ID of the message or event where to start.
public StartPosition withId(java.lang.String id)
The ID of the message or event where to start.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
id
- The ID of the message or event where to start.
public java.lang.String getAbsoluteTime()
The time in ISO format where to start.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
Constraints:
Length: 1 - 100
The time in ISO format where to start.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public void setAbsoluteTime(java.lang.String absoluteTime)
The time in ISO format where to start.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
Constraints:
Length: 1 - 100
absoluteTime
- The time in ISO format where to start.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public StartPosition withAbsoluteTime(java.lang.String absoluteTime)
The time in ISO format where to start.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
absoluteTime
- The time in ISO format where to start.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public java.lang.Integer getMostRecent()
The start position of the most recent message where you want to start.
Constraints:
Range: 0 - 100
The start position of the most recent message where you want to start.
public void setMostRecent(java.lang.Integer mostRecent)
The start position of the most recent message where you want to start.
Constraints:
Range: 0 - 100
mostRecent
- The start position of the most recent message where you want to start.
public StartPosition withMostRecent(java.lang.Integer mostRecent)
The start position of the most recent message where you want to start.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 - 100
mostRecent
- The start position of the most recent message where you want to start.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.