Class RoleMapping.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.security.RoleMapping.Builder
- All Implemented Interfaces:
CopyableBuilder<RoleMapping.Builder,,RoleMapping> MutableBuilder<RoleMapping.Builder,,RoleMapping> ObjectBuilder<RoleMapping>
- Enclosing class:
RoleMapping
public static class RoleMapping.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RoleMapping.Builder,RoleMapping>
Builder for
RoleMapping.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal RoleMapping.BuilderandBackendRoles(String value, String... values) API name:and_backend_rolesfinal RoleMapping.BuilderandBackendRoles(List<String> list) API name:and_backend_rolesfinal RoleMapping.BuilderbackendRoles(String value, String... values) API name:backend_rolesfinal RoleMapping.BuilderbackendRoles(List<String> list) API name:backend_rolesbuild()Builds aRoleMapping.copy()Create a new builderCopyableBuilderthat is a copy of this one.final RoleMapping.Builderdescription(String value) API name:descriptionfinal RoleMapping.BuilderAPI name:hiddenfinal RoleMapping.BuilderAPI name:hostsfinal RoleMapping.BuilderAPI name:hostsfinal RoleMapping.BuilderAPI name:reservedfinal RoleMapping.BuilderAPI name:usersfinal RoleMapping.BuilderAPI name:usersMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<RoleMapping.Builder,RoleMapping> - Returns:
- a new builder instance.
-
andBackendRoles
API name:and_backend_rolesAdds all elements of
listtoandBackendRoles. -
andBackendRoles
API name:and_backend_rolesAdds one or more values to
andBackendRoles. -
backendRoles
API name:backend_rolesAdds all elements of
listtobackendRoles. -
backendRoles
API name:backend_rolesAdds one or more values to
backendRoles. -
description
API name:description -
hosts
API name:hostsAdds all elements of
listtohosts. -
hosts
API name:hostsAdds one or more values to
hosts. -
reserved
API name:reserved -
users
API name:usersAdds all elements of
listtousers. -
users
API name:usersAdds one or more values to
users. -
build
Builds aRoleMapping.- Specified by:
buildin interfaceObjectBuilder<RoleMapping>- Throws:
NullPointerException- if some of the required fields are null.
-