Package io.milvus.param.role
Class SelectGrantForRoleAndObjectParam.Builder
java.lang.Object
io.milvus.param.role.SelectGrantForRoleAndObjectParam.Builder
- Enclosing class:
SelectGrantForRoleAndObjectParam
Builder for
SelectGrantForRoleAndObjectParam class.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Verifies parameters and creates a newSelectGrantForRoleAndObjectParaminstance.withObject(@NonNull String object) Sets the object.withObjectName(@NonNull String objectName) Sets the objectName.withRoleName(@NonNull String roleName) Sets the roleName.
-
Method Details
-
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
-
build
Verifies parameters and creates a newSelectGrantForRoleAndObjectParaminstance.- Returns:
SelectGrantForRoleAndObjectParam- Throws:
ParamException
-