public class Reservation
extends java.lang.Object
implements java.io.Serializable
An Amazon EC2 reservation of requested EC2 instances.
| コンストラクタと説明 |
|---|
Reservation() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
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.
|
int |
hashCode() |
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.
|
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 クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object