com.amazonaws.services.ec2.model
Class Reservation

java.lang.Object
  extended by com.amazonaws.services.ec2.model.Reservation
All Implemented Interfaces:
java.io.Serializable

public class Reservation
extends java.lang.Object
implements java.io.Serializable

Describes a reservation.

See Also:
Serialized Form

Constructor Summary
Reservation()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.String> getGroupNames()
          One or more security groups.
 java.util.List<GroupIdentifier> getGroups()
          One or more security groups.
 java.util.List<Instance> getInstances()
          One or more instances.
 java.lang.String getOwnerId()
          The ID of the AWS account that owns the reservation.
 java.lang.String getRequesterId()
          The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).
 java.lang.String getReservationId()
          The ID of the reservation.
 int hashCode()
           
 void setGroupNames(java.util.Collection<java.lang.String> groupNames)
          One or more security groups.
 void setGroups(java.util.Collection<GroupIdentifier> groups)
          One or more security groups.
 void setInstances(java.util.Collection<Instance> instances)
          One or more instances.
 void setOwnerId(java.lang.String ownerId)
          The ID of the AWS account that owns the reservation.
 void setRequesterId(java.lang.String requesterId)
          The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).
 void setReservationId(java.lang.String reservationId)
          The ID of the 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)
          One or more security groups.
 Reservation withGroupNames(java.lang.String... groupNames)
          One or more security groups.
 Reservation withGroups(java.util.Collection<GroupIdentifier> groups)
          One or more security groups.
 Reservation withGroups(GroupIdentifier... groups)
          One or more security groups.
 Reservation withInstances(java.util.Collection<Instance> instances)
          One or more instances.
 Reservation withInstances(Instance... instances)
          One or more instances.
 Reservation withOwnerId(java.lang.String ownerId)
          The ID of the AWS account that owns the reservation.
 Reservation withRequesterId(java.lang.String requesterId)
          The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).
 Reservation withReservationId(java.lang.String reservationId)
          The ID of the reservation.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Reservation

public Reservation()
Method Detail

getReservationId

public java.lang.String getReservationId()
The ID of the reservation.

Returns:
The ID of the reservation.

setReservationId

public void setReservationId(java.lang.String reservationId)
The ID of the reservation.

Parameters:
reservationId - The ID of the reservation.

withReservationId

public Reservation withReservationId(java.lang.String reservationId)
The ID of the reservation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservationId - The ID of the reservation.
Returns:
A reference to this updated object so that method calls can be chained together.

getOwnerId

public java.lang.String getOwnerId()
The ID of the AWS account that owns the reservation.

Returns:
The ID of the AWS account that owns the reservation.

setOwnerId

public void setOwnerId(java.lang.String ownerId)
The ID of the AWS account that owns the reservation.

Parameters:
ownerId - The ID of the AWS account that owns the reservation.

withOwnerId

public Reservation withOwnerId(java.lang.String ownerId)
The ID of the AWS account that owns the reservation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ownerId - The ID of the AWS account that owns the reservation.
Returns:
A reference to this updated object so that method calls can be chained together.

getRequesterId

public java.lang.String getRequesterId()
The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).

Returns:
The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).

setRequesterId

public void setRequesterId(java.lang.String requesterId)
The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).

Parameters:
requesterId - The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).

withRequesterId

public Reservation withRequesterId(java.lang.String requesterId)
The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).

Returns a reference to this object so that method calls can be chained together.

Parameters:
requesterId - The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).
Returns:
A reference to this updated object so that method calls can be chained together.

getGroups

public java.util.List<GroupIdentifier> getGroups()
One or more security groups.

Returns:
One or more security groups.

setGroups

public void setGroups(java.util.Collection<GroupIdentifier> groups)
One or more security groups.

Parameters:
groups - One or more security groups.

withGroups

public Reservation withGroups(GroupIdentifier... groups)
One or more security groups.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groups - One or more security groups.
Returns:
A reference to this updated object so that method calls can be chained together.

withGroups

public Reservation withGroups(java.util.Collection<GroupIdentifier> groups)
One or more security groups.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groups - One or more security groups.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroupNames

public java.util.List<java.lang.String> getGroupNames()
One or more security groups.

Returns:
One or more security groups.

setGroupNames

public void setGroupNames(java.util.Collection<java.lang.String> groupNames)
One or more security groups.

Parameters:
groupNames - One or more security groups.

withGroupNames

public Reservation withGroupNames(java.lang.String... groupNames)
One or more security groups.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupNames - One or more security groups.
Returns:
A reference to this updated object so that method calls can be chained together.

withGroupNames

public Reservation withGroupNames(java.util.Collection<java.lang.String> groupNames)
One or more security groups.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupNames - One or more security groups.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstances

public java.util.List<Instance> getInstances()
One or more instances.

Returns:
One or more instances.

setInstances

public void setInstances(java.util.Collection<Instance> instances)
One or more instances.

Parameters:
instances - One or more instances.

withInstances

public Reservation withInstances(Instance... instances)
One or more instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instances - One or more instances.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstances

public Reservation withInstances(java.util.Collection<Instance> instances)
One or more instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instances - One or more instances.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.