Class ContentRestrictionUpdate

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

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

    • operation

      protected String operation
      The restriction operation applied to content.
    • restrictions

      protected Restrictionsf477D3 restrictions
      The users/groups that the restrictions will be applied to. At least one of `user` or `group` must be specified for this object.
    • content

      protected Content content
      Base object for all content types. Representation of a blogpost (content)
  • Constructor Details

    • ContentRestrictionUpdate

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

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

      @Internal public ContentRestrictionUpdate(String operation, Restrictionsf477D3 restrictions, Content content)
      Constructs a validated instance of ContentRestrictionUpdate.

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

      Parameters:
      operation - The restriction operation applied to content.
      restrictions - The users/groups that the restrictions will be applied to. At least one of `user` or `group` must be specified for this object.
      content - Base object for all content types. Representation of a blogpost (content)
  • Method Details

    • operation

      public String operation()
      Fluent getter for operation.

      The restriction operation applied to content.

      Returns:
      operation
    • operation

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

      The restriction operation applied to content.

      Parameters:
      operation - operation
      Returns:
      this
    • getOperation

      public String getOperation()
      Gets the value of operation.

      The restriction operation applied to content.

      Returns:
      operation
    • setOperation

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

      The restriction operation applied to content.

      Parameters:
      operation - operation
    • restrictions

      public Restrictionsf477D3 restrictions()
      Fluent getter for restrictions.

      The users/groups that the restrictions will be applied to. At least one of `user` or `group` must be specified for this object.

      Returns:
      restrictions
    • restrictions

      public ContentRestrictionUpdate restrictions(Restrictionsf477D3 restrictions)
      Fluent setter for restrictions.

      The users/groups that the restrictions will be applied to. At least one of `user` or `group` must be specified for this object.

      Parameters:
      restrictions - restrictions
      Returns:
      this
    • getRestrictions

      public Restrictionsf477D3 getRestrictions()
      Gets the value of restrictions.

      The users/groups that the restrictions will be applied to. At least one of `user` or `group` must be specified for this object.

      Returns:
      restrictions
    • setRestrictions

      public void setRestrictions(Restrictionsf477D3 restrictions)
      Sets the value of restrictions.

      The users/groups that the restrictions will be applied to. At least one of `user` or `group` must be specified for this object.

      Parameters:
      restrictions - restrictions
    • content

      public Content content()
      Fluent getter for content.

      Base object for all content types. Representation of a blogpost (content)

      Returns:
      content
    • content

      public ContentRestrictionUpdate content(Content content)
      Fluent setter for content.

      Base object for all content types. Representation of a blogpost (content)

      Parameters:
      content - content
      Returns:
      this
    • getContent

      public Content getContent()
      Gets the value of content.

      Base object for all content types. Representation of a blogpost (content)

      Returns:
      content
    • setContent

      public void setContent(Content content)
      Sets the value of content.

      Base object for all content types. Representation of a blogpost (content)

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