Class NetworkDirectionProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<NetworkDirectionProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.NetworkDirectionProcessor.Builder
- All Implemented Interfaces:
WithJson<NetworkDirectionProcessor.Builder>
,ObjectBuilder<NetworkDirectionProcessor>
- Enclosing class:
- NetworkDirectionProcessor
public static class NetworkDirectionProcessor.Builder
extends ProcessorBase.AbstractBuilder<NetworkDirectionProcessor.Builder>
implements ObjectBuilder<NetworkDirectionProcessor>
Builder for
NetworkDirectionProcessor
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aNetworkDirectionProcessor
.destinationIp
(String value) Field containing the destination IP address.ignoreMissing
(Boolean value) If true and any required fields are missing, the processor quietly exits without modifying the document.internalNetworks
(String value, String... values) List of internal networks.internalNetworks
(List<String> list) List of internal networks.internalNetworksField
(String value) A field on the given document to read the internal_networks configuration from.protected NetworkDirectionProcessor.Builder
self()
Field containing the source IP address.targetField
(String value) Output field for the network direction.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tag
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceIp
Field containing the source IP address.API name:
source_ip
-
destinationIp
Field containing the destination IP address.API name:
destination_ip
-
targetField
Output field for the network direction.API name:
target_field
-
internalNetworks
List of internal networks. Supports IPv4 and IPv6 addresses and ranges in CIDR notation. Also supports the named ranges listed below. These may be constructed with template snippets. Must specify only one of internal_networks or internal_networks_field.API name:
internal_networks
Adds all elements of
list
tointernalNetworks
. -
internalNetworks
List of internal networks. Supports IPv4 and IPv6 addresses and ranges in CIDR notation. Also supports the named ranges listed below. These may be constructed with template snippets. Must specify only one of internal_networks or internal_networks_field.API name:
internal_networks
Adds one or more values to
internalNetworks
. -
internalNetworksField
A field on the given document to read the internal_networks configuration from.API name:
internal_networks_field
-
ignoreMissing
If true and any required fields are missing, the processor quietly exits without modifying the document.API name:
ignore_missing
-
self
- Specified by:
self
in classProcessorBase.AbstractBuilder<NetworkDirectionProcessor.Builder>
-
build
Builds aNetworkDirectionProcessor
.- Specified by:
build
in interfaceObjectBuilder<NetworkDirectionProcessor>
- Throws:
NullPointerException
- if some of the required fields are null.
-