public class DescribeDirectoriesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DescribeDirectories operation.
Obtains information about the directories that belong to this account.
You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.
This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.
You can also specify a maximum number of return results with the Limit parameter.
NOOP| Constructor and Description |
|---|
DescribeDirectoriesRequest() |
| Modifier and Type | Method and Description |
|---|---|
DescribeDirectoriesRequest |
clone() |
boolean |
equals(Object obj) |
List<String> |
getDirectoryIds()
A list of identifiers of the directories to obtain the information
for.
|
Integer |
getLimit()
The maximum number of items to return.
|
String |
getNextToken()
The DescribeDirectoriesResult.NextToken value from a previous
call to DescribeDirectories.
|
int |
hashCode() |
void |
setDirectoryIds(Collection<String> directoryIds)
A list of identifiers of the directories to obtain the information
for.
|
void |
setLimit(Integer limit)
The maximum number of items to return.
|
void |
setNextToken(String nextToken)
The DescribeDirectoriesResult.NextToken value from a previous
call to DescribeDirectories.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeDirectoriesRequest |
withDirectoryIds(Collection<String> directoryIds)
A list of identifiers of the directories to obtain the information
for.
|
DescribeDirectoriesRequest |
withDirectoryIds(String... directoryIds)
A list of identifiers of the directories to obtain the information
for.
|
DescribeDirectoriesRequest |
withLimit(Integer limit)
The maximum number of items to return.
|
DescribeDirectoriesRequest |
withNextToken(String nextToken)
The DescribeDirectoriesResult.NextToken value from a previous
call to DescribeDirectories.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic List<String> getDirectoryIds()
An empty list results in an
InvalidParameterException being thrown.
An empty list results in an
InvalidParameterException being thrown.
public void setDirectoryIds(Collection<String> directoryIds)
An empty list results in an
InvalidParameterException being thrown.
directoryIds - A list of identifiers of the directories to obtain the information
for. If this member is null, all directories that belong to the
current account are returned. An empty list results in an
InvalidParameterException being thrown.
public DescribeDirectoriesRequest withDirectoryIds(String... directoryIds)
An empty list results in an
InvalidParameterException being thrown.
NOTE: This method appends the values to the existing list (if
any). Use setDirectoryIds(java.util.Collection) or withDirectoryIds(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
directoryIds - A list of identifiers of the directories to obtain the information
for. If this member is null, all directories that belong to the
current account are returned. An empty list results in an
InvalidParameterException being thrown.
public DescribeDirectoriesRequest withDirectoryIds(Collection<String> directoryIds)
An empty list results in an
InvalidParameterException being thrown.
Returns a reference to this object so that method calls can be chained together.
directoryIds - A list of identifiers of the directories to obtain the information
for. If this member is null, all directories that belong to the
current account are returned. An empty list results in an
InvalidParameterException being thrown.
public String getNextToken()
public void setNextToken(String nextToken)
nextToken - The DescribeDirectoriesResult.NextToken value from a previous
call to DescribeDirectories. Pass null if this is the first
call.public DescribeDirectoriesRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken - The DescribeDirectoriesResult.NextToken value from a previous
call to DescribeDirectories. Pass null if this is the first
call.public Integer getLimit()
Constraints:
Range: 0 -
public void setLimit(Integer limit)
Constraints:
Range: 0 -
limit - The maximum number of items to return. If this value is zero, the
maximum number of items is specified by the limitations of the
operation.public DescribeDirectoriesRequest withLimit(Integer limit)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
limit - The maximum number of items to return. If this value is zero, the
maximum number of items is specified by the limitations of the
operation.public String toString()
toString in class ObjectObject.toString()public DescribeDirectoriesRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.