public class DescribeDirectoriesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the results of the DescribeDirectories operation.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<DirectoryDescription> |
directoryDescriptions
The list of DirectoryDescription objects that were retrieved.
|
private java.lang.String |
nextToken
If not null, more results are available.
|
Constructor and Description |
---|
DescribeDirectoriesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeDirectoriesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<DirectoryDescription> |
getDirectoryDescriptions()
The list of DirectoryDescription objects that were retrieved.
|
java.lang.String |
getNextToken()
If not null, more results are available.
|
int |
hashCode() |
void |
setDirectoryDescriptions(java.util.Collection<DirectoryDescription> directoryDescriptions)
The list of DirectoryDescription objects that were retrieved.
|
void |
setNextToken(java.lang.String nextToken)
If not null, more results are available.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeDirectoriesResult |
withDirectoryDescriptions(java.util.Collection<DirectoryDescription> directoryDescriptions)
The list of DirectoryDescription objects that were retrieved.
|
DescribeDirectoriesResult |
withDirectoryDescriptions(DirectoryDescription... directoryDescriptions)
The list of DirectoryDescription objects that were retrieved.
|
DescribeDirectoriesResult |
withNextToken(java.lang.String nextToken)
If not null, more results are available.
|
private SdkInternalList<DirectoryDescription> directoryDescriptions
The list of DirectoryDescription objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
private java.lang.String nextToken
If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDirectories to retrieve the next set of items.
public java.util.List<DirectoryDescription> getDirectoryDescriptions()
The list of DirectoryDescription objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
public void setDirectoryDescriptions(java.util.Collection<DirectoryDescription> directoryDescriptions)
The list of DirectoryDescription objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
directoryDescriptions
- The list of DirectoryDescription objects that were
retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
public DescribeDirectoriesResult withDirectoryDescriptions(DirectoryDescription... directoryDescriptions)
The list of DirectoryDescription objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
NOTE: This method appends the values to the existing list (if
any). Use setDirectoryDescriptions(java.util.Collection)
or
withDirectoryDescriptions(java.util.Collection)
if you want to
override the existing values.
directoryDescriptions
- The list of DirectoryDescription objects that were
retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
public DescribeDirectoriesResult withDirectoryDescriptions(java.util.Collection<DirectoryDescription> directoryDescriptions)
The list of DirectoryDescription objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
directoryDescriptions
- The list of DirectoryDescription objects that were
retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
public void setNextToken(java.lang.String nextToken)
If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDirectories to retrieve the next set of items.
nextToken
- If not null, more results are available. Pass this value for the
NextToken parameter in a subsequent call to
DescribeDirectories to retrieve the next set of items.public java.lang.String getNextToken()
If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDirectories to retrieve the next set of items.
public DescribeDirectoriesResult withNextToken(java.lang.String nextToken)
If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDirectories to retrieve the next set of items.
nextToken
- If not null, more results are available. Pass this value for the
NextToken parameter in a subsequent call to
DescribeDirectories to retrieve the next set of items.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeDirectoriesResult clone()
clone
in class java.lang.Object