|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.Reservation
public class Reservation
An Amazon EC2 reservation of requested EC2 instances.
Constructor Summary | |
---|---|
Reservation()
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getGroupNames()
The list of security groups requested for the instances in this reservation. |
java.util.List<GroupIdentifier> |
getGroups()
The list of security groups requested for the instances in this reservation. |
java.util.List<Instance> |
getInstances()
The list of Amazon EC2 instances included in this reservation. |
java.lang.String |
getOwnerId()
The AWS Access Key ID of the user who owns the reservation. |
java.lang.String |
getRequesterId()
The unique ID of the user who requested the instances in this reservation. |
java.lang.String |
getReservationId()
The unique ID of this reservation. |
void |
setGroupNames(java.util.Collection<java.lang.String> groupNames)
The list of security groups requested for the instances in this reservation. |
void |
setGroups(java.util.Collection<GroupIdentifier> groups)
The list of security groups requested for the instances in this reservation. |
void |
setInstances(java.util.Collection<Instance> instances)
The list of Amazon EC2 instances included in this reservation. |
void |
setOwnerId(java.lang.String ownerId)
The AWS Access Key ID of the user who owns the reservation. |
void |
setRequesterId(java.lang.String requesterId)
The unique ID of the user who requested the instances in this reservation. |
void |
setReservationId(java.lang.String reservationId)
The unique ID of this reservation. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Reservation |
withGroupNames(java.util.Collection<java.lang.String> groupNames)
The list of security groups requested for the instances in this reservation. |
Reservation |
withGroupNames(java.lang.String... groupNames)
The list of security groups requested for the instances in this reservation. |
Reservation |
withGroups(java.util.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(java.util.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(java.lang.String ownerId)
The AWS Access Key ID of the user who owns the reservation. |
Reservation |
withRequesterId(java.lang.String requesterId)
The unique ID of the user who requested the instances in this reservation. |
Reservation |
withReservationId(java.lang.String reservationId)
The unique ID of this reservation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Reservation()
Method Detail |
---|
public java.lang.String getReservationId()
public void setReservationId(java.lang.String reservationId)
reservationId
- The unique ID of this reservation.public Reservation withReservationId(java.lang.String reservationId)
Returns a reference to this object so that method calls can be chained together.
reservationId
- The unique ID of this reservation.
public java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
ownerId
- The AWS Access Key ID of the user who owns the reservation.public Reservation withOwnerId(java.lang.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 java.lang.String getRequesterId()
public void setRequesterId(java.lang.String requesterId)
requesterId
- The unique ID of the user who requested the instances in this
reservation.public Reservation withRequesterId(java.lang.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 java.util.List<GroupIdentifier> getGroups()
public void setGroups(java.util.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(java.util.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 java.util.List<java.lang.String> getGroupNames()
public void setGroupNames(java.util.Collection<java.lang.String> groupNames)
groupNames
- The list of security groups requested for the instances in this
reservation.public Reservation withGroupNames(java.lang.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(java.util.Collection<java.lang.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 java.util.List<Instance> getInstances()
public void setInstances(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |