Class Reservation
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a reservation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
One or more security group names.[EC2-Classic only] One or more security groups.One or more instances.The ID of the AWS account that owns the reservation.The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).The ID of the reservation.int
hashCode()
void
setGroupNames
(Collection<String> groupNames) One or more security group names.void
setGroups
(Collection<GroupIdentifier> groups) [EC2-Classic only] 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.toString()
Returns a string representation of this object; useful for testing and debugging.withGroupNames
(String... groupNames) One or more security group names.withGroupNames
(Collection<String> groupNames) One or more security group names.withGroups
(GroupIdentifier... groups) [EC2-Classic only] One or more security groups.withGroups
(Collection<GroupIdentifier> groups) [EC2-Classic only] One or more security groups.withInstances
(Instance... instances) One or more instances.withInstances
(Collection<Instance> instances) One or more instances.withOwnerId
(String ownerId) The ID of the AWS account that owns the reservation.withRequesterId
(String requesterId) The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).withReservationId
(String reservationId) The ID of the reservation.
-
Constructor Details
-
Reservation
public Reservation()
-
-
Method Details
-
setReservationId
The ID of the reservation.
- Parameters:
reservationId
- The ID of the reservation.
-
getReservationId
The ID of the reservation.
- Returns:
- The ID of the reservation.
-
withReservationId
The ID of the reservation.
- Parameters:
reservationId
- The ID of the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOwnerId
The ID of the AWS account that owns the reservation.
- Parameters:
ownerId
- The ID of the AWS account that owns the reservation.
-
getOwnerId
The ID of the AWS account that owns the reservation.
- Returns:
- The ID of the AWS account that owns the reservation.
-
withOwnerId
The ID of the AWS account that owns the reservation.
- Parameters:
ownerId
- The ID of the AWS account that owns the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRequesterId
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).
-
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).
-
withRequesterId
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getGroups
[EC2-Classic only] One or more security groups.
- Returns:
- [EC2-Classic only] One or more security groups.
-
setGroups
[EC2-Classic only] One or more security groups.
- Parameters:
groups
- [EC2-Classic only] One or more security groups.
-
withGroups
[EC2-Classic only] One or more security groups.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
orwithGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
groups
- [EC2-Classic only] One or more security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGroups
[EC2-Classic only] One or more security groups.
- Parameters:
groups
- [EC2-Classic only] One or more security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getInstances
One or more instances.
- Returns:
- One or more instances.
-
setInstances
One or more instances.
- Parameters:
instances
- One or more instances.
-
withInstances
One or more instances.
NOTE: This method appends the values to the existing list (if any). Use
setInstances(java.util.Collection)
orwithInstances(java.util.Collection)
if you want to override the existing values.- Parameters:
instances
- One or more instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInstances
One or more instances.
- Parameters:
instances
- One or more instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getGroupNames
One or more security group names.
- Returns:
- One or more security group names.
-
setGroupNames
One or more security group names.
- Parameters:
groupNames
- One or more security group names.
-
withGroupNames
One or more security group names.
NOTE: This method appends the values to the existing list (if any). Use
setGroupNames(java.util.Collection)
orwithGroupNames(java.util.Collection)
if you want to override the existing values.- Parameters:
groupNames
- One or more security group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGroupNames
One or more security group names.
- Parameters:
groupNames
- One or more security group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-