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 Details

    • 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
  • Constructor Details

    • RegionAndName

      protected RegionAndName(String regionId, String name)
  • Method Details

    • 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()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • string

      protected com.google.common.base.MoreObjects.ToStringHelper string()
    • toString

      public String toString()
      Overrides:
      toString in class Object