Class ProjectRole

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

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

    • actors

      protected List<RoleActor> actors
      The list of users who act in this role.
    • admin

      protected Boolean admin
      Whether this role is the admin role for the project.
    • currentUserRole

      protected Boolean currentUserRole
      Whether the calling user is part of this role.
    • _default

      protected Boolean _default
      Whether this role is the default role for the project
    • description

      protected String description
      The description of the project role.
    • id

      protected Long id
      The ID of the project role.
    • name

      protected String name
      The name of the project role.
    • roleConfigurable

      protected Boolean roleConfigurable
      Whether the roles are configurable for this project.
    • scope

      protected ProjectRoleScope scope
    • self

      protected URI self
      The URL the project role details.
    • translatedName

      protected String translatedName
      The translated name of the project role.
  • Constructor Details

    • ProjectRole

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

      @Internal public ProjectRole(List<RoleActor> actors, Boolean admin, Boolean currentUserRole, Boolean _default, String description, Long id, String name, Boolean roleConfigurable, ProjectRoleScope scope, URI self, String translatedName)
      Constructs a validated instance of ProjectRole.

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

      Parameters:
      actors - The list of users who act in this role.
      admin - Whether this role is the admin role for the project.
      currentUserRole - Whether the calling user is part of this role.
      _default - Whether this role is the default role for the project
      description - The description of the project role.
      id - The ID of the project role.
      name - The name of the project role.
      roleConfigurable - Whether the roles are configurable for this project.
      scope - scope
      self - The URL the project role details.
      translatedName - The translated name of the project role.
    • ProjectRole

      protected ProjectRole()
  • Method Details

    • builder

      public static ProjectRole.ProjectRoleBuilder builder()
    • actors

      public List<RoleActor> actors()
      The list of users who act in this role.
    • admin

      public Boolean admin()
      Whether this role is the admin role for the project.
    • currentUserRole

      public Boolean currentUserRole()
      Whether the calling user is part of this role.
    • _default

      public Boolean _default()
      Whether this role is the default role for the project
    • description

      public String description()
      The description of the project role.
    • id

      public Long id()
      The ID of the project role.
    • name

      public String name()
      The name of the project role.
    • roleConfigurable

      public Boolean roleConfigurable()
      Whether the roles are configurable for this project.
    • scope

      public ProjectRoleScope scope()
    • self

      public URI self()
      The URL the project role details.
    • translatedName

      public String translatedName()
      The translated name of the project role.
    • actors

      public ProjectRole actors(List<RoleActor> actors)
      The list of users who act in this role.
      Returns:
      this.
    • admin

      public ProjectRole admin(Boolean admin)
      Whether this role is the admin role for the project.
      Returns:
      this.
    • currentUserRole

      public ProjectRole currentUserRole(Boolean currentUserRole)
      Whether the calling user is part of this role.
      Returns:
      this.
    • _default

      public ProjectRole _default(Boolean _default)
      Whether this role is the default role for the project
      Returns:
      this.
    • description

      public ProjectRole description(String description)
      The description of the project role.
      Returns:
      this.
    • id

      public ProjectRole id(Long id)
      The ID of the project role.
      Returns:
      this.
    • name

      public ProjectRole name(String name)
      The name of the project role.
      Returns:
      this.
    • roleConfigurable

      public ProjectRole roleConfigurable(Boolean roleConfigurable)
      Whether the roles are configurable for this project.
      Returns:
      this.
    • scope

      public ProjectRole scope(ProjectRoleScope scope)
      Returns:
      this.
    • self

      public ProjectRole self(URI self)
      The URL the project role details.
      Returns:
      this.
    • translatedName

      public ProjectRole translatedName(String translatedName)
      The translated name of the project role.
      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