Class ContentPermissionRequest

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

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

This object represents the request for the content permission check API.

  • Field Details

    • subject

      protected PermissionSubjectWithGroupId subject
      The user or group that the permission applies to.
    • operation

      protected String operation
      The content permission operation to check.
  • Constructor Details

    • ContentPermissionRequest

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

      @Internal protected ContentPermissionRequest()
      Protected no-args constructor for use by serialization frameworks.
    • ContentPermissionRequest

      @Internal public ContentPermissionRequest(PermissionSubjectWithGroupId subject, String operation)
      Constructs a validated instance of ContentPermissionRequest.

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

      Parameters:
      subject - The user or group that the permission applies to.
      operation - The content permission operation to check.
  • Method Details

    • subject

      public PermissionSubjectWithGroupId subject()
      Fluent getter for subject.

      The user or group that the permission applies to.

      Returns:
      subject
    • subject

      Fluent setter for subject.

      The user or group that the permission applies to.

      Parameters:
      subject - subject
      Returns:
      this
    • getSubject

      public PermissionSubjectWithGroupId getSubject()
      Gets the value of subject.

      The user or group that the permission applies to.

      Returns:
      subject
    • setSubject

      public void setSubject(PermissionSubjectWithGroupId subject)
      Sets the value of subject.

      The user or group that the permission applies to.

      Parameters:
      subject - subject
    • operation

      public String operation()
      Fluent getter for operation.

      The content permission operation to check.

      Returns:
      operation
    • operation

      public ContentPermissionRequest operation(String operation)
      Fluent setter for operation.

      The content permission operation to check.

      Parameters:
      operation - operation
      Returns:
      this
    • getOperation

      public String getOperation()
      Gets the value of operation.

      The content permission operation to check.

      Returns:
      operation
    • setOperation

      public void setOperation(String operation)
      Sets the value of operation.

      The content permission operation to check.

      Parameters:
      operation - operation
    • 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