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

public static class AuditDTO.Builder<S extends AuditDTO.Builder> extends Object
Builder class for constructing an AuditDTO instance.
  • Field Details

    • creator

      protected String creator
      The creator of the audit.
    • createTime

      protected Instant createTime
      The create time for the audit.
    • lastModifier

      protected String lastModifier
      The last modifier of the audit.
    • lastModifiedTime

      protected Instant lastModifiedTime
      The last modified time for the audit.
  • Method Details

    • withCreator

      public S withCreator(String creator)
      Sets the creator for the audit.
      Parameters:
      creator - The creator of the audit.
      Returns:
      The builder instance.
    • withCreateTime

      public S withCreateTime(Instant createTime)
      Sets the create time for the audit.
      Parameters:
      createTime - The create time of the audit.
      Returns:
      The builder instance.
    • withLastModifier

      public S withLastModifier(String lastModifier)
      Sets who last modified the audit.
      Parameters:
      lastModifier - The last modifier of the audit.
      Returns:
      The builder instance.
    • withLastModifiedTime

      public S withLastModifiedTime(Instant lastModifiedTime)
      Sets the last modified time for the audit.
      Parameters:
      lastModifiedTime - The last modified time of the audit.
      Returns:
      The builder instance.
    • build

      public AuditDTO build()
      Builds an instance of AuditDTO using the builder's properties.
      Returns:
      An instance of AuditDTO.