public static final class ServiceInsertionRule.Builder
extends java.lang.Object
ServiceInsertionRule.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
ServiceInsertionRule. |
| Modifier and Type | Method and Description |
|---|---|
ServiceInsertionRule |
build() |
ServiceInsertionRule.Builder |
setAction(java.lang.String action)
Possible values are:
ServiceInsertionRule.ACTION_ALLOW ServiceInsertionRule.ACTION_DROP ServiceInsertionRule.ACTION_REJECT ServiceInsertionRule.ACTION_REDIRECT ServiceInsertionRule.ACTION_DO_NOT_REDIRECT
ServiceInsertionRule.ACTION_DETECT ServiceInsertionRule.ACTION_ALLOW_CONTINUE
ServiceInsertionRule.ACTION_DETECT_PREVENT
Action enforced on the packets which matches the distributed service rule. |
ServiceInsertionRule.Builder |
setAppliedTos(java.util.List<ResourceReference> appliedTos)
List of object where rule will be enforced.
|
ServiceInsertionRule.Builder |
setDescription(java.lang.String description)
Description of this resource
|
ServiceInsertionRule.Builder |
setDestinations(java.util.List<ResourceReference> destinations)
List of the destinations.
|
ServiceInsertionRule.Builder |
setDestinationsExcluded(java.lang.Boolean destinationsExcluded)
Negation of the destination.
|
ServiceInsertionRule.Builder |
setDirection(java.lang.String direction)
Possible values are:
ServiceInsertionRule.DIRECTION_IN ServiceInsertionRule.DIRECTION_OUT ServiceInsertionRule.DIRECTION_IN_OUT Rule
direction in case of stateless distributed service rules. |
ServiceInsertionRule.Builder |
setDisabled(java.lang.Boolean disabled)
Flag to disable rule.
|
ServiceInsertionRule.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
ServiceInsertionRule.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.
|
ServiceInsertionRule.Builder |
setIpProtocol(java.lang.String ipProtocol)
Possible values are:
ServiceInsertionRule.IP_PROTOCOL_IPV4 ServiceInsertionRule.IP_PROTOCOL_IPV6 ServiceInsertionRule.IP_PROTOCOL_IPV4_IPV6 Type
of IP packet that should be matched while enforcing the rule. |
ServiceInsertionRule.Builder |
setIsDefault(java.lang.Boolean isDefault)
Flag to indicate whether rule is default.
|
ServiceInsertionRule.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
ServiceInsertionRule.Builder |
setLogged(java.lang.Boolean logged)
Flag to enable packet logging.
|
ServiceInsertionRule.Builder |
setNotes(java.lang.String notes)
User notes specific to the rule.
|
ServiceInsertionRule.Builder |
setOwner(OwnerResourceLink owner) |
ServiceInsertionRule.Builder |
setPriority(java.lang.Long priority)
Priority of the rule.
|
ServiceInsertionRule.Builder |
setRedirectTos(java.util.List<ResourceReference> redirectTos)
A rule can be redirected to ServiceInstance, InstanceEndpoint for North/South
Traffic.
|
ServiceInsertionRule.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
ServiceInsertionRule.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
ServiceInsertionRule.Builder |
setRuleTag(java.lang.String ruleTag)
User level field which will be printed in CLI and packet logs.
|
ServiceInsertionRule.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.
|
ServiceInsertionRule.Builder |
setSectionId(java.lang.String sectionId)
ID of the section to which this rule belongs.
|
ServiceInsertionRule.Builder |
setSelf(SelfResourceLink self) |
ServiceInsertionRule.Builder |
setServices(java.util.List<ServiceInsertionService> services)
List of the services.
|
ServiceInsertionRule.Builder |
setSources(java.util.List<ResourceReference> sources)
List of sources.
|
ServiceInsertionRule.Builder |
setSourcesExcluded(java.lang.Boolean sourcesExcluded)
Negation of the source.
|
public Builder()
ServiceInsertionRule.public ServiceInsertionRule.Builder setLinks(java.util.List<ResourceLink> links)
links - New value for the property.public ServiceInsertionRule.Builder setSchema(java.lang.String schema)
schema - New value for the property.public ServiceInsertionRule.Builder setSelf(SelfResourceLink self)
self - New value for the property.public ServiceInsertionRule.Builder setRevision(java.lang.Long revision)
revision - New value for the property.public ServiceInsertionRule.Builder setOwner(OwnerResourceLink owner)
owner - New value for the property.public ServiceInsertionRule.Builder setDescription(java.lang.String description)
description - New value for the property.public ServiceInsertionRule.Builder setDisplayName(java.lang.String displayName)
displayName - New value for the property.public ServiceInsertionRule.Builder setId(java.lang.String id)
id - New value for the property.public ServiceInsertionRule.Builder setResourceType(java.lang.String resourceType)
resourceType - New value for the property.public ServiceInsertionRule.Builder setAction(java.lang.String action)
ServiceInsertionRule.ACTION_ALLOWServiceInsertionRule.ACTION_DROPServiceInsertionRule.ACTION_REJECTServiceInsertionRule.ACTION_REDIRECTServiceInsertionRule.ACTION_DO_NOT_REDIRECTServiceInsertionRule.ACTION_DETECTServiceInsertionRule.ACTION_ALLOW_CONTINUEServiceInsertionRule.ACTION_DETECT_PREVENTaction - New value for the property.public ServiceInsertionRule.Builder setAppliedTos(java.util.List<ResourceReference> appliedTos)
appliedTos - New value for the property.public ServiceInsertionRule.Builder setDestinations(java.util.List<ResourceReference> destinations)
destinations - New value for the property.public ServiceInsertionRule.Builder setDestinationsExcluded(java.lang.Boolean destinationsExcluded)
destinationsExcluded - New value for the property.public ServiceInsertionRule.Builder setDirection(java.lang.String direction)
direction - New value for the property.public ServiceInsertionRule.Builder setDisabled(java.lang.Boolean disabled)
disabled - New value for the property.public ServiceInsertionRule.Builder setIpProtocol(java.lang.String ipProtocol)
ipProtocol - New value for the property.public ServiceInsertionRule.Builder setIsDefault(java.lang.Boolean isDefault)
isDefault - New value for the property.public ServiceInsertionRule.Builder setLogged(java.lang.Boolean logged)
logged - New value for the property.public ServiceInsertionRule.Builder setNotes(java.lang.String notes)
notes - New value for the property.public ServiceInsertionRule.Builder setPriority(java.lang.Long priority)
priority - New value for the property.public ServiceInsertionRule.Builder setRuleTag(java.lang.String ruleTag)
ruleTag - New value for the property.public ServiceInsertionRule.Builder setSources(java.util.List<ResourceReference> sources)
sources - New value for the property.public ServiceInsertionRule.Builder setSourcesExcluded(java.lang.Boolean sourcesExcluded)
sourcesExcluded - New value for the property.public ServiceInsertionRule.Builder setRedirectTos(java.util.List<ResourceReference> redirectTos)
redirectTos - New value for the property.public ServiceInsertionRule.Builder setSectionId(java.lang.String sectionId)
sectionId - New value for the property.public ServiceInsertionRule.Builder setServices(java.util.List<ServiceInsertionService> services)
services - New value for the property.public ServiceInsertionRule build()