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 class
Reservation.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()
int
compareTo(Reservation<T> other)
protected Set<T>
delegate()
boolean
equals(Object obj)
Set<String>
getGroupNames()
Names of the security groups.String
getOwnerId()
AWS Access Key ID of the user who owns the reservation.String
getRegion()
Deprecated.String
getRequesterId()
The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).String
getReservationId()
Unique ID of the reservation.int
hashCode()
Reservation.Builder<T>
toBuilder()
String
toString()
-
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:
delegate
in 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:
hashCode
in interfaceCollection<T extends RunningInstance>
- Specified by:
hashCode
in interfaceSet<T extends RunningInstance>
- Overrides:
hashCode
in classcom.google.common.collect.ForwardingSet<T extends RunningInstance>
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceCollection<T extends RunningInstance>
- Specified by:
equals
in interfaceSet<T extends RunningInstance>
- Overrides:
equals
in classcom.google.common.collect.ForwardingSet<T extends RunningInstance>
-
toString
public String toString()
- Overrides:
toString
in classcom.google.common.collect.ForwardingObject
-
compareTo
public int compareTo(Reservation<T> other)
- Specified by:
compareTo
in interfaceComparable<T extends RunningInstance>
-
-