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 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)
    • ContentRestrictionUpdate

      protected ContentRestrictionUpdate()
  • Method Details

    • operation

      public String operation()
      The restriction operation applied to content.
    • restrictions

      public 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

      public Content content()
      Base object for all content types. Representation of a blogpost (content)
    • operation

      public ContentRestrictionUpdate operation(String operation)
      The restriction operation applied to content.
      Returns:
      this.
    • restrictions

      public ContentRestrictionUpdate restrictions(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.
      Returns:
      this.
    • content

      public ContentRestrictionUpdate content(Content content)
      Base object for all content types. Representation of a blogpost (content)
      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