public class DescribeWorkspacesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the results for the DescribeWorkspaces operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
nextToken
If not null, more results are available.
|
private SdkInternalList<Workspace> |
workspaces
An array of structures that contain the information about the WorkSpaces.
|
Constructor and Description |
---|
DescribeWorkspacesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeWorkspacesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNextToken()
If not null, more results are available.
|
java.util.List<Workspace> |
getWorkspaces()
An array of structures that contain the information about the WorkSpaces.
|
int |
hashCode() |
void |
setNextToken(java.lang.String nextToken)
If not null, more results are available.
|
void |
setWorkspaces(java.util.Collection<Workspace> workspaces)
An array of structures that contain the information about the WorkSpaces.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeWorkspacesResult |
withNextToken(java.lang.String nextToken)
If not null, more results are available.
|
DescribeWorkspacesResult |
withWorkspaces(java.util.Collection<Workspace> workspaces)
An array of structures that contain the information about the WorkSpaces.
|
DescribeWorkspacesResult |
withWorkspaces(Workspace... workspaces)
An array of structures that contain the information about the WorkSpaces.
|
private SdkInternalList<Workspace> workspaces
An array of structures that contain the information about the WorkSpaces.
Because the CreateWorkspaces operation is asynchronous, some of this information may be incomplete for a newly-created WorkSpace.
private java.lang.String nextToken
If not null, more results are available. Pass this value for the
NextToken
parameter in a subsequent call to this operation
to retrieve the next set of items. This token is valid for one day and
must be used within that timeframe.
public java.util.List<Workspace> getWorkspaces()
An array of structures that contain the information about the WorkSpaces.
Because the CreateWorkspaces operation is asynchronous, some of this information may be incomplete for a newly-created WorkSpace.
Because the CreateWorkspaces operation is asynchronous, some of this information may be incomplete for a newly-created WorkSpace.
public void setWorkspaces(java.util.Collection<Workspace> workspaces)
An array of structures that contain the information about the WorkSpaces.
Because the CreateWorkspaces operation is asynchronous, some of this information may be incomplete for a newly-created WorkSpace.
workspaces
- An array of structures that contain the information about the
WorkSpaces.
Because the CreateWorkspaces operation is asynchronous, some of this information may be incomplete for a newly-created WorkSpace.
public DescribeWorkspacesResult withWorkspaces(Workspace... workspaces)
An array of structures that contain the information about the WorkSpaces.
Because the CreateWorkspaces operation is asynchronous, some of this information may be incomplete for a newly-created WorkSpace.
NOTE: This method appends the values to the existing list (if
any). Use setWorkspaces(java.util.Collection)
or
withWorkspaces(java.util.Collection)
if you want to override the
existing values.
workspaces
- An array of structures that contain the information about the
WorkSpaces.
Because the CreateWorkspaces operation is asynchronous, some of this information may be incomplete for a newly-created WorkSpace.
public DescribeWorkspacesResult withWorkspaces(java.util.Collection<Workspace> workspaces)
An array of structures that contain the information about the WorkSpaces.
Because the CreateWorkspaces operation is asynchronous, some of this information may be incomplete for a newly-created WorkSpace.
workspaces
- An array of structures that contain the information about the
WorkSpaces.
Because the CreateWorkspaces operation is asynchronous, some of this information may be incomplete for a newly-created WorkSpace.
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 this operation
to retrieve the next set of items. This token is valid for one day and
must be used within that timeframe.
nextToken
- If not null, more results are available. Pass this value for the
NextToken
parameter in a subsequent call to this
operation to retrieve the next set of items. This token is valid
for one day and must be used within that timeframe.public java.lang.String getNextToken()
If not null, more results are available. Pass this value for the
NextToken
parameter in a subsequent call to this operation
to retrieve the next set of items. This token is valid for one day and
must be used within that timeframe.
NextToken
parameter in a subsequent call to this
operation to retrieve the next set of items. This token is valid
for one day and must be used within that timeframe.public DescribeWorkspacesResult withNextToken(java.lang.String nextToken)
If not null, more results are available. Pass this value for the
NextToken
parameter in a subsequent call to this operation
to retrieve the next set of items. This token is valid for one day and
must be used within that timeframe.
nextToken
- If not null, more results are available. Pass this value for the
NextToken
parameter in a subsequent call to this
operation to retrieve the next set of items. This token is valid
for one day and must be used within that timeframe.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 DescribeWorkspacesResult clone()
clone
in class java.lang.Object