Class RuleBuilder
- java.lang.Object
-
- org.opennms.netmgt.flows.classification.persistence.api.RuleBuilder
-
public class RuleBuilder extends java.lang.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(java.lang.String dstAddress)
RuleBuilder
withDstPort(int dstPort)
RuleBuilder
withDstPort(java.lang.String dstPort)
RuleBuilder
withExporterFilter(java.lang.String exporterFilter)
RuleBuilder
withGroup(Group group)
RuleBuilder
withName(java.lang.String name)
RuleBuilder
withOmnidirectional(boolean omnidirectional)
RuleBuilder
withPosition(int position)
RuleBuilder
withProtocol(java.lang.String protocol)
RuleBuilder
withProtocol(Protocol protocol)
RuleBuilder
withSrcAddress(java.lang.String srcAddress)
RuleBuilder
withSrcPort(int srcPort)
RuleBuilder
withSrcPort(java.lang.String srcPort)
-
-
-
Method Detail
-
withName
public RuleBuilder withName(java.lang.String name)
-
withDstAddress
public RuleBuilder withDstAddress(java.lang.String dstAddress)
-
withDstPort
public RuleBuilder withDstPort(java.lang.String dstPort)
-
withDstPort
public RuleBuilder withDstPort(int dstPort)
-
withSrcAddress
public RuleBuilder withSrcAddress(java.lang.String srcAddress)
-
withSrcPort
public RuleBuilder withSrcPort(java.lang.String srcPort)
-
withSrcPort
public RuleBuilder withSrcPort(int srcPort)
-
withProtocol
public RuleBuilder withProtocol(java.lang.String protocol)
-
withProtocol
public RuleBuilder withProtocol(Protocol protocol)
-
withOmnidirectional
public RuleBuilder withOmnidirectional(boolean omnidirectional)
-
withExporterFilter
public RuleBuilder withExporterFilter(java.lang.String exporterFilter)
-
withGroup
public RuleBuilder withGroup(Group group)
-
fromRule
public RuleBuilder fromRule(Rule rule)
-
withPosition
public RuleBuilder withPosition(int position)
-
build
public Rule build()
-
-