Class CredentialDTO.Builder
java.lang.Object
org.apache.gravitino.dto.credential.CredentialDTO.Builder
- Enclosing class:
- CredentialDTO
Builder class for constructing CredentialDTO instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withCredentialInfo
(Map<String, String> credentialInfo) Sets the credential information.withCredentialType
(String credentialType) Sets the credential type.withExpireTimeInMs
(long expireTimeInMs) Sets the credential expire time.
-
Method Details
-
withCredentialType
Sets the credential type.- Parameters:
credentialType
- The specific credential type.- Returns:
- The builder instance.
-
withExpireTimeInMs
Sets the credential expire time.- Parameters:
expireTimeInMs
- The credential expire time.- Returns:
- The builder instance.
-
withCredentialInfo
Sets the credential information.- Parameters:
credentialInfo
- The specific credential information map.- Returns:
- The builder instance.
-
build
- Returns:
- The constructed credential DTO.
-