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 Stringnamestatic com.google.common.base.Function<ZoneAndName,String>NAME_FUNCTIONstatic com.google.common.base.Function<ZoneAndName,String>ZONE_FUNCTIONprotected StringzoneId
-
Constructor Summary
Constructors Modifier Constructor Description protectedZoneAndName(String zoneId, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ZoneAndNamefromZoneAndName(String zoneId, String name)StringgetName()StringgetZone()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()StringtoString()
-
-
-
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()
-
-