Class BaseDTO.Builder<T extends BaseDTO.Builder>

java.lang.Object
com.netflix.genie.common.dto.BaseDTO.Builder<T>
Type Parameters:
T - Type of builder that extends this
Direct Known Subclasses:
CommonDTO.Builder, JobExecution.Builder, JobMetadata.Builder
Enclosing class:
BaseDTO

public abstract static class BaseDTO.Builder<T extends BaseDTO.Builder> extends Object
Builder pattern to save constructor arguments.
Since:
3.0.0
  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • withId

      public T withId(@Nullable String id)
      Set the id for the resource.
      Parameters:
      id - The id
      Returns:
      The builder
    • withCreated

      public T withCreated(@Nullable Instant created)
      Set the created time for the resource.
      Parameters:
      created - The created time
      Returns:
      The builder
    • withUpdated

      public T withUpdated(@Nullable Instant updated)
      Set the updated time for the resource.
      Parameters:
      updated - The updated time
      Returns:
      The builder