@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Reservation extends Object implements Serializable, Cloneable
Describes a launch request for one or more instances, and includes owner, requester, and security group information that applies to all instances in the launch request.
Constructor and Description |
---|
Reservation() |
Modifier and Type | Method and Description |
---|---|
Reservation |
clone() |
boolean |
equals(Object obj) |
List<String> |
getGroupNames()
One or more security group names.
|
List<GroupIdentifier> |
getGroups()
Not supported.
|
List<Instance> |
getInstances()
The instances.
|
String |
getOwnerId()
The ID of the Amazon Web Services account that owns the reservation.
|
String |
getRequesterId()
The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management
Console or Auto Scaling).
|
String |
getReservationId()
The ID of the reservation.
|
int |
hashCode() |
void |
setGroupNames(Collection<String> groupNames)
One or more security group names.
|
void |
setGroups(Collection<GroupIdentifier> groups)
Not supported.
|
void |
setInstances(Collection<Instance> instances)
The instances.
|
void |
setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the reservation.
|
void |
setRequesterId(String requesterId)
The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management
Console or Auto Scaling).
|
void |
setReservationId(String reservationId)
The ID of the reservation.
|
String |
toString()
Returns a string representation of this object.
|
Reservation |
withGroupNames(Collection<String> groupNames)
One or more security group names.
|
Reservation |
withGroupNames(String... groupNames)
One or more security group names.
|
Reservation |
withGroups(Collection<GroupIdentifier> groups)
Not supported.
|
Reservation |
withGroups(GroupIdentifier... groups)
Not supported.
|
Reservation |
withInstances(Collection<Instance> instances)
The instances.
|
Reservation |
withInstances(Instance... instances)
The instances.
|
Reservation |
withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the reservation.
|
Reservation |
withRequesterId(String requesterId)
The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management
Console or Auto Scaling).
|
Reservation |
withReservationId(String reservationId)
The ID of the reservation.
|
public List<GroupIdentifier> getGroups()
Not supported.
public void setGroups(Collection<GroupIdentifier> groups)
Not supported.
groups
- Not supported.public Reservation withGroups(GroupIdentifier... groups)
Not supported.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
or withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- Not supported.public Reservation withGroups(Collection<GroupIdentifier> groups)
Not supported.
groups
- Not supported.public void setInstances(Collection<Instance> instances)
The instances.
instances
- The instances.public Reservation withInstances(Instance... instances)
The instances.
NOTE: This method appends the values to the existing list (if any). Use
setInstances(java.util.Collection)
or withInstances(java.util.Collection)
if you want to
override the existing values.
instances
- The instances.public Reservation withInstances(Collection<Instance> instances)
The instances.
instances
- The instances.public void setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the reservation.
ownerId
- The ID of the Amazon Web Services account that owns the reservation.public String getOwnerId()
The ID of the Amazon Web Services account that owns the reservation.
public Reservation withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the reservation.
ownerId
- The ID of the Amazon Web Services account that owns the reservation.public void setRequesterId(String requesterId)
The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management Console or Auto Scaling).
requesterId
- The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services
Management Console or Auto Scaling).public String getRequesterId()
The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management Console or Auto Scaling).
public Reservation withRequesterId(String requesterId)
The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management Console or Auto Scaling).
requesterId
- The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services
Management Console or Auto Scaling).public void setReservationId(String reservationId)
The ID of the reservation.
reservationId
- The ID of the reservation.public String getReservationId()
The ID of the reservation.
public Reservation withReservationId(String reservationId)
The ID of the reservation.
reservationId
- The ID of the reservation.public List<String> getGroupNames()
One or more security group names.
public void setGroupNames(Collection<String> groupNames)
One or more security group names.
groupNames
- One or more security group names.public Reservation withGroupNames(String... groupNames)
One or more security group names.
NOTE: This method appends the values to the existing list (if any). Use
setGroupNames(java.util.Collection)
or withGroupNames(java.util.Collection)
if you want to
override the existing values.
groupNames
- One or more security group names.public Reservation withGroupNames(Collection<String> groupNames)
One or more security group names.
groupNames
- One or more security group names.public String toString()
toString
in class Object
Object.toString()
public Reservation clone()