Class EppResource.Builder<T extends EppResource,B extends EppResource.Builder<T,B>>

Direct Known Subclasses:
ContactBase.Builder, DomainBase.Builder, HostBase.Builder
Enclosing class:
EppResource

public abstract static class EppResource.Builder<T extends EppResource,B extends EppResource.Builder<T,B>> extends Buildable.GenericBuilder<T,B>
Abstract builder for EppResource types.
  • Constructor Details Link icon

  • Method Details Link icon

    • setCreationTime Link icon

      public B setCreationTime(org.joda.time.DateTime creationTime)
      Set the time this resource was created.

      Note: This can only be used if the creation time hasn't already been set, which it is in normal EPP flows.

    • setCreationTimeForTest Link icon

      public B setCreationTimeForTest(org.joda.time.DateTime creationTime)
      Set the time this resource was created. Should only be used in tests.
    • setDeletionTime Link icon

      public B setDeletionTime(org.joda.time.DateTime deletionTime)
      Set the time after which this resource should be considered deleted.
    • setPersistedCurrentSponsorRegistrarId Link icon

      public B setPersistedCurrentSponsorRegistrarId(String currentSponsorRegistrarId)
      Set the current sponsoring registrar.
    • setCreationRegistrarId Link icon

      public B setCreationRegistrarId(String creationRegistrarId)
      Set the registrar that created this resource.
    • setLastEppUpdateTime Link icon

      public B setLastEppUpdateTime(org.joda.time.DateTime lastEppUpdateTime)
      Set the time when a <update> was performed on this resource.
    • setLastEppUpdateRegistrarId Link icon

      public B setLastEppUpdateRegistrarId(String lastEppUpdateRegistrarId)
      Set the registrar who last performed a <update> on this resource.
    • setStatusValues Link icon

      public B setStatusValues(com.google.common.collect.ImmutableSet<StatusValue> statusValues)
      Set this resource's status values.
    • addStatusValue Link icon

      public B addStatusValue(StatusValue statusValue)
      Add to this resource's status values.
    • removeStatusValue Link icon

      public B removeStatusValue(StatusValue statusValue)
      Remove from this resource's status values.
    • addStatusValues Link icon

      public B addStatusValues(com.google.common.collect.ImmutableSet<StatusValue> statusValues)
      Add to this resource's status values.
    • removeStatusValues Link icon

      public B removeStatusValues(com.google.common.collect.ImmutableSet<StatusValue> statusValues)
      Remove from this resource's status values.
    • setRepoId Link icon

      public B setRepoId(String repoId)
      Set this resource's repoId.
    • setUpdateTimestamp Link icon

      public B setUpdateTimestamp(UpdateAutoTimestamp updateTimestamp)
      Set the update timestamp.

      This is provided at EppResource since UpdateAutoTimestampEntity doesn't have a Builder.

    • build Link icon

      public T build()
      Build the resource, nullifying empty strings and sets and setting defaults.
      Overrides:
      build in class Buildable.Builder<T extends EppResource>