@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListProgramsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListProgramsResult() |
Modifier and Type | Method and Description |
---|---|
ListProgramsResult |
clone() |
boolean |
equals(Object obj) |
List<Program> |
getItems()
An array containing the programs for a channel.
|
String |
getNextToken()
Pagination token from the list request.
|
int |
hashCode() |
void |
setItems(Collection<Program> items)
An array containing the programs for a channel.
|
void |
setNextToken(String nextToken)
Pagination token from the list request.
|
String |
toString()
Returns a string representation of this object.
|
ListProgramsResult |
withItems(Collection<Program> items)
An array containing the programs for a channel.
|
ListProgramsResult |
withItems(Program... items)
An array containing the programs for a channel.
|
ListProgramsResult |
withNextToken(String nextToken)
Pagination token from the list request.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Program> getItems()
An array containing the programs for a channel.
public void setItems(Collection<Program> items)
An array containing the programs for a channel.
items
- An array containing the programs for a channel.public ListProgramsResult withItems(Program... items)
An array containing the programs for a channel.
NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)
or withItems(java.util.Collection)
if you want to override the
existing values.
items
- An array containing the programs for a channel.public ListProgramsResult withItems(Collection<Program> items)
An array containing the programs for a channel.
items
- An array containing the programs for a channel.public void setNextToken(String nextToken)
Pagination token from the list request. Use the token to fetch the next page of results.
nextToken
- Pagination token from the list request. Use the token to fetch the next page of results.public String getNextToken()
Pagination token from the list request. Use the token to fetch the next page of results.
public ListProgramsResult withNextToken(String nextToken)
Pagination token from the list request. Use the token to fetch the next page of results.
nextToken
- Pagination token from the list request. Use the token to fetch the next page of results.public String toString()
toString
in class Object
Object.toString()
public ListProgramsResult clone()