com.atlassian.aws.ec2.model
Class ResourceId<T>

java.lang.Object
  extended by com.atlassian.aws.ec2.model.ResourceId<T>
Direct Known Subclasses:
AvailabilityZoneId, SecurityGroupId, SubnetId, VpcId

public abstract class ResourceId<T>
extends Object

Encapsulates a generic AWS resource string id.


Constructor Summary
ResourceId(String id)
           
 
Method Summary
 boolean equals(Object o)
           
static
<T> Iterable<T>
from(Iterable<String> ids, com.google.common.base.Function<String,T> function)
           
 String getId()
           
static Collection<String> getIds(Iterable<? extends ResourceId<?>> resourceIds)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceId

public ResourceId(@NotNull
                  String id)
Method Detail

getId

@NotNull
public final String getId()

toString

public final String toString()
Overrides:
toString in class Object

equals

public final boolean equals(@Nullable
                            Object o)
Overrides:
equals in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

from

@NotNull
public static <T> Iterable<T> from(Iterable<String> ids,
                                           com.google.common.base.Function<String,T> function)

getIds

@NotNull
public static Collection<String> getIds(Iterable<? extends ResourceId<?>> resourceIds)


Copyright © 2015 Atlassian. All rights reserved.