Package io.milvus.param.role
Class SelectGrantForRoleParam.Builder
- java.lang.Object
-
- io.milvus.param.role.SelectGrantForRoleParam.Builder
-
- Enclosing class:
- SelectGrantForRoleParam
public static final class SelectGrantForRoleParam.Builder extends Object
Builder forSelectGrantForRoleParamclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectGrantForRoleParambuild()Verifies parameters and creates a newSelectGrantForRoleParaminstance.SelectGrantForRoleParam.BuilderwithDatabaseName(String databaseName)Sets the database name.SelectGrantForRoleParam.BuilderwithRoleName(@NonNull String roleName)Sets the roleName.
-
-
-
Method Detail
-
withDatabaseName
public SelectGrantForRoleParam.Builder withDatabaseName(String databaseName)
Sets the database name. database name can be nil.- Parameters:
databaseName- database name- Returns:
Builder
-
withRoleName
public SelectGrantForRoleParam.Builder withRoleName(@NonNull @NonNull String roleName)
Sets the roleName. RoleName cannot be empty or null.- Parameters:
roleName- roleName- Returns:
Builder
-
build
public SelectGrantForRoleParam build() throws ParamException
Verifies parameters and creates a newSelectGrantForRoleParaminstance.- Returns:
SelectGrantForRoleParam- Throws:
ParamException
-
-