Package org.jclouds.cloudstack.domain
Class ZoneAndName
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description 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
Constructors Modifier Constructor Description protected
ZoneAndName(String zoneId, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static ZoneAndName
fromZoneAndName(String zoneId, String name)
String
getName()
String
getZone()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
String
toString()
-
-
-
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
-
-
Method Detail
-
fromZoneAndName
public static ZoneAndName fromZoneAndName(String zoneId, String name)
-
getZone
public String getZone()
-
getName
public String getName()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-