Class GroupItem

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 protected GroupItem()
      Protected no-args constructor for use by serialization frameworks.
    • 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.
  • Method Details

    • type

      public String type()
      Fluent getter for type.

      Set to 'group'.

      Returns:
      type
    • type

      public GroupItem type(String type)
      Fluent setter for type.

      Set to 'group'.

      Parameters:
      type - type
      Returns:
      this
    • getType

      public String getType()
      Gets the value of type.

      Set to 'group'.

      Returns:
      type
    • setType

      public void setType(String type)
      Sets the value of type.

      Set to 'group'.

      Parameters:
      type - type
    • id

      public String id()
      Fluent getter for id.

      The id of the group.

      Returns:
      id
    • id

      public GroupItem id(String id)
      Fluent setter for id.

      The id of the group.

      Parameters:
      id - id
      Returns:
      this
    • getId

      public String getId()
      Gets the value of id.

      The id of the group.

      Returns:
      id
    • setId

      public void setId(String id)
      Sets the value of id.

      The id of the group.

      Parameters:
      id - id
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object