Package io.milvus.param.role
Class GrantRolePrivilegeParam.Builder
java.lang.Object
io.milvus.param.role.GrantRolePrivilegeParam.Builder
- Enclosing class:
GrantRolePrivilegeParam
Builder for
GrantRolePrivilegeParam class.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Verifies parameters and creates a newGrantRolePrivilegeParaminstance.withDatabaseName(String databaseName) Sets the databaseName.withObject(@NonNull String object) Sets the object.withObjectName(@NonNull String objectName) Sets the objectName.withPrivilege(@NonNull String privilege) Sets the privilege.withRoleName(@NonNull String roleName) Sets the roleName.
-
Method Details
-
withDatabaseName
Sets the databaseName. databaseName cannot be null.- Parameters:
databaseName- databaseName- Returns:
Builder
-
withRoleName
Sets the roleName. RoleName cannot be empty or null.- Parameters:
roleName- roleName- Returns:
Builder
-
withObject
Sets the object. object cannot be empty or null.- Parameters:
object- object- Returns:
Builder
-
withObjectName
Sets the objectName. objectName cannot be empty or null.- Parameters:
objectName- objectName- Returns:
Builder
-
withPrivilege
Sets the privilege. privilege cannot be empty or null.- Parameters:
privilege- privilege- Returns:
Builder
-
build
Verifies parameters and creates a newGrantRolePrivilegeParaminstance.- Returns:
GrantRolePrivilegeParam- Throws:
ParamException
-