java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.GroupItem

@Generated("io.github.primelib.primecodegen") public class GroupItem extends Object
GroupItem

A group that the restriction will be applied to.

  • Field Details

    • type

      protected String type
      Set to 'group'.
    • id

      protected String id
      The id of the group.
  • Constructor Details

    • GroupItem

      public GroupItem(Consumer<GroupItem> spec)
      Constructs a validated instance of GroupItem.
      Parameters:
      spec - the specification to process
    • GroupItem

      @Internal public GroupItem(String type, String id)
      Constructs a validated instance of GroupItem.

      NOTE: This constructor is not considered stable and may change if the model is updated. Consider using GroupItem(Consumer) instead.

      Parameters:
      type - Set to 'group'.
      id - The id of the group.
    • GroupItem

      protected GroupItem()
  • Method Details

    • type

      public String type()
      Set to 'group'.
    • id

      public String id()
      The id of the group.
    • type

      public GroupItem type(String type)
      Set to 'group'.
      Returns:
      this.
    • id

      public GroupItem id(String id)
      The id of the group.
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object