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 SummaryConstructors
- 
Method SummaryModifier 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.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
workflowsRequired - 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.
- 
workflowsRequired - 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.
- 
workflowspublic 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 class- WithJsonObjectBuilderBase<Restriction.Builder>
 
- 
buildBuilds aRestriction.- Specified by:
- buildin interface- ObjectBuilder<Restriction>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-