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.Builderself()final Restriction.Builderworkflows(RestrictionWorkflow value, RestrictionWorkflow... values) Required - A list of workflows to which the API key is restricted.final Restriction.BuilderRequired - A list of workflows to which the API key is restricted.final Restriction.BuilderRequired - A list of workflows to which the API key is restricted.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
-
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:
workflowsAdds all elements of
listtoworkflows. -
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:
workflowsAdds one or more values to
workflows. -
workflows
public final Restriction.Builder workflows(RestrictionWorkflow value, RestrictionWorkflow... values) 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:
workflowsAdds one or more enum values to
workflows. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Restriction.Builder>
-
build
Builds aRestriction.- Specified by:
buildin interfaceObjectBuilder<Restriction>- Throws:
NullPointerException- if some of the required fields are null.
-