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