Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
DSRule . |
Modifier and Type | Method and Description |
---|---|
DSRule |
build() |
DSRule.Builder |
setAction(java.lang.String action)
Possible values are:
DSRule.ACTION_ALLOW DSRule.ACTION_DROP DSRule.ACTION_REJECT DSRule.ACTION_REDIRECT DSRule.ACTION_DO_NOT_REDIRECT DSRule.ACTION_DETECT DSRule.ACTION_ALLOW_CONTINUE DSRule.ACTION_DETECT_PREVENT Action enforced on
the packets which matches the distributed service rule. |
DSRule.Builder |
setAppliedTos(java.util.List<ResourceReference> appliedTos)
List of object where rule will be enforced.
|
DSRule.Builder |
setDescription(java.lang.String description)
Description of this resource
|
DSRule.Builder |
setDestinations(java.util.List<ResourceReference> destinations)
List of the destinations.
|
DSRule.Builder |
setDestinationsExcluded(java.lang.Boolean destinationsExcluded)
Negation of the destination.
|
DSRule.Builder |
setDirection(java.lang.String direction)
Possible values are:
DSRule.DIRECTION_IN DSRule.DIRECTION_OUT DSRule.DIRECTION_IN_OUT Rule direction in case
of stateless distributed service rules. |
DSRule.Builder |
setDisabled(java.lang.Boolean disabled)
Flag to disable rule.
|
DSRule.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
DSRule.Builder |
setId(java.lang.String id)
Identifier of the resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
DSRule.Builder |
setIpProtocol(java.lang.String ipProtocol)
Possible values are:
DSRule.IP_PROTOCOL_IPV4 DSRule.IP_PROTOCOL_IPV6 DSRule.IP_PROTOCOL_IPV4_IPV6 Type of IP packet
that should be matched while enforcing the rule. |
DSRule.Builder |
setIsDefault(java.lang.Boolean isDefault)
Flag to indicate whether rule is default.
|
DSRule.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
DSRule.Builder |
setLogged(java.lang.Boolean logged)
Flag to enable packet logging.
|
DSRule.Builder |
setNotes(java.lang.String notes)
User notes specific to the rule.
|
DSRule.Builder |
setOwner(OwnerResourceLink owner) |
DSRule.Builder |
setPriority(java.lang.Long priority)
Priority of the rule.
|
DSRule.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
DSRule.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
DSRule.Builder |
setRuleTag(java.lang.String ruleTag)
User level field which will be printed in CLI and packet logs.
|
DSRule.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
DSRule.Builder |
setSelf(SelfResourceLink self) |
DSRule.Builder |
setSources(java.util.List<ResourceReference> sources)
List of sources.
|
DSRule.Builder |
setSourcesExcluded(java.lang.Boolean sourcesExcluded)
Negation of the source.
|
public Builder()
DSRule
.public DSRule.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public DSRule.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public DSRule.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public DSRule.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public DSRule.Builder setOwner(OwnerResourceLink owner)
owner
- New value for the property.public DSRule.Builder setDescription(java.lang.String description)
description
- New value for the property.public DSRule.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public DSRule.Builder setId(java.lang.String id)
id
- New value for the property.public DSRule.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public DSRule.Builder setAction(java.lang.String action)
action
- New value for the property.public DSRule.Builder setAppliedTos(java.util.List<ResourceReference> appliedTos)
appliedTos
- New value for the property.public DSRule.Builder setDestinations(java.util.List<ResourceReference> destinations)
destinations
- New value for the property.public DSRule.Builder setDestinationsExcluded(java.lang.Boolean destinationsExcluded)
destinationsExcluded
- New value for the property.public DSRule.Builder setDirection(java.lang.String direction)
direction
- New value for the property.public DSRule.Builder setDisabled(java.lang.Boolean disabled)
disabled
- New value for the property.public DSRule.Builder setIpProtocol(java.lang.String ipProtocol)
ipProtocol
- New value for the property.public DSRule.Builder setIsDefault(java.lang.Boolean isDefault)
isDefault
- New value for the property.public DSRule.Builder setLogged(java.lang.Boolean logged)
logged
- New value for the property.public DSRule.Builder setNotes(java.lang.String notes)
notes
- New value for the property.public DSRule.Builder setPriority(java.lang.Long priority)
priority
- New value for the property.public DSRule.Builder setRuleTag(java.lang.String ruleTag)
ruleTag
- New value for the property.public DSRule.Builder setSources(java.util.List<ResourceReference> sources)
sources
- New value for the property.public DSRule.Builder setSourcesExcluded(java.lang.Boolean sourcesExcluded)
sourcesExcluded
- New value for the property.public DSRule build()