Class NeutronSecurityGroupInRegion
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.domain.regionscoped.RegionAndName
-
- org.jclouds.openstack.nova.v2_0.domain.regionscoped.NeutronSecurityGroupInRegion
-
public class NeutronSecurityGroupInRegion extends RegionAndName
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.collect.Multimap<TenantIdAndName,SecurityGroup>
groupsByName
protected SecurityGroup
securityGroup
-
Fields inherited from class org.jclouds.openstack.nova.v2_0.domain.regionscoped.RegionAndName
name, NAME_FUNCTION, REGION_FUNCTION, regionId
-
-
Constructor Summary
Constructors Constructor Description NeutronSecurityGroupInRegion(SecurityGroup securityGroup, String regionId, Iterable<SecurityGroup> allGroupsInRegion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<TenantIdAndName,Collection<SecurityGroup>>
getGroupsByName()
Returns a map of groupTenantIdAndName
s to groups.SecurityGroup
getSecurityGroup()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
String
toString()
-
Methods inherited from class org.jclouds.openstack.nova.v2_0.domain.regionscoped.RegionAndName
equals, fromRegionAndName, fromSlashEncoded, getName, getRegion, hashCode, slashEncode
-
-
-
-
Field Detail
-
securityGroup
protected final SecurityGroup securityGroup
-
groupsByName
protected final com.google.common.collect.Multimap<TenantIdAndName,SecurityGroup> groupsByName
-
-
Constructor Detail
-
NeutronSecurityGroupInRegion
public NeutronSecurityGroupInRegion(SecurityGroup securityGroup, String regionId, Iterable<SecurityGroup> allGroupsInRegion)
-
-
Method Detail
-
getSecurityGroup
public SecurityGroup getSecurityGroup()
-
getGroupsByName
public Map<TenantIdAndName,Collection<SecurityGroup>> getGroupsByName()
Returns a map of groupTenantIdAndName
s to groups. The returned value is a collection, to take into account the possibility that certain clouds may permit duplicate group names.- Returns:
- The map of names to (collections of) groups.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
string
in classRegionAndName
-
toString
public String toString()
- Overrides:
toString
in classRegionAndName
-
-