@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListSubjectsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListSubjectsResult() |
Modifier and Type | Method and Description |
---|---|
ListSubjectsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
A token that indicates where the output should continue from, if a previous request did not show all results.
|
List<SubjectSummary> |
getSubjects()
A list of subjects.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
A token that indicates where the output should continue from, if a previous request did not show all results.
|
void |
setSubjects(Collection<SubjectSummary> subjects)
A list of subjects.
|
String |
toString()
Returns a string representation of this object.
|
ListSubjectsResult |
withNextToken(String nextToken)
A token that indicates where the output should continue from, if a previous request did not show all results.
|
ListSubjectsResult |
withSubjects(Collection<SubjectSummary> subjects)
A list of subjects.
|
ListSubjectsResult |
withSubjects(SubjectSummary... subjects)
A list of subjects.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
A token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
nextToken
- A token that indicates where the output should continue from, if a previous request did not show all
results. To get the next results, make the request again with this value.public String getNextToken()
A token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
public ListSubjectsResult withNextToken(String nextToken)
A token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
nextToken
- A token that indicates where the output should continue from, if a previous request did not show all
results. To get the next results, make the request again with this value.public List<SubjectSummary> getSubjects()
A list of subjects.
public void setSubjects(Collection<SubjectSummary> subjects)
A list of subjects.
subjects
- A list of subjects.public ListSubjectsResult withSubjects(SubjectSummary... subjects)
A list of subjects.
NOTE: This method appends the values to the existing list (if any). Use
setSubjects(java.util.Collection)
or withSubjects(java.util.Collection)
if you want to override
the existing values.
subjects
- A list of subjects.public ListSubjectsResult withSubjects(Collection<SubjectSummary> subjects)
A list of subjects.
subjects
- A list of subjects.public String toString()
toString
in class Object
Object.toString()
public ListSubjectsResult clone()