Class AddContentRestriction

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

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

    • operation

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

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

    • AddContentRestriction

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

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

      @Internal public AddContentRestriction(String operation, Restrictionsa50726 restrictions)
      Constructs a validated instance of AddContentRestriction.

      NOTE: This constructor is not considered stable and may change if the model is updated. Consider using AddContentRestriction(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.
  • Method Details

    • operation

      public String operation()
      Fluent getter for operation.

      The restriction operation applied to content.

      Returns:
      operation
    • operation

      public AddContentRestriction 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 Restrictionsa50726 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 AddContentRestriction restrictions(Restrictionsa50726 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 Restrictionsa50726 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(Restrictionsa50726 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
    • 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