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 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.
    • AddContentRestriction

      protected AddContentRestriction()
  • Method Details

    • operation

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

      public 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.
    • operation

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

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