java.lang.Object
java.lang.Record
com.mohamnag.jstatic.plugins.storyblok_loader.model.Story

public record Story(String name, Instant created_at, Instant published_at, Long id, UUID uuid, Map<String,Object> content, String slug, String full_slug, Instant sort_by_date, Long position, List<String> tag_list, Boolean is_startpage, Long parent_id, Map<String,Object> meta_data, UUID group_id, Instant first_published_at, String release_id, String lang, String path, List<String> alternates, String default_full_slug, String translated_slugs) extends Record
  • Constructor Details

    • Story

      public Story(String name, Instant created_at, Instant published_at, Long id, UUID uuid, Map<String,Object> content, String slug, String full_slug, Instant sort_by_date, Long position, List<String> tag_list, Boolean is_startpage, Long parent_id, Map<String,Object> meta_data, UUID group_id, Instant first_published_at, String release_id, String lang, String path, List<String> alternates, String default_full_slug, String translated_slugs)
      Creates an instance of a Story record class.
      Parameters:
      name - the value for the name record component
      created_at - the value for the created_at record component
      published_at - the value for the published_at record component
      id - the value for the id record component
      uuid - the value for the uuid record component
      content - the value for the content record component
      slug - the value for the slug record component
      full_slug - the value for the full_slug record component
      sort_by_date - the value for the sort_by_date record component
      position - the value for the position record component
      tag_list - the value for the tag_list record component
      is_startpage - the value for the is_startpage record component
      parent_id - the value for the parent_id record component
      meta_data - the value for the meta_data record component
      group_id - the value for the group_id record component
      first_published_at - the value for the first_published_at record component
      release_id - the value for the release_id record component
      lang - the value for the lang record component
      path - the value for the path record component
      alternates - the value for the alternates record component
      default_full_slug - the value for the default_full_slug record component
      translated_slugs - the value for the translated_slugs 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • created_at

      public Instant created_at()
      Returns the value of the created_at record component.
      Returns:
      the value of the created_at record component
    • published_at

      public Instant published_at()
      Returns the value of the published_at record component.
      Returns:
      the value of the published_at record component
    • id

      public Long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • uuid

      public UUID uuid()
      Returns the value of the uuid record component.
      Returns:
      the value of the uuid record component
    • content

      public Map<String,Object> content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component
    • slug

      public String slug()
      Returns the value of the slug record component.
      Returns:
      the value of the slug record component
    • full_slug

      public String full_slug()
      Returns the value of the full_slug record component.
      Returns:
      the value of the full_slug record component
    • sort_by_date

      public Instant sort_by_date()
      Returns the value of the sort_by_date record component.
      Returns:
      the value of the sort_by_date record component
    • position

      public Long position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component
    • tag_list

      public List<String> tag_list()
      Returns the value of the tag_list record component.
      Returns:
      the value of the tag_list record component
    • is_startpage

      public Boolean is_startpage()
      Returns the value of the is_startpage record component.
      Returns:
      the value of the is_startpage record component
    • parent_id

      public Long parent_id()
      Returns the value of the parent_id record component.
      Returns:
      the value of the parent_id record component
    • meta_data

      public Map<String,Object> meta_data()
      Returns the value of the meta_data record component.
      Returns:
      the value of the meta_data record component
    • group_id

      public UUID group_id()
      Returns the value of the group_id record component.
      Returns:
      the value of the group_id record component
    • first_published_at

      public Instant first_published_at()
      Returns the value of the first_published_at record component.
      Returns:
      the value of the first_published_at record component
    • release_id

      public String release_id()
      Returns the value of the release_id record component.
      Returns:
      the value of the release_id record component
    • lang

      public String lang()
      Returns the value of the lang record component.
      Returns:
      the value of the lang record component
    • path

      public String path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • alternates

      public List<String> alternates()
      Returns the value of the alternates record component.
      Returns:
      the value of the alternates record component
    • default_full_slug

      public String default_full_slug()
      Returns the value of the default_full_slug record component.
      Returns:
      the value of the default_full_slug record component
    • translated_slugs

      public String translated_slugs()
      Returns the value of the translated_slugs record component.
      Returns:
      the value of the translated_slugs record component