Klasse GetPageAttachmentsOperationSpec

java.lang.Object
io.github.primelib.confluence4j.rest.v2.spec.GetPageAttachmentsOperationSpec

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

Specification for the GetPageAttachments operation.

Get attachments for page

  • Felddetails

    • VALIDATION_ENABLED

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

    • GetPageAttachmentsOperationSpec

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

      @Internal public GetPageAttachmentsOperationSpec(Long id, AttachmentSortOrder sort, String cursor, List<String> status, String mediaType, String filename, Integer limit)
      Constructs a validated instance of GetPageAttachmentsOperationSpec.

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

      Parameter:
      id - The ID of the page for which attachments should be returned.
      sort - Used to sort the result by a particular field.
      cursor - Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
      status - Filter the results to attachments based on their status. By default, current and archived are used.
      mediaType - Filters on the mediaType of attachments. Only one may be specified.
      filename - Filters on the file-name of attachments. Only one may be specified.
      limit - Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.
    • GetPageAttachmentsOperationSpec

      protected GetPageAttachmentsOperationSpec()
  • 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 Long id()
      The ID of the page for which attachments should be returned.
    • sort

      @Nullable public @Nullable AttachmentSortOrder sort()
      Used to sort the result by a particular field.
    • cursor

      @Nullable public @Nullable String cursor()
      Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
    • status

      @Nullable public @Nullable List<String> status()
      Filter the results to attachments based on their status. By default, current and archived are used.
    • mediaType

      @Nullable public @Nullable String mediaType()
      Filters on the mediaType of attachments. Only one may be specified.
    • filename

      @Nullable public @Nullable String filename()
      Filters on the file-name of attachments. Only one may be specified.
    • limit

      @Nullable public @Nullable Integer limit()
      Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.
    • id

      public GetPageAttachmentsOperationSpec id(@NotNull @NotNull Long id)
      The ID of the page for which attachments should be returned.
      Gibt zurück:
      this.
    • sort

      public GetPageAttachmentsOperationSpec sort(@Nullable @Nullable AttachmentSortOrder sort)
      Used to sort the result by a particular field.
      Gibt zurück:
      this.
    • cursor

      public GetPageAttachmentsOperationSpec cursor(@Nullable @Nullable String cursor)
      Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
      Gibt zurück:
      this.
    • status

      public GetPageAttachmentsOperationSpec status(@Nullable @Nullable List<String> status)
      Filter the results to attachments based on their status. By default, current and archived are used.
      Gibt zurück:
      this.
    • mediaType

      public GetPageAttachmentsOperationSpec mediaType(@Nullable @Nullable String mediaType)
      Filters on the mediaType of attachments. Only one may be specified.
      Gibt zurück:
      this.
    • filename

      public GetPageAttachmentsOperationSpec filename(@Nullable @Nullable String filename)
      Filters on the file-name of attachments. Only one may be specified.
      Gibt zurück:
      this.
    • limit

      public GetPageAttachmentsOperationSpec limit(@Nullable @Nullable Integer limit)
      Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.
      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