Class CreatePermissionGrantOperationSpec

java.lang.Object
io.github.primelib.jira4j.restv3.spec.CreatePermissionGrantOperationSpec

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class CreatePermissionGrantOperationSpec extends Object
CreatePermissionGrantSpec

Specification for the CreatePermissionGrant operation.

Create permission grant

  • Field Details

    • VALIDATION_ENABLED

      @Experimental public static Boolean VALIDATION_ENABLED
      allows to disable validation of the spec, use with care!
  • Constructor Details

    • CreatePermissionGrantOperationSpec

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

      @Internal public CreatePermissionGrantOperationSpec(Long schemeId, PermissionGrant permissionGrant, String expand)
      Constructs a validated instance of CreatePermissionGrantOperationSpec.

      NOTE: This constructor is not considered stable and may change if the operation is updated.

      Parameters:
      schemeId - The ID of the permission scheme in which to create a new permission grant.
      permissionGrant - The permission grant to create.
      expand - Use expand to include additional information in the response. This parameter accepts a comma-separated list. Note that permissions are always included when you specify any value. Expand options include: * permissions Returns all permission grants for each permission scheme. * user Returns information about the user who is granted the permission. * group Returns information about the group that is granted the permission. * projectRole Returns information about the project role granted the permission. * field Returns information about the custom field granted the permission. * all Returns all expandable information.
    • CreatePermissionGrantOperationSpec

      protected CreatePermissionGrantOperationSpec()
  • Method Details

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Throws:
      NullPointerException
    • builder

    • schemeId

      @NotNull public @NotNull Long schemeId()
      The ID of the permission scheme in which to create a new permission grant.
    • permissionGrant

      @NotNull public @NotNull PermissionGrant permissionGrant()
      The permission grant to create.
    • expand

      @Nullable public @Nullable String expand()
      Use expand to include additional information in the response. This parameter accepts a comma-separated list. Note that permissions are always included when you specify any value. Expand options include: * permissions Returns all permission grants for each permission scheme. * user Returns information about the user who is granted the permission. * group Returns information about the group that is granted the permission. * projectRole Returns information about the project role granted the permission. * field Returns information about the custom field granted the permission. * all Returns all expandable information.
    • schemeId

      public CreatePermissionGrantOperationSpec schemeId(@NotNull @NotNull Long schemeId)
      The ID of the permission scheme in which to create a new permission grant.
      Returns:
      this.
    • permissionGrant

      public CreatePermissionGrantOperationSpec permissionGrant(@NotNull @NotNull PermissionGrant permissionGrant)
      The permission grant to create.
      Returns:
      this.
    • expand

      public CreatePermissionGrantOperationSpec expand(@Nullable @Nullable String expand)
      Use expand to include additional information in the response. This parameter accepts a comma-separated list. Note that permissions are always included when you specify any value. Expand options include: * permissions Returns all permission grants for each permission scheme. * user Returns information about the user who is granted the permission. * group Returns information about the group that is granted the permission. * projectRole Returns information about the project role granted the permission. * field Returns information about the custom field granted the permission. * all Returns all expandable information.
      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