public class Reservation extends Object implements Serializable
Describes a reservation.
Constructor and Description |
---|
Reservation() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<String> |
getGroupNames()
One or more security groups.
|
List<GroupIdentifier> |
getGroups()
One or more security groups.
|
List<Instance> |
getInstances()
One or more instances.
|
String |
getOwnerId()
The ID of the AWS account that owns the reservation.
|
String |
getRequesterId()
The ID of the requester that launched the instances on your behalf
(for example, AWS Management Console or Auto Scaling).
|
String |
getReservationId()
The ID of the reservation.
|
int |
hashCode() |
void |
setGroupNames(Collection<String> groupNames)
One or more security groups.
|
void |
setGroups(Collection<GroupIdentifier> groups)
One or more security groups.
|
void |
setInstances(Collection<Instance> instances)
One or more instances.
|
void |
setOwnerId(String ownerId)
The ID of the AWS account that owns the reservation.
|
void |
setRequesterId(String requesterId)
The ID of the requester that launched the instances on your behalf
(for example, AWS Management Console or Auto Scaling).
|
void |
setReservationId(String reservationId)
The ID of the reservation.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Reservation |
withGroupNames(Collection<String> groupNames)
One or more security groups.
|
Reservation |
withGroupNames(String... groupNames)
One or more security groups.
|
Reservation |
withGroups(Collection<GroupIdentifier> groups)
One or more security groups.
|
Reservation |
withGroups(GroupIdentifier... groups)
One or more security groups.
|
Reservation |
withInstances(Collection<Instance> instances)
One or more instances.
|
Reservation |
withInstances(Instance... instances)
One or more instances.
|
Reservation |
withOwnerId(String ownerId)
The ID of the AWS account that owns the reservation.
|
Reservation |
withRequesterId(String requesterId)
The ID of the requester that launched the instances on your behalf
(for example, AWS Management Console or Auto Scaling).
|
Reservation |
withReservationId(String reservationId)
The ID of the reservation.
|
public String getReservationId()
public void setReservationId(String reservationId)
reservationId
- The ID of the reservation.public Reservation withReservationId(String reservationId)
Returns a reference to this object so that method calls can be chained together.
reservationId
- The ID of the reservation.public String getOwnerId()
public void setOwnerId(String ownerId)
ownerId
- The ID of the AWS account that owns the reservation.public Reservation withOwnerId(String ownerId)
Returns a reference to this object so that method calls can be chained together.
ownerId
- The ID of the AWS account that owns the reservation.public String getRequesterId()
public void setRequesterId(String requesterId)
requesterId
- The ID of the requester that launched the instances on your behalf
(for example, AWS Management Console or Auto Scaling).public Reservation withRequesterId(String requesterId)
Returns a reference to this object so that method calls can be chained together.
requesterId
- The ID of the requester that launched the instances on your behalf
(for example, AWS Management Console or Auto Scaling).public List<GroupIdentifier> getGroups()
public void setGroups(Collection<GroupIdentifier> groups)
groups
- One or more security groups.public Reservation withGroups(GroupIdentifier... groups)
Returns a reference to this object so that method calls can be chained together.
groups
- One or more security groups.public Reservation withGroups(Collection<GroupIdentifier> groups)
Returns a reference to this object so that method calls can be chained together.
groups
- One or more security groups.public List<String> getGroupNames()
public void setGroupNames(Collection<String> groupNames)
groupNames
- One or more security groups.public Reservation withGroupNames(String... groupNames)
Returns a reference to this object so that method calls can be chained together.
groupNames
- One or more security groups.public Reservation withGroupNames(Collection<String> groupNames)
Returns a reference to this object so that method calls can be chained together.
groupNames
- One or more security groups.public List<Instance> getInstances()
public void setInstances(Collection<Instance> instances)
instances
- One or more instances.public Reservation withInstances(Instance... instances)
Returns a reference to this object so that method calls can be chained together.
instances
- One or more instances.public Reservation withInstances(Collection<Instance> instances)
Returns a reference to this object so that method calls can be chained together.
instances
- One or more instances.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.