Class AddContentRestriction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe restriction operation applied to content.protected Restrictionsa50726The users/groups that the restrictions will be applied to. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.AddContentRestriction(String operation, Restrictionsa50726 restrictions) Constructs a validated instance ofAddContentRestriction.Constructs a validated instance ofAddContentRestriction. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the value of operation.Gets the value of restrictions.inthashCode()Fluent getter for operation.Fluent setter for operation.Fluent getter for restrictions.restrictions(Restrictionsa50726 restrictions) Fluent setter for restrictions.voidsetOperation(String operation) Sets the value of operation.voidsetRestrictions(Restrictionsa50726 restrictions) Sets the value of restrictions.toString()
-
Field Details
-
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.
-
-
Constructor Details
-
AddContentRestriction
Constructs a validated instance ofAddContentRestriction.- Parameters:
spec- the specification to process
-
AddContentRestriction
@Internal protected AddContentRestriction()Protected no-args constructor for use by serialization frameworks. -
AddContentRestriction
Constructs a validated instance ofAddContentRestriction.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
Fluent getter for operation.The restriction operation applied to content.
- Returns:
- operation
-
operation
Fluent setter for operation.The restriction operation applied to content.
- Parameters:
operation- operation- Returns:
- this
-
getOperation
Gets the value of operation.The restriction operation applied to content.
- Returns:
- operation
-
setOperation
Sets the value of operation.The restriction operation applied to content.
- Parameters:
operation- operation
-
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
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
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
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
-
hashCode
-
toString
-