Class EC2SecurityGroupToSecurityGroup
- java.lang.Object
-
- org.jclouds.ec2.compute.functions.EC2SecurityGroupToSecurityGroup
-
- All Implemented Interfaces:
com.google.common.base.Function<SecurityGroup,SecurityGroup>
,Function<SecurityGroup,SecurityGroup>
- Direct Known Subclasses:
AWSEC2SecurityGroupToSecurityGroup
@Singleton public class EC2SecurityGroupToSecurityGroup extends Object implements com.google.common.base.Function<SecurityGroup,SecurityGroup>
A function for transforming an EC2-specific SecurityGroup into a generic SecurityGroup object.
-
-
Constructor Summary
Constructors Constructor Description EC2SecurityGroupToSecurityGroup(com.google.common.base.Supplier<Set<? extends Location>> locations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityGroup
apply(SecurityGroup group)
protected String
idOrName(SecurityGroup group)
-
-
-
Method Detail
-
apply
public SecurityGroup apply(SecurityGroup group)
- Specified by:
apply
in interfacecom.google.common.base.Function<SecurityGroup,SecurityGroup>
- Specified by:
apply
in interfaceFunction<SecurityGroup,SecurityGroup>
-
idOrName
protected String idOrName(SecurityGroup group)
-
-