Class ReplicationAccess.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ReplicationAccess.Builder>
co.elastic.clients.elasticsearch.security.ReplicationAccess.Builder
- All Implemented Interfaces:
WithJson<ReplicationAccess.Builder>
,ObjectBuilder<ReplicationAccess>
- Enclosing class:
- ReplicationAccess
public static class ReplicationAccess.Builder
extends WithJsonObjectBuilderBase<ReplicationAccess.Builder>
implements ObjectBuilder<ReplicationAccess>
Builder for
ReplicationAccess
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowRestrictedIndices
(Boolean value) This needs to be set to true if the patterns in the names field should cover system indices.build()
Builds aReplicationAccess
.Required - A list of indices (or index name patterns) to which the permissions in this entry apply.Required - A list of indices (or index name patterns) to which the permissions in this entry apply.protected ReplicationAccess.Builder
self()
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
-
names
Required - A list of indices (or index name patterns) to which the permissions in this entry apply.API name:
names
Adds all elements of
list
tonames
. -
names
Required - A list of indices (or index name patterns) to which the permissions in this entry apply.API name:
names
Adds one or more values to
names
. -
allowRestrictedIndices
This needs to be set to true if the patterns in the names field should cover system indices.API name:
allow_restricted_indices
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ReplicationAccess.Builder>
-
build
Builds aReplicationAccess
.- Specified by:
build
in interfaceObjectBuilder<ReplicationAccess>
- Throws:
NullPointerException
- if some of the required fields are null.
-