Modifier and Type | Method and Description |
---|---|
Rule |
build()
Builds a new
Rule . |
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 |
ports(String ports)
Initializes the value for the
ports attribute. |
Rule.Builder |
protocol(String protocol)
Initializes the value for the
protocol 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 destination(String destination)
destination
attribute.destination
- The value for destinationthis
builder for use in a chained invocationpublic final Rule.Builder ports(String ports)
ports
attribute.ports
- The value for portsthis
builder for use in a chained invocationpublic final Rule.Builder protocol(String protocol)
protocol
attribute.protocol
- The value for protocolthis
builder for use in a chained invocationpublic Rule build()
Rule
.IllegalStateException
- if any required attributes are missingCopyright © 2016 Pivotal Software, Inc.. All rights reserved.