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 String
name
static com.google.common.base.Function<RegionAndName,String>
NAME_FUNCTION
static com.google.common.base.Function<RegionAndName,String>
REGION_FUNCTION
protected String
regionId
-
Constructor Summary
Constructors Modifier Constructor Description protected
RegionAndName(String regionId, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static RegionAndName
fromRegionAndName(String regionId, String name)
static RegionAndName
fromSlashEncoded(String name)
String
getName()
String
getRegion()
int
hashCode()
String
slashEncode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
String
toString()
-
-
-
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()
-
-