org.jclouds.ec2.domain
Class Reservation<T extends RunningInstance>

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by com.google.common.collect.ForwardingCollection<E>
          extended by com.google.common.collect.ForwardingSet<T>
              extended by 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>>

See Also:

Nested Class Summary
static class Reservation.Builder<T extends RunningInstance>
           
 
Constructor Summary
Reservation(String region, Iterable<String> groupNames, Iterable<T> instances, String ownerId, String requesterId, String reservationId)
           
 
Method Summary
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.Set
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

Reservation

public Reservation(String region,
                   Iterable<String> groupNames,
                   Iterable<T> instances,
                   @Nullable
                   String ownerId,
                   @Nullable
                   String requesterId,
                   @Nullable
                   String reservationId)
Method Detail

builder

public static <T extends RunningInstance> Reservation.Builder<T> builder()

toBuilder

public Reservation.Builder<T> toBuilder()

delegate

protected Set<T> delegate()
Overrides:
delegate in class com.google.common.collect.ForwardingSet<T extends RunningInstance>

getRegion

@Deprecated
public String getRegion()
Deprecated. 

To be removed in jclouds 1.6

Warning

Especially on EC2 clones that may not support regions, this value is fragile. Consider alternate means to determine context.


getGroupNames

public Set<String> getGroupNames()
Names of the security groups.


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 interface Collection<T extends RunningInstance>
Specified by:
hashCode in interface Set<T extends RunningInstance>
Overrides:
hashCode in class com.google.common.collect.ForwardingSet<T extends RunningInstance>

equals

public boolean equals(Object obj)
Specified by:
equals in interface Collection<T extends RunningInstance>
Specified by:
equals in interface Set<T extends RunningInstance>
Overrides:
equals in class com.google.common.collect.ForwardingSet<T extends RunningInstance>

toString

public String toString()

Overrides:
toString in class com.google.common.collect.ForwardingObject

compareTo

public int compareTo(Reservation<T> other)
Specified by:
compareTo in interface Comparable<Reservation<T extends RunningInstance>>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.