Class CommunityIDProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<CommunityIDProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.CommunityIDProcessor.Builder
- All Implemented Interfaces:
WithJson<CommunityIDProcessor.Builder>
,ObjectBuilder<CommunityIDProcessor>
- Enclosing class:
- CommunityIDProcessor
public static class CommunityIDProcessor.Builder
extends ProcessorBase.AbstractBuilder<CommunityIDProcessor.Builder>
implements ObjectBuilder<CommunityIDProcessor>
Builder for
CommunityIDProcessor
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aCommunityIDProcessor
.destinationIp
(String value) Field containing the destination IP address.destinationPort
(String value) Field containing the destination port.ianaNumber
(String value) Field containing the IANA number.Field containing the ICMP code.Field containing the ICMP type.ignoreMissing
(Boolean value) If true and any required fields are missing, the processor quietly exits without modifying the document.Seed for the community ID hash.protected CommunityIDProcessor.Builder
self()
Field containing the source IP address.sourcePort
(String value) Field containing the source port.targetField
(String value) Output field for the community ID.Field containing the transport protocol name or number.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
-
sourcePort
Field containing the source port.API name:
source_port
-
destinationIp
Field containing the destination IP address.API name:
destination_ip
-
destinationPort
Field containing the destination port.API name:
destination_port
-
ianaNumber
Field containing the IANA number.API name:
iana_number
-
icmpType
Field containing the ICMP type.API name:
icmp_type
-
icmpCode
Field containing the ICMP code.API name:
icmp_code
-
transport
Field containing the transport protocol name or number. Used only when the iana_number field is not present. The following protocol names are currently supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udpAPI name:
transport
-
targetField
Output field for the community ID.API name:
target_field
-
seed
Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The seed can prevent hash collisions between network domains, such as a staging and production network that use the same addressing scheme.API name:
seed
-
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<CommunityIDProcessor.Builder>
-
build
Builds aCommunityIDProcessor
.- Specified by:
build
in interfaceObjectBuilder<CommunityIDProcessor>
- Throws:
NullPointerException
- if some of the required fields are null.
-