Class SharePermission

java.lang.Object
io.github.primelib.jira4j.restv3.model.SharePermission

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class SharePermission extends Object
SharePermission
  • Field Details

    • group

      protected GroupName group
    • id

      protected Long id
      The unique identifier of the share permission.
    • project

      protected Project project
    • role

      protected ProjectRole role
    • type

      protected SharePermission.TypeEnum type
      The type of share permission: * user Shared with a user. * group Shared with a group. If set in a request, then specify sharePermission.group as well. * project Shared with a project. If set in a request, then specify sharePermission.project as well. * projectRole Share with a project role in a project. This value is not returned in responses. It is used in requests, where it needs to be specify with projectId and projectRoleId. * global Shared globally. If set in a request, no other sharePermission properties need to be specified. * loggedin Shared with all logged-in users. Note: This value is set in a request by specifying authenticated as the type. * project-unknown Shared with a project that the user does not have access to. Cannot be set in a request.
    • user

      protected UserBean user
  • Constructor Details

    • SharePermission

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

      @Internal public SharePermission(GroupName group, Long id, Project project, ProjectRole role, SharePermission.TypeEnum type, UserBean user)
      Constructs a validated instance of SharePermission.

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

      Parameters:
      group - group
      id - The unique identifier of the share permission.
      project - project
      role - role
      type - The type of share permission: * user Shared with a user. * group Shared with a group. If set in a request, then specify sharePermission.group as well. * project Shared with a project. If set in a request, then specify sharePermission.project as well. * projectRole Share with a project role in a project. This value is not returned in responses. It is used in requests, where it needs to be specify with projectId and projectRoleId. * global Shared globally. If set in a request, no other sharePermission properties need to be specified. * loggedin Shared with all logged-in users. Note: This value is set in a request by specifying authenticated as the type. * project-unknown Shared with a project that the user does not have access to. Cannot be set in a request.
      user - user
    • SharePermission

      protected SharePermission()
  • Method Details

    • builder

      public static SharePermission.SharePermissionBuilder builder()
    • group

      public GroupName group()
    • id

      public Long id()
      The unique identifier of the share permission.
    • project

      public Project project()
    • role

      public ProjectRole role()
    • type

      public SharePermission.TypeEnum type()
      The type of share permission: * user Shared with a user. * group Shared with a group. If set in a request, then specify sharePermission.group as well. * project Shared with a project. If set in a request, then specify sharePermission.project as well. * projectRole Share with a project role in a project. This value is not returned in responses. It is used in requests, where it needs to be specify with projectId and projectRoleId. * global Shared globally. If set in a request, no other sharePermission properties need to be specified. * loggedin Shared with all logged-in users. Note: This value is set in a request by specifying authenticated as the type. * project-unknown Shared with a project that the user does not have access to. Cannot be set in a request.
    • user

      public UserBean user()
    • group

      public SharePermission group(GroupName group)
      Returns:
      this.
    • id

      public SharePermission id(Long id)
      The unique identifier of the share permission.
      Returns:
      this.
    • project

      public SharePermission project(Project project)
      Returns:
      this.
    • role

      public SharePermission role(ProjectRole role)
      Returns:
      this.
    • type

      The type of share permission: * user Shared with a user. * group Shared with a group. If set in a request, then specify sharePermission.group as well. * project Shared with a project. If set in a request, then specify sharePermission.project as well. * projectRole Share with a project role in a project. This value is not returned in responses. It is used in requests, where it needs to be specify with projectId and projectRoleId. * global Shared globally. If set in a request, no other sharePermission properties need to be specified. * loggedin Shared with all logged-in users. Note: This value is set in a request by specifying authenticated as the type. * project-unknown Shared with a project that the user does not have access to. Cannot be set in a request.
      Returns:
      this.
    • user

      public SharePermission user(UserBean user)
      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