@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListSharesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListSharesResult() |
Modifier and Type | Method and Description |
---|---|
ListSharesResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
Next token returned in the response of a previous ListSharesResponse call.
|
List<ShareDetails> |
getShares()
The shares available and their metadata details.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
Next token returned in the response of a previous ListSharesResponse call.
|
void |
setShares(Collection<ShareDetails> shares)
The shares available and their metadata details.
|
String |
toString()
Returns a string representation of this object.
|
ListSharesResult |
withNextToken(String nextToken)
Next token returned in the response of a previous ListSharesResponse call.
|
ListSharesResult |
withShares(Collection<ShareDetails> shares)
The shares available and their metadata details.
|
ListSharesResult |
withShares(ShareDetails... shares)
The shares available and their metadata details.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<ShareDetails> getShares()
The shares available and their metadata details.
public void setShares(Collection<ShareDetails> shares)
The shares available and their metadata details.
shares
- The shares available and their metadata details.public ListSharesResult withShares(ShareDetails... shares)
The shares available and their metadata details.
NOTE: This method appends the values to the existing list (if any). Use
setShares(java.util.Collection)
or withShares(java.util.Collection)
if you want to override the
existing values.
shares
- The shares available and their metadata details.public ListSharesResult withShares(Collection<ShareDetails> shares)
The shares available and their metadata details.
shares
- The shares available and their metadata details.public void setNextToken(String nextToken)
Next token returned in the response of a previous ListSharesResponse call. Used to get the next page of results.
nextToken
- Next token returned in the response of a previous ListSharesResponse call. Used to get the next page of
results.public String getNextToken()
Next token returned in the response of a previous ListSharesResponse call. Used to get the next page of results.
public ListSharesResult withNextToken(String nextToken)
Next token returned in the response of a previous ListSharesResponse call. Used to get the next page of results.
nextToken
- Next token returned in the response of a previous ListSharesResponse call. Used to get the next page of
results.public String toString()
toString
in class Object
Object.toString()
public ListSharesResult clone()