Class SecurityGroupInRegion
java.lang.Object
org.jclouds.openstack.nova.v2_0.domain.regionscoped.RegionAndName
org.jclouds.openstack.nova.v2_0.domain.regionscoped.SecurityGroupInRegion
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.google.common.collect.Multimap
<TenantIdAndName, SecurityGroup> protected final SecurityGroup
Fields inherited from class org.jclouds.openstack.nova.v2_0.domain.regionscoped.RegionAndName
name, NAME_FUNCTION, REGION_FUNCTION, regionId
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityGroupInRegion
(SecurityGroup securityGroup, String regionId, Iterable<SecurityGroup> allGroupsInRegion) -
Method Summary
Modifier and TypeMethodDescriptionReturns a map of groupTenantIdAndName
s to groups.protected com.google.common.base.MoreObjects.ToStringHelper
string()
toString()
Methods inherited from class org.jclouds.openstack.nova.v2_0.domain.regionscoped.RegionAndName
equals, fromRegionAndName, fromSlashEncoded, getName, getRegion, hashCode, slashEncode
-
Field Details
-
securityGroup
-
groupsByName
-
-
Constructor Details
-
SecurityGroupInRegion
public SecurityGroupInRegion(SecurityGroup securityGroup, String regionId, Iterable<SecurityGroup> allGroupsInRegion)
-
-
Method Details
-
getSecurityGroup
-
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
- Overrides:
toString
in classRegionAndName
-