Package org.jclouds.ec2.domain
Class Reservation<T extends RunningInstance>
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingCollection<E>
-
- com.google.common.collect.ForwardingSet<T>
-
- org.jclouds.ec2.domain.Reservation<T>
-
- All Implemented Interfaces:
Comparable<Reservation<T>>,Iterable<T>,Collection<T>,Set<T>
public class Reservation<T extends RunningInstance> extends com.google.common.collect.ForwardingSet<T> implements Comparable<Reservation<T>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReservation.Builder<T extends RunningInstance>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends RunningInstance>
Reservation.Builder<T>builder()intcompareTo(Reservation<T> other)protected Set<T>delegate()booleanequals(Object obj)Set<String>getGroupNames()Names of the security groups.StringgetOwnerId()AWS Access Key ID of the user who owns the reservation.StringgetRegion()Deprecated.StringgetRequesterId()The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).StringgetReservationId()Unique ID of the reservation.inthashCode()Reservation.Builder<T>toBuilder()StringtoString()-
Methods inherited from class com.google.common.collect.ForwardingSet
standardEquals, standardHashCode, standardRemoveAll
-
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
builder
public static <T extends RunningInstance> Reservation.Builder<T> builder()
-
toBuilder
public Reservation.Builder<T> toBuilder()
-
delegate
protected Set<T> delegate()
- Specified by:
delegatein classcom.google.common.collect.ForwardingSet<T extends RunningInstance>
-
getRegion
@Deprecated public String getRegion()
Deprecated.To be removed in jclouds 1.6Warning
Especially on EC2 clones that may not support regions, this value is fragile. Consider alternate means to determine context.
-
getOwnerId
public String getOwnerId()
AWS Access Key ID of the user who owns the reservation.
-
getRequesterId
public String getRequesterId()
The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).
-
getReservationId
public String getReservationId()
Unique ID of the reservation.
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<T extends RunningInstance>- Specified by:
hashCodein interfaceSet<T extends RunningInstance>- Overrides:
hashCodein classcom.google.common.collect.ForwardingSet<T extends RunningInstance>
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceCollection<T extends RunningInstance>- Specified by:
equalsin interfaceSet<T extends RunningInstance>- Overrides:
equalsin classcom.google.common.collect.ForwardingSet<T extends RunningInstance>
-
toString
public String toString()
- Overrides:
toStringin classcom.google.common.collect.ForwardingObject
-
compareTo
public int compareTo(Reservation<T> other)
- Specified by:
compareToin interfaceComparable<T extends RunningInstance>
-
-