public class SecurityGroupPredicates extends Object
Constructor and Description |
---|
SecurityGroupPredicates() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<SecurityGroup> |
nameEquals(String name)
matches name of the given security group
|
static com.google.common.base.Predicate<SecurityGroup> |
nameIn(Set<String> names)
matches name of the given security group against a list
|
static com.google.common.base.Predicate<SecurityGroup> |
nameMatches(com.google.common.base.Predicate<String> name)
matches name of the given security group
|
static com.google.common.base.Predicate<SecurityGroupRule> |
ruleCidr(String cidr)
matches a security group rule by its cidr
|
static com.google.common.base.Predicate<SecurityGroupRule> |
ruleEndPort(int endPort)
matches a security group rule by the end port
|
static com.google.common.base.Predicate<SecurityGroupRule> |
ruleGroup(String groupName)
matches a security group rule by the security group it allows
|
static com.google.common.base.Predicate<SecurityGroupRule> |
ruleProtocol(IpProtocol protocol)
matches a security group rule by the protocol
|
static com.google.common.base.Predicate<SecurityGroupRule> |
ruleStartPort(int startPort)
matches a security group rule by the start port
|
public static com.google.common.base.Predicate<SecurityGroup> nameEquals(String name)
name
- public static com.google.common.base.Predicate<SecurityGroup> nameIn(Set<String> names)
names
- public static com.google.common.base.Predicate<SecurityGroup> nameMatches(com.google.common.base.Predicate<String> name)
name
- public static com.google.common.base.Predicate<SecurityGroupRule> ruleCidr(String cidr)
cidr
- public static com.google.common.base.Predicate<SecurityGroupRule> ruleGroup(String groupName)
groupName
- public static com.google.common.base.Predicate<SecurityGroupRule> ruleProtocol(IpProtocol protocol)
protocol
- public static com.google.common.base.Predicate<SecurityGroupRule> ruleStartPort(int startPort)
startPort
- public static com.google.common.base.Predicate<SecurityGroupRule> ruleEndPort(int endPort)
endPort
- Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.