@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListDocumentVersionsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListDocumentVersionsResult() |
Modifier and Type | Method and Description |
---|---|
ListDocumentVersionsResult |
clone() |
boolean |
equals(Object obj) |
List<DocumentVersionInfo> |
getDocumentVersions()
The document versions.
|
String |
getNextToken()
The token to use when requesting the next set of items.
|
int |
hashCode() |
void |
setDocumentVersions(Collection<DocumentVersionInfo> documentVersions)
The document versions.
|
void |
setNextToken(String nextToken)
The token to use when requesting the next set of items.
|
String |
toString()
Returns a string representation of this object.
|
ListDocumentVersionsResult |
withDocumentVersions(Collection<DocumentVersionInfo> documentVersions)
The document versions.
|
ListDocumentVersionsResult |
withDocumentVersions(DocumentVersionInfo... documentVersions)
The document versions.
|
ListDocumentVersionsResult |
withNextToken(String nextToken)
The token to use when requesting the next set of items.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<DocumentVersionInfo> getDocumentVersions()
The document versions.
public void setDocumentVersions(Collection<DocumentVersionInfo> documentVersions)
The document versions.
documentVersions
- The document versions.public ListDocumentVersionsResult withDocumentVersions(DocumentVersionInfo... documentVersions)
The document versions.
NOTE: This method appends the values to the existing list (if any). Use
setDocumentVersions(java.util.Collection)
or withDocumentVersions(java.util.Collection)
if you
want to override the existing values.
documentVersions
- The document versions.public ListDocumentVersionsResult withDocumentVersions(Collection<DocumentVersionInfo> documentVersions)
The document versions.
documentVersions
- The document versions.public void setNextToken(String nextToken)
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
nextToken
- The token to use when requesting the next set of items. If there are no additional items to return, the
string is empty.public String getNextToken()
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
public ListDocumentVersionsResult withNextToken(String nextToken)
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
nextToken
- The token to use when requesting the next set of items. If there are no additional items to return, the
string is empty.public String toString()
toString
in class Object
Object.toString()
public ListDocumentVersionsResult clone()