Package io.milvus.param.credential
Class UpdateCredentialParam.Builder
java.lang.Object
io.milvus.param.credential.UpdateCredentialParam.Builder
- Enclosing class:
UpdateCredentialParam
Builder for
UpdateCredentialParam class.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Verifies parameters and creates a newUpdateCredentialParaminstance.withNewPassword(@NonNull String password) Sets the new password.withOldPassword(@NonNull String password) Sets the old password.withUsername(@NonNull String username) Sets the username.
-
Method Details
-
withUsername
Sets the username. Username cannot be empty or null.- Parameters:
username- username- Returns:
Builder
-
withOldPassword
Sets the old password. Old password cannot be empty or null.- Parameters:
password- old password- Returns:
Builder
-
withNewPassword
Sets the new password. New password cannot be empty or null.- Parameters:
password- password- Returns:
Builder
-
build
Verifies parameters and creates a newUpdateCredentialParaminstance.- Returns:
UpdateCredentialParam- Throws:
ParamException
-