Package org.apache.gravitino.dto
Class AuditDTO.Builder<S extends AuditDTO.Builder>
java.lang.Object
org.apache.gravitino.dto.AuditDTO.Builder<S>
- Type Parameters:
S
- The type of the builder instance.
- Enclosing class:
- AuditDTO
Builder class for constructing an AuditDTO instance.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds an instance of AuditDTO using the builder's properties.withCreateTime
(Instant createTime) Sets the create time for the audit.withCreator
(String creator) Sets the creator for the audit.withLastModifiedTime
(Instant lastModifiedTime) Sets the last modified time for the audit.withLastModifier
(String lastModifier) Sets who last modified the audit.
-
Field Details
-
creator
The creator of the audit. -
createTime
The create time for the audit. -
lastModifier
The last modifier of the audit. -
lastModifiedTime
The last modified time for the audit.
-
-
Method Details
-
withCreator
Sets the creator for the audit.- Parameters:
creator
- The creator of the audit.- Returns:
- The builder instance.
-
withCreateTime
Sets the create time for the audit.- Parameters:
createTime
- The create time of the audit.- Returns:
- The builder instance.
-
withLastModifier
Sets who last modified the audit.- Parameters:
lastModifier
- The last modifier of the audit.- Returns:
- The builder instance.
-
withLastModifiedTime
Sets the last modified time for the audit.- Parameters:
lastModifiedTime
- The last modified time of the audit.- Returns:
- The builder instance.
-
build
Builds an instance of AuditDTO using the builder's properties.- Returns:
- An instance of AuditDTO.
-