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.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:
namesAdds all elements of
listtonames. -
names
Required - A list of indices (or index name patterns) to which the permissions in this entry apply.API name:
namesAdds 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:
selfin classWithJsonObjectBuilderBase<ReplicationAccess.Builder>
-
build
Builds aReplicationAccess.- Specified by:
buildin interfaceObjectBuilder<ReplicationAccess>- Throws:
NullPointerException- if some of the required fields are null.
-