| Modifier and Type | Method and Description |
|---|---|
Rule |
build()
Builds a new
Rule. |
Rule.Builder |
code(Integer code)
Initializes the value for the
code attribute. |
Rule.Builder |
description(String description)
Initializes the value for the
description attribute. |
Rule.Builder |
destination(String destination)
Initializes the value for the
destination attribute. |
Rule.Builder |
from(Rule instance)
Fill a builder with attribute values from the provided
Rule instance. |
Rule.Builder |
log(Boolean log)
Initializes the value for the
log attribute. |
Rule.Builder |
ports(String ports)
Initializes the value for the
ports attribute. |
Rule.Builder |
protocol(Protocol protocol)
Initializes the value for the
protocol attribute. |
Rule.Builder |
type(Integer type)
Initializes the value for the
type attribute. |
public final Rule.Builder from(Rule instance)
Rule instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Rule.Builder code(Integer code)
code attribute.code - The value for code (can be null)this builder for use in a chained invocationpublic final Rule.Builder description(String description)
description attribute.description - The value for description (can be null)this builder for use in a chained invocationpublic final Rule.Builder destination(String destination)
destination attribute.destination - The value for destination (can be null)this builder for use in a chained invocationpublic final Rule.Builder log(Boolean log)
log attribute.log - The value for log (can be null)this builder for use in a chained invocationpublic final Rule.Builder ports(String ports)
ports attribute.ports - The value for ports (can be null)this builder for use in a chained invocationpublic final Rule.Builder protocol(Protocol protocol)
protocol attribute.protocol - The value for protocol (can be null)this builder for use in a chained invocationpublic final Rule.Builder type(Integer type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic Rule build()
Rule.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.