Class RoleDescriptor.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.get_service_accounts.RoleDescriptor.Builder
- All Implemented Interfaces:
ObjectBuilder<RoleDescriptor>
- Enclosing class:
- RoleDescriptor
public static class RoleDescriptor.Builder extends java.lang.Object implements ObjectBuilder<RoleDescriptor>
Builder for
RoleDescriptor.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RoleDescriptor.BuilderaddApplications(ApplicationPrivileges value)Add a value toapplications(List), creating the list if needed.RoleDescriptor.BuilderaddApplications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)Add a value toapplications(List), creating the list if needed.RoleDescriptor.BuilderaddCluster(java.lang.String value)Add a value tocluster(List), creating the list if needed.RoleDescriptor.BuilderaddGlobal(GlobalPrivilege value)Add a value toglobal(List), creating the list if needed.RoleDescriptor.BuilderaddGlobal(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)Add a value toglobal(List), creating the list if needed.RoleDescriptor.BuilderaddIndices(IndicesPrivileges value)Add a value toindices(List), creating the list if needed.RoleDescriptor.BuilderaddIndices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)Add a value toindices(List), creating the list if needed.RoleDescriptor.BuilderaddRunAs(java.lang.String value)Add a value torunAs(List), creating the list if needed.RoleDescriptor.Builderapplications(ApplicationPrivileges... value)API name:applicationsRoleDescriptor.Builderapplications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)Setapplications(List)to a singleton list.RoleDescriptor.Builderapplications(java.util.List<ApplicationPrivileges> value)API name:applicationsRoleDescriptorbuild()Builds aRoleDescriptor.RoleDescriptor.Buildercluster(java.lang.String... value)Required - API name:clusterRoleDescriptor.Buildercluster(java.util.List<java.lang.String> value)Required - API name:clusterRoleDescriptor.Builderglobal(GlobalPrivilege... value)API name:globalRoleDescriptor.Builderglobal(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)Setglobal(List)to a singleton list.RoleDescriptor.Builderglobal(java.util.List<GlobalPrivilege> value)API name:globalRoleDescriptor.Builderindices(IndicesPrivileges... value)Required - API name:indicesRoleDescriptor.Builderindices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)Setindices(List)to a singleton list.RoleDescriptor.Builderindices(java.util.List<IndicesPrivileges> value)Required - API name:indicesRoleDescriptor.Buildermetadata(java.util.Map<java.lang.String,JsonData> value)API name:metadataRoleDescriptor.BuilderputMetadata(java.lang.String key, JsonData value)Add a key/value tometadata(Map), creating the map if needed.RoleDescriptor.BuilderputTransientMetadata(java.lang.String key, JsonData value)Add a key/value totransientMetadata(Map), creating the map if needed.RoleDescriptor.BuilderrunAs(java.lang.String... value)API name:run_asRoleDescriptor.BuilderrunAs(java.util.List<java.lang.String> value)API name:run_asRoleDescriptor.BuildertransientMetadata(java.util.Map<java.lang.String,JsonData> value)API name:transient_metadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cluster
Required - API name:cluster -
cluster
Required - API name:cluster -
addCluster
Add a value tocluster(List), creating the list if needed. -
indices
Required - API name:indices -
indices
Required - API name:indices -
addIndices
Add a value toindices(List), creating the list if needed. -
indices
public RoleDescriptor.Builder indices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)Setindices(List)to a singleton list. -
addIndices
public RoleDescriptor.Builder addIndices(java.util.function.Function<IndicesPrivileges.Builder,ObjectBuilder<IndicesPrivileges>> fn)Add a value toindices(List), creating the list if needed. -
global
API name:global -
global
API name:global -
addGlobal
Add a value toglobal(List), creating the list if needed. -
global
public RoleDescriptor.Builder global(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)Setglobal(List)to a singleton list. -
addGlobal
public RoleDescriptor.Builder addGlobal(java.util.function.Function<GlobalPrivilege.Builder,ObjectBuilder<GlobalPrivilege>> fn)Add a value toglobal(List), creating the list if needed. -
applications
API name:applications -
applications
API name:applications -
addApplications
Add a value toapplications(List), creating the list if needed. -
applications
public RoleDescriptor.Builder applications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)Setapplications(List)to a singleton list. -
addApplications
public RoleDescriptor.Builder addApplications(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)Add a value toapplications(List), creating the list if needed. -
metadata
API name:metadata -
putMetadata
Add a key/value tometadata(Map), creating the map if needed. -
runAs
API name:run_as -
runAs
API name:run_as -
addRunAs
Add a value torunAs(List), creating the list if needed. -
transientMetadata
public RoleDescriptor.Builder transientMetadata(@Nullable java.util.Map<java.lang.String,JsonData> value)API name:transient_metadata -
putTransientMetadata
Add a key/value totransientMetadata(Map), creating the map if needed. -
build
Builds aRoleDescriptor.- Specified by:
buildin interfaceObjectBuilder<RoleDescriptor>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-