public class Reservation extends Object implements Serializable
An Amazon EC2 reservation of requested EC2 instances.
Constructor and Description |
---|
Reservation() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<String> |
getGroupNames()
The list of security groups requested for the instances in this
reservation.
|
List<GroupIdentifier> |
getGroups()
The list of security groups requested for the instances in this
reservation.
|
List<Instance> |
getInstances()
The list of Amazon EC2 instances included in this reservation.
|
String |
getOwnerId()
The AWS Access Key ID of the user who owns the reservation.
|
String |
getRequesterId()
The unique ID of the user who requested the instances in this
reservation.
|
String |
getReservationId()
The unique ID of this reservation.
|
int |
hashCode() |
void |
setGroupNames(Collection<String> groupNames)
The list of security groups requested for the instances in this
reservation.
|
void |
setGroups(Collection<GroupIdentifier> groups)
The list of security groups requested for the instances in this
reservation.
|
void |
setInstances(Collection<Instance> instances)
The list of Amazon EC2 instances included in this reservation.
|
void |
setOwnerId(String ownerId)
The AWS Access Key ID of the user who owns the reservation.
|
void |
setRequesterId(String requesterId)
The unique ID of the user who requested the instances in this
reservation.
|
void |
setReservationId(String reservationId)
The unique ID of this reservation.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Reservation |
withGroupNames(Collection<String> groupNames)
The list of security groups requested for the instances in this
reservation.
|
Reservation |
withGroupNames(String... groupNames)
The list of security groups requested for the instances in this
reservation.
|
Reservation |
withGroups(Collection<GroupIdentifier> groups)
The list of security groups requested for the instances in this
reservation.
|
Reservation |
withGroups(GroupIdentifier... groups)
The list of security groups requested for the instances in this
reservation.
|
Reservation |
withInstances(Collection<Instance> instances)
The list of Amazon EC2 instances included in this reservation.
|
Reservation |
withInstances(Instance... instances)
The list of Amazon EC2 instances included in this reservation.
|
Reservation |
withOwnerId(String ownerId)
The AWS Access Key ID of the user who owns the reservation.
|
Reservation |
withRequesterId(String requesterId)
The unique ID of the user who requested the instances in this
reservation.
|
Reservation |
withReservationId(String reservationId)
The unique ID of this reservation.
|
public String getReservationId()
public void setReservationId(String reservationId)
reservationId
- The unique ID of this reservation.public Reservation withReservationId(String reservationId)
Returns a reference to this object so that method calls can be chained together.
reservationId
- The unique ID of this reservation.public String getOwnerId()
public void setOwnerId(String ownerId)
ownerId
- The AWS Access Key ID of the user who owns the reservation.public Reservation withOwnerId(String ownerId)
Returns a reference to this object so that method calls can be chained together.
ownerId
- The AWS Access Key ID of the user who owns the reservation.public String getRequesterId()
public void setRequesterId(String requesterId)
requesterId
- The unique ID of the user who requested the instances in this
reservation.public Reservation withRequesterId(String requesterId)
Returns a reference to this object so that method calls can be chained together.
requesterId
- The unique ID of the user who requested the instances in this
reservation.public List<GroupIdentifier> getGroups()
public void setGroups(Collection<GroupIdentifier> groups)
groups
- The list of security groups requested for the instances in this
reservation.public Reservation withGroups(GroupIdentifier... groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The list of security groups requested for the instances in this
reservation.public Reservation withGroups(Collection<GroupIdentifier> groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The list of security groups requested for the instances in this
reservation.public List<String> getGroupNames()
public void setGroupNames(Collection<String> groupNames)
groupNames
- The list of security groups requested for the instances in this
reservation.public Reservation withGroupNames(String... groupNames)
Returns a reference to this object so that method calls can be chained together.
groupNames
- The list of security groups requested for the instances in this
reservation.public Reservation withGroupNames(Collection<String> groupNames)
Returns a reference to this object so that method calls can be chained together.
groupNames
- The list of security groups requested for the instances in this
reservation.public List<Instance> getInstances()
public void setInstances(Collection<Instance> instances)
instances
- The list of Amazon EC2 instances included in this reservation.public Reservation withInstances(Instance... instances)
Returns a reference to this object so that method calls can be chained together.
instances
- The list of Amazon EC2 instances included in this reservation.public Reservation withInstances(Collection<Instance> instances)
Returns a reference to this object so that method calls can be chained together.
instances
- The list of Amazon EC2 instances included in this reservation.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.