Class ListSamplesResult
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.ListSamplesResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ListSamplesResult extends Object implements Serializable, Cloneable
Represents the result of a list samples request.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListSamplesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListSamplesResult
clone()
boolean
equals(Object obj)
String
getNextToken()
If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.List<Sample>
getSamples()
Information about the samples.int
hashCode()
void
setNextToken(String nextToken)
If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.void
setSamples(Collection<Sample> samples)
Information about the samples.String
toString()
Returns a string representation of this object; useful for testing and debugging.ListSamplesResult
withNextToken(String nextToken)
If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.ListSamplesResult
withSamples(Sample... samples)
Information about the samples.ListSamplesResult
withSamples(Collection<Sample> samples)
Information about the samples.
-
-
-
Method Detail
-
getSamples
public List<Sample> getSamples()
Information about the samples.
- Returns:
- Information about the samples.
-
setSamples
public void setSamples(Collection<Sample> samples)
Information about the samples.
- Parameters:
samples
- Information about the samples.
-
withSamples
public ListSamplesResult withSamples(Sample... samples)
Information about the samples.
NOTE: This method appends the values to the existing list (if any). Use
setSamples(java.util.Collection)
orwithSamples(java.util.Collection)
if you want to override the existing values.- Parameters:
samples
- Information about the samples.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSamples
public ListSamplesResult withSamples(Collection<Sample> samples)
Information about the samples.
- Parameters:
samples
- Information about the samples.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.
- Parameters:
nextToken
- If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.
-
getNextToken
public String getNextToken()
If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.
- Returns:
- If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.
-
withNextToken
public ListSamplesResult withNextToken(String nextToken)
If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.
- Parameters:
nextToken
- If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListSamplesResult clone()
-
-