Klasse GetBlogPostByIdOperationSpec

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

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

Specification for the GetBlogPostById operation.

Get blog post by id

  • Felddetails

    • VALIDATION_ENABLED

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

    • GetBlogPostByIdOperationSpec

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

      @Internal public GetBlogPostByIdOperationSpec(Long id, PrimaryBodyRepresentationSingle bodyFormat, Boolean getDraft, Integer version)
      Constructs a validated instance of GetBlogPostByIdOperationSpec.

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

      Parameter:
      id - The ID of the blog post to be returned. If you don't know the blog post ID, use Get blog posts and filter the results.
      bodyFormat - The content format types to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.
      getDraft - Retrieve the draft version of this blog post.
      version - Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.
    • GetBlogPostByIdOperationSpec

      protected GetBlogPostByIdOperationSpec()
  • 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 blog post to be returned. If you don't know the blog post ID, use Get blog posts and filter the results.
    • bodyFormat

      @Nullable public @Nullable PrimaryBodyRepresentationSingle bodyFormat()
      The content format types to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.
    • getDraft

      @Nullable public @Nullable Boolean getDraft()
      Retrieve the draft version of this blog post.
    • version

      @Nullable public @Nullable Integer version()
      Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.
    • id

      public GetBlogPostByIdOperationSpec id(@NotNull @NotNull Long id)
      The ID of the blog post to be returned. If you don't know the blog post ID, use Get blog posts and filter the results.
      Gibt zurück:
      this.
    • bodyFormat

      public GetBlogPostByIdOperationSpec bodyFormat(@Nullable @Nullable PrimaryBodyRepresentationSingle bodyFormat)
      The content format types to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.
      Gibt zurück:
      this.
    • getDraft

      public GetBlogPostByIdOperationSpec getDraft(@Nullable @Nullable Boolean getDraft)
      Retrieve the draft version of this blog post.
      Gibt zurück:
      this.
    • version

      public GetBlogPostByIdOperationSpec version(@Nullable @Nullable Integer version)
      Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.
      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