org.jclouds.cloudstack.domain
Class ZoneAndName

java.lang.Object
  extended by org.jclouds.cloudstack.domain.ZoneAndName
Direct Known Subclasses:
ZoneSecurityGroupNamePortsCidrs

public class ZoneAndName
extends Object

Helpful when looking for resources by zone and name


Field Summary
protected  String name
           
static com.google.common.base.Function<ZoneAndName,String> NAME_FUNCTION
           
static com.google.common.base.Function<ZoneAndName,String> ZONE_FUNCTION
           
protected  String zoneId
           
 
Constructor Summary
protected ZoneAndName(String zoneId, String name)
           
 
Method Summary
 boolean equals(Object o)
           
static ZoneAndName fromZoneAndName(String zoneId, String name)
           
 String getName()
           
 String getZone()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_FUNCTION

public static final com.google.common.base.Function<ZoneAndName,String> NAME_FUNCTION

ZONE_FUNCTION

public static final com.google.common.base.Function<ZoneAndName,String> ZONE_FUNCTION

zoneId

protected final String zoneId

name

protected final String name
Constructor Detail

ZoneAndName

protected ZoneAndName(String zoneId,
                      String name)
Method Detail

fromZoneAndName

public static ZoneAndName fromZoneAndName(String zoneId,
                                          String name)

getZone

public String getZone()

getName

public String getName()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()


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