Klasse AddRestrictionsOperationSpec

java.lang.Object
io.github.primelib.confluence4j.rest.v1.spec.AddRestrictionsOperationSpec

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class AddRestrictionsOperationSpec extends Object
AddRestrictionsSpec

Specification for the AddRestrictions operation.

Add restrictions

  • Felddetails

    • VALIDATION_ENABLED

      @Experimental public static Boolean VALIDATION_ENABLED
      allows to disable validation of the spec, use with care!
  • Konstruktordetails

    • AddRestrictionsOperationSpec

      @Internal public AddRestrictionsOperationSpec(Consumer<AddRestrictionsOperationSpec> spec)
      Constructs a validated instance of AddRestrictionsOperationSpec.
      Parameter:
      spec - the specification to process
    • AddRestrictionsOperationSpec

      @Internal public AddRestrictionsOperationSpec(String id, ContentRestrictionAddOrUpdateArray body, List<String> expand)
      Constructs a validated instance of AddRestrictionsOperationSpec.

      NOTE: This constructor is not considered stable and may change if the operation is updated.

      Parameter:
      id - The ID of the content to add restrictions to.
      body - The restrictions to be added to the content.
      expand - A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand. - restrictions.user returns the piece of content that the restrictions are applied to. Expanded by default. - restrictions.group returns the piece of content that the restrictions are applied to. Expanded by default. - content returns the piece of content that the restrictions are applied to.
    • AddRestrictionsOperationSpec

      protected AddRestrictionsOperationSpec()
  • Methodendetails

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Löst aus:
      NullPointerException
    • builder

    • id

      @NotNull public @NotNull String id()
      The ID of the content to add restrictions to.
    • body

      @NotNull public @NotNull ContentRestrictionAddOrUpdateArray body()
      The restrictions to be added to the content.
    • expand

      @Nullable public @Nullable List<String> expand()
      A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand. - restrictions.user returns the piece of content that the restrictions are applied to. Expanded by default. - restrictions.group returns the piece of content that the restrictions are applied to. Expanded by default. - content returns the piece of content that the restrictions are applied to.
    • id

      public AddRestrictionsOperationSpec id(@NotNull @NotNull String id)
      The ID of the content to add restrictions to.
      Gibt zurück:
      this.
    • body

      The restrictions to be added to the content.
      Gibt zurück:
      this.
    • expand

      public AddRestrictionsOperationSpec expand(@Nullable @Nullable List<String> expand)
      A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand. - restrictions.user returns the piece of content that the restrictions are applied to. Expanded by default. - restrictions.group returns the piece of content that the restrictions are applied to. Expanded by default. - content returns the piece of content that the restrictions are applied to.
      Gibt zurück:
      this.
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object