Class Restriction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Restriction.Builder>
co.elastic.clients.elasticsearch.security.Restriction.Builder
- All Implemented Interfaces:
WithJson<Restriction.Builder>
,ObjectBuilder<Restriction>
- Enclosing class:
- Restriction
public static class Restriction.Builder
extends WithJsonObjectBuilderBase<Restriction.Builder>
implements ObjectBuilder<Restriction>
Builder for
Restriction
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aRestriction
.protected Restriction.Builder
self()
final Restriction.Builder
Required - A list of workflows to which the API key is restricted.final Restriction.Builder
Required - A list of workflows to which the API key is restricted.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
-
workflows
Required - A list of workflows to which the API key is restricted. NOTE: In order to use a role restriction, an API key must be created with a single role descriptor.API name:
workflows
Adds all elements of
list
toworkflows
. -
workflows
Required - A list of workflows to which the API key is restricted. NOTE: In order to use a role restriction, an API key must be created with a single role descriptor.API name:
workflows
Adds one or more values to
workflows
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Restriction.Builder>
-
build
Builds aRestriction
.- Specified by:
build
in interfaceObjectBuilder<Restriction>
- Throws:
NullPointerException
- if some of the required fields are null.
-