Class DescribeScheduledInstancesResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeScheduledInstancesResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeScheduledInstancesResult extends Object implements Serializable, Cloneable
Contains the output of DescribeScheduledInstances.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeScheduledInstancesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeScheduledInstancesResult
clone()
boolean
equals(Object obj)
String
getNextToken()
The token required to retrieve the next set of results.List<ScheduledInstance>
getScheduledInstanceSet()
Information about the Scheduled Instances.int
hashCode()
void
setNextToken(String nextToken)
The token required to retrieve the next set of results.void
setScheduledInstanceSet(Collection<ScheduledInstance> scheduledInstanceSet)
Information about the Scheduled Instances.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeScheduledInstancesResult
withNextToken(String nextToken)
The token required to retrieve the next set of results.DescribeScheduledInstancesResult
withScheduledInstanceSet(ScheduledInstance... scheduledInstanceSet)
Information about the Scheduled Instances.DescribeScheduledInstancesResult
withScheduledInstanceSet(Collection<ScheduledInstance> scheduledInstanceSet)
Information about the Scheduled Instances.
-
-
-
Method Detail
-
setNextToken
public void setNextToken(String nextToken)
The token required to retrieve the next set of results. This value is
null
when there are no more results to return.- Parameters:
nextToken
- The token required to retrieve the next set of results. This value isnull
when there are no more results to return.
-
getNextToken
public String getNextToken()
The token required to retrieve the next set of results. This value is
null
when there are no more results to return.- Returns:
- The token required to retrieve the next set of results. This
value is
null
when there are no more results to return.
-
withNextToken
public DescribeScheduledInstancesResult withNextToken(String nextToken)
The token required to retrieve the next set of results. This value is
null
when there are no more results to return.- Parameters:
nextToken
- The token required to retrieve the next set of results. This value isnull
when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getScheduledInstanceSet
public List<ScheduledInstance> getScheduledInstanceSet()
Information about the Scheduled Instances.
- Returns:
- Information about the Scheduled Instances.
-
setScheduledInstanceSet
public void setScheduledInstanceSet(Collection<ScheduledInstance> scheduledInstanceSet)
Information about the Scheduled Instances.
- Parameters:
scheduledInstanceSet
- Information about the Scheduled Instances.
-
withScheduledInstanceSet
public DescribeScheduledInstancesResult withScheduledInstanceSet(ScheduledInstance... scheduledInstanceSet)
Information about the Scheduled Instances.
NOTE: This method appends the values to the existing list (if any). Use
setScheduledInstanceSet(java.util.Collection)
orwithScheduledInstanceSet(java.util.Collection)
if you want to override the existing values.- Parameters:
scheduledInstanceSet
- Information about the Scheduled Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withScheduledInstanceSet
public DescribeScheduledInstancesResult withScheduledInstanceSet(Collection<ScheduledInstance> scheduledInstanceSet)
Information about the Scheduled Instances.
- Parameters:
scheduledInstanceSet
- Information about the Scheduled Instances.- 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 DescribeScheduledInstancesResult clone()
-
-