public class DescribeWorkspacesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DescribeWorkspaces operation
.
Obtains information about the specified WorkSpaces.
Only one of the filter parameters, such as BundleId
,
DirectoryId
, or
WorkspaceIds
, can be specified at a time.
This operation supports pagination with the use of the
NextToken
request and response parameters. If more
results are available, the NextToken
response member
contains a token that you pass in the next call to this operation to
retrieve the next set of items.
NOOP
Constructor and Description |
---|
DescribeWorkspacesRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeWorkspacesRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getBundleId()
The identifier of a bundle to obtain the WorkSpaces for.
|
String |
getDirectoryId()
Specifies the directory identifier to which to limit the WorkSpaces.
|
Integer |
getLimit()
The maximum number of items to return.
|
String |
getNextToken()
The
NextToken value from a previous call to this
operation. |
String |
getUserName()
Used with the
DirectoryId parameter to specify the
directory user for which to obtain the WorkSpace. |
List<String> |
getWorkspaceIds()
An array of strings that contain the identifiers of the WorkSpaces for
which to retrieve information.
|
int |
hashCode() |
void |
setBundleId(String bundleId)
The identifier of a bundle to obtain the WorkSpaces for.
|
void |
setDirectoryId(String directoryId)
Specifies the directory identifier to which to limit the WorkSpaces.
|
void |
setLimit(Integer limit)
The maximum number of items to return.
|
void |
setNextToken(String nextToken)
The
NextToken value from a previous call to this
operation. |
void |
setUserName(String userName)
Used with the
DirectoryId parameter to specify the
directory user for which to obtain the WorkSpace. |
void |
setWorkspaceIds(Collection<String> workspaceIds)
An array of strings that contain the identifiers of the WorkSpaces for
which to retrieve information.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeWorkspacesRequest |
withBundleId(String bundleId)
The identifier of a bundle to obtain the WorkSpaces for.
|
DescribeWorkspacesRequest |
withDirectoryId(String directoryId)
Specifies the directory identifier to which to limit the WorkSpaces.
|
DescribeWorkspacesRequest |
withLimit(Integer limit)
The maximum number of items to return.
|
DescribeWorkspacesRequest |
withNextToken(String nextToken)
The
NextToken value from a previous call to this
operation. |
DescribeWorkspacesRequest |
withUserName(String userName)
Used with the
DirectoryId parameter to specify the
directory user for which to obtain the WorkSpace. |
DescribeWorkspacesRequest |
withWorkspaceIds(Collection<String> workspaceIds)
An array of strings that contain the identifiers of the WorkSpaces for
which to retrieve information.
|
DescribeWorkspacesRequest |
withWorkspaceIds(String... workspaceIds)
An array of strings that contain the identifiers of the WorkSpaces for
which to retrieve information.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public List<String> getWorkspaceIds()
Because the CreateWorkspaces operation is asynchronous, the identifier returned by CreateWorkspaces is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information will be returned.
Constraints:
Length: 1 - 25
Because the CreateWorkspaces operation is asynchronous, the identifier returned by CreateWorkspaces is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information will be returned.
public void setWorkspaceIds(Collection<String> workspaceIds)
Because the CreateWorkspaces operation is asynchronous, the identifier returned by CreateWorkspaces is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information will be returned.
Constraints:
Length: 1 - 25
workspaceIds
- An array of strings that contain the identifiers of the WorkSpaces for
which to retrieve information. This parameter cannot be combined with
any other filter parameter. Because the CreateWorkspaces operation is asynchronous, the identifier returned by CreateWorkspaces is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information will be returned.
public DescribeWorkspacesRequest withWorkspaceIds(String... workspaceIds)
Because the CreateWorkspaces operation is asynchronous, the identifier returned by CreateWorkspaces is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information will be returned.
NOTE: This method appends the values to the existing list (if
any). Use setWorkspaceIds(java.util.Collection)
or withWorkspaceIds(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.
Constraints:
Length: 1 - 25
workspaceIds
- An array of strings that contain the identifiers of the WorkSpaces for
which to retrieve information. This parameter cannot be combined with
any other filter parameter. Because the CreateWorkspaces operation is asynchronous, the identifier returned by CreateWorkspaces is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information will be returned.
public DescribeWorkspacesRequest withWorkspaceIds(Collection<String> workspaceIds)
Because the CreateWorkspaces operation is asynchronous, the identifier returned by CreateWorkspaces is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information will be returned.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 25
workspaceIds
- An array of strings that contain the identifiers of the WorkSpaces for
which to retrieve information. This parameter cannot be combined with
any other filter parameter. Because the CreateWorkspaces operation is asynchronous, the identifier returned by CreateWorkspaces is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information will be returned.
public String getDirectoryId()
UserName
parameter. This parameter cannot be combined
with any other filter parameter.
Constraints:
Pattern: ^d-[0-9a-f]{8,63}$
UserName
parameter. This parameter cannot be combined
with any other filter parameter.public void setDirectoryId(String directoryId)
UserName
parameter. This parameter cannot be combined
with any other filter parameter.
Constraints:
Pattern: ^d-[0-9a-f]{8,63}$
directoryId
- Specifies the directory identifier to which to limit the WorkSpaces.
Optionally, you can specify a specific directory user with the
UserName
parameter. This parameter cannot be combined
with any other filter parameter.public DescribeWorkspacesRequest withDirectoryId(String directoryId)
UserName
parameter. This parameter cannot be combined
with any other filter parameter.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^d-[0-9a-f]{8,63}$
directoryId
- Specifies the directory identifier to which to limit the WorkSpaces.
Optionally, you can specify a specific directory user with the
UserName
parameter. This parameter cannot be combined
with any other filter parameter.public String getUserName()
DirectoryId
parameter to specify the
directory user for which to obtain the WorkSpace.
Constraints:
Length: 1 - 63
DirectoryId
parameter to specify the
directory user for which to obtain the WorkSpace.public void setUserName(String userName)
DirectoryId
parameter to specify the
directory user for which to obtain the WorkSpace.
Constraints:
Length: 1 - 63
userName
- Used with the DirectoryId
parameter to specify the
directory user for which to obtain the WorkSpace.public DescribeWorkspacesRequest withUserName(String userName)
DirectoryId
parameter to specify the
directory user for which to obtain the WorkSpace.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 63
userName
- Used with the DirectoryId
parameter to specify the
directory user for which to obtain the WorkSpace.public String getBundleId()
Constraints:
Pattern: ^wsb-[0-9a-z]{8,63}$
public void setBundleId(String bundleId)
Constraints:
Pattern: ^wsb-[0-9a-z]{8,63}$
bundleId
- The identifier of a bundle to obtain the WorkSpaces for. All
WorkSpaces that are created from this bundle will be retrieved. This
parameter cannot be combined with any other filter parameter.public DescribeWorkspacesRequest withBundleId(String bundleId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^wsb-[0-9a-z]{8,63}$
bundleId
- The identifier of a bundle to obtain the WorkSpaces for. All
WorkSpaces that are created from this bundle will be retrieved. This
parameter cannot be combined with any other filter parameter.public Integer getLimit()
Constraints:
Range: 1 - 25
public void setLimit(Integer limit)
Constraints:
Range: 1 - 25
limit
- The maximum number of items to return.public DescribeWorkspacesRequest withLimit(Integer limit)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 25
limit
- The maximum number of items to return.public String getNextToken()
NextToken
value from a previous call to this
operation. Pass null if this is the first call.
Constraints:
Length: 1 - 63
NextToken
value from a previous call to this
operation. Pass null if this is the first call.public void setNextToken(String nextToken)
NextToken
value from a previous call to this
operation. Pass null if this is the first call.
Constraints:
Length: 1 - 63
nextToken
- The NextToken
value from a previous call to this
operation. Pass null if this is the first call.public DescribeWorkspacesRequest withNextToken(String nextToken)
NextToken
value from a previous call to this
operation. Pass null if this is the first call.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 63
nextToken
- The NextToken
value from a previous call to this
operation. Pass null if this is the first call.public String toString()
toString
in class Object
Object.toString()
public DescribeWorkspacesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.