Package io.milvus.param.role
Class GrantRolePrivilegeParam.Builder
- java.lang.Object
-
- io.milvus.param.role.GrantRolePrivilegeParam.Builder
-
- Enclosing class:
- GrantRolePrivilegeParam
public static final class GrantRolePrivilegeParam.Builder extends Object
Builder forGrantRolePrivilegeParamclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrantRolePrivilegeParambuild()Verifies parameters and creates a newGrantRolePrivilegeParaminstance.GrantRolePrivilegeParam.BuilderwithDatabaseName(String databaseName)Sets the databaseName.GrantRolePrivilegeParam.BuilderwithObject(@NonNull String object)Sets the object.GrantRolePrivilegeParam.BuilderwithObjectName(@NonNull String objectName)Sets the objectName.GrantRolePrivilegeParam.BuilderwithPrivilege(@NonNull String privilege)Sets the privilege.GrantRolePrivilegeParam.BuilderwithRoleName(@NonNull String roleName)Sets the roleName.
-
-
-
Method Detail
-
withDatabaseName
public GrantRolePrivilegeParam.Builder withDatabaseName(String databaseName)
Sets the databaseName. databaseName cannot be null.- Parameters:
databaseName- databaseName- Returns:
Builder
-
withRoleName
public GrantRolePrivilegeParam.Builder withRoleName(@NonNull @NonNull String roleName)
Sets the roleName. RoleName cannot be empty or null.- Parameters:
roleName- roleName- Returns:
Builder
-
withObject
public GrantRolePrivilegeParam.Builder withObject(@NonNull @NonNull String object)
Sets the object. object cannot be empty or null.- Parameters:
object- object- Returns:
Builder
-
withObjectName
public GrantRolePrivilegeParam.Builder withObjectName(@NonNull @NonNull String objectName)
Sets the objectName. objectName cannot be empty or null.- Parameters:
objectName- objectName- Returns:
Builder
-
withPrivilege
public GrantRolePrivilegeParam.Builder withPrivilege(@NonNull @NonNull String privilege)
Sets the privilege. privilege cannot be empty or null.- Parameters:
privilege- privilege- Returns:
Builder
-
build
public GrantRolePrivilegeParam build() throws ParamException
Verifies parameters and creates a newGrantRolePrivilegeParaminstance.- Returns:
GrantRolePrivilegeParam- Throws:
ParamException
-
-