Class RuleBuilder
- java.lang.Object
-
- org.opennms.netmgt.flows.classification.persistence.api.RuleBuilder
-
public class RuleBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description RuleBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule
build()
RuleBuilder
fromRule(Rule rule)
RuleBuilder
withDstAddress(String dstAddress)
RuleBuilder
withDstPort(int dstPort)
RuleBuilder
withDstPort(String dstPort)
RuleBuilder
withExporterFilter(String exporterFilter)
RuleBuilder
withGroup(Group group)
RuleBuilder
withName(String name)
RuleBuilder
withOmnidirectional(boolean omnidirectional)
RuleBuilder
withPosition(int position)
RuleBuilder
withProtocol(String protocol)
RuleBuilder
withProtocol(Protocol protocol)
RuleBuilder
withSrcAddress(String srcAddress)
RuleBuilder
withSrcPort(int srcPort)
RuleBuilder
withSrcPort(String srcPort)
-
-
-
Method Detail
-
withName
public RuleBuilder withName(String name)
-
withDstAddress
public RuleBuilder withDstAddress(String dstAddress)
-
withDstPort
public RuleBuilder withDstPort(String dstPort)
-
withDstPort
public RuleBuilder withDstPort(int dstPort)
-
withSrcAddress
public RuleBuilder withSrcAddress(String srcAddress)
-
withSrcPort
public RuleBuilder withSrcPort(String srcPort)
-
withSrcPort
public RuleBuilder withSrcPort(int srcPort)
-
withProtocol
public RuleBuilder withProtocol(String protocol)
-
withProtocol
public RuleBuilder withProtocol(Protocol protocol)
-
withOmnidirectional
public RuleBuilder withOmnidirectional(boolean omnidirectional)
-
withExporterFilter
public RuleBuilder withExporterFilter(String exporterFilter)
-
withGroup
public RuleBuilder withGroup(Group group)
-
fromRule
public RuleBuilder fromRule(Rule rule)
-
withPosition
public RuleBuilder withPosition(int position)
-
build
public Rule build()
-
-