Record Class PublishRequest

java.lang.Object
java.lang.Record
io.papermc.fill.model.request.PublishRequest

@NullMarked public record PublishRequest(UUID id, String project, String family, String version, int build, Instant time, BuildChannel channel, List<Commit> commits, Map<String,Download> downloads) extends Record
  • Constructor Details

    • PublishRequest

      public PublishRequest(UUID id, String project, String family, String version, int build, Instant time, BuildChannel channel, List<Commit> commits, Map<String,Download> downloads)
      Creates an instance of a PublishRequest record class.
      Parameters:
      id - the value for the id record component
      project - the value for the project record component
      family - the value for the family record component
      version - the value for the version record component
      build - the value for the build record component
      time - the value for the time record component
      channel - the value for the channel record component
      commits - the value for the commits record component
      downloads - the value for the downloads record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • project

      public String project()
      Returns the value of the project record component.
      Returns:
      the value of the project record component
    • family

      public String family()
      Returns the value of the family record component.
      Returns:
      the value of the family record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • build

      public int build()
      Returns the value of the build record component.
      Returns:
      the value of the build record component
    • time

      public Instant time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component
    • channel

      public BuildChannel channel()
      Returns the value of the channel record component.
      Returns:
      the value of the channel record component
    • commits

      public List<Commit> commits()
      Returns the value of the commits record component.
      Returns:
      the value of the commits record component
    • downloads

      public Map<String,Download> downloads()
      Returns the value of the downloads record component.
      Returns:
      the value of the downloads record component