Class RegionAndName
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.domain.regionscoped.RegionAndName
-
- Direct Known Subclasses:
NeutronSecurityGroupInRegion,RegionSecurityGroupNameAndPorts,SecurityGroupInRegion
public class RegionAndName extends Object
Helpful when looking for resources by region and name
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringnamestatic com.google.common.base.Function<RegionAndName,String>NAME_FUNCTIONstatic com.google.common.base.Function<RegionAndName,String>REGION_FUNCTIONprotected StringregionId
-
Constructor Summary
Constructors Modifier Constructor Description protectedRegionAndName(String regionId, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static RegionAndNamefromRegionAndName(String regionId, String name)static RegionAndNamefromSlashEncoded(String name)StringgetName()StringgetRegion()inthashCode()StringslashEncode()protected com.google.common.base.MoreObjects.ToStringHelperstring()StringtoString()
-
-
-
Field Detail
-
NAME_FUNCTION
public static final com.google.common.base.Function<RegionAndName,String> NAME_FUNCTION
-
REGION_FUNCTION
public static final com.google.common.base.Function<RegionAndName,String> REGION_FUNCTION
-
regionId
protected final String regionId
-
name
protected final String name
-
-
Method Detail
-
fromSlashEncoded
public static RegionAndName fromSlashEncoded(String name)
-
fromRegionAndName
public static RegionAndName fromRegionAndName(String regionId, String name)
-
slashEncode
public String slashEncode()
-
getRegion
public String getRegion()
-
getName
public String getName()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-