Klasse GetMacroBodyByMacroIdOperationSpec

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

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

Specification for the GetMacroBodyByMacroId operation.

Get macro body by macro ID

  • Felddetails

    • VALIDATION_ENABLED

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

    • GetMacroBodyByMacroIdOperationSpec

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

      @Internal public GetMacroBodyByMacroIdOperationSpec(String id, Integer version, String macroId)
      Constructs a validated instance of GetMacroBodyByMacroIdOperationSpec.

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

      Parameter:
      id - The ID for the content that contains the macro.
      version - The version of the content that contains the macro. Specifying 0 as the version will return the macro body for the latest content version.
      macroId - The ID of the macro. This is usually passed by the app that the macro is in. Otherwise, find the macro ID by querying the desired content and version, then expanding the body in storage format. For example, '/content/196611/version/7?expand=content.body.storage'.
    • GetMacroBodyByMacroIdOperationSpec

      protected GetMacroBodyByMacroIdOperationSpec()
  • 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 for the content that contains the macro.
    • version

      @NotNull public @NotNull Integer version()
      The version of the content that contains the macro. Specifying 0 as the version will return the macro body for the latest content version.
    • macroId

      @NotNull public @NotNull String macroId()
      The ID of the macro. This is usually passed by the app that the macro is in. Otherwise, find the macro ID by querying the desired content and version, then expanding the body in storage format. For example, '/content/196611/version/7?expand=content.body.storage'.
    • id

      public GetMacroBodyByMacroIdOperationSpec id(@NotNull @NotNull String id)
      The ID for the content that contains the macro.
      Gibt zurück:
      this.
    • version

      public GetMacroBodyByMacroIdOperationSpec version(@NotNull @NotNull Integer version)
      The version of the content that contains the macro. Specifying 0 as the version will return the macro body for the latest content version.
      Gibt zurück:
      this.
    • macroId

      public GetMacroBodyByMacroIdOperationSpec macroId(@NotNull @NotNull String macroId)
      The ID of the macro. This is usually passed by the app that the macro is in. Otherwise, find the macro ID by querying the desired content and version, then expanding the body in storage format. For example, '/content/196611/version/7?expand=content.body.storage'.
      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