Class PermissionSubjectWithGroupId

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

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

The user or group that the permission applies to.

  • Field Details

    • type

      protected String type
    • identifier

      protected String identifier
      for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be ID of the group
  • Constructor Details

    • PermissionSubjectWithGroupId

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

      @Internal public PermissionSubjectWithGroupId(String type, String identifier)
      Constructs a validated instance of PermissionSubjectWithGroupId.

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

      Parameters:
      type - type
      identifier - for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be ID of the group
    • PermissionSubjectWithGroupId

      protected PermissionSubjectWithGroupId()
  • Method Details

    • type

      public String type()
    • identifier

      public String identifier()
      for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be ID of the group
    • type

      Returns:
      this.
    • identifier

      public PermissionSubjectWithGroupId identifier(String identifier)
      for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be 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