Class ConfluenceRestClientFactorySpec<T>

java.lang.Object
io.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<ConfluenceRestClientFactorySpec<T>>
io.github.primelib.confluence4j.rest.v1.ConfluenceRestClientFactorySpec<T>

@Generated("io.github.primelib.primecodegen") public final class ConfluenceRestClientFactorySpec<T> extends io.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<ConfluenceRestClientFactorySpec<T>>
A specification to construct a client instance.
  • Constructor Details

    • ConfluenceRestClientFactorySpec

      public ConfluenceRestClientFactorySpec(@NotNull @NotNull Consumer<ConfluenceRestClientFactorySpec<T>> spec)
      Constructs a validated implementation of the specification.
      Parameters:
      spec - the specification to process
  • Method Details

    • validate

      public void validate()
      Ensures the configured specification is valid.
      Throws:
      NullPointerException
    • basicAuth

      public io.github.primelib.primecodegenlib.java.feign.common.auth.BasicAuthSpec basicAuth(Consumer<io.github.primelib.primecodegenlib.java.feign.common.auth.BasicAuthSpec> spec)
    • bearerAuth

      public io.github.primelib.primecodegenlib.java.feign.common.auth.BearerAuthSpec bearerAuth(Consumer<io.github.primelib.primecodegenlib.java.feign.common.auth.BearerAuthSpec> spec)
    • applySpec

      @Internal public void applySpec(ConfluenceRestClientFactorySpec<?> spec)
    • backendName

      @NotNull public @NotNull String backendName()
      The name of the backend to use
    • api

      @NotNull public @NotNull Class<T> api()
      The API interface to use
    • baseUrl

      @NotNull public @NotNull String baseUrl()
      The api base URL
    • auth

      @Nullable public @Nullable List<io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod> auth()
      The authentication methods to use
    • meterRegistry

      @NotNull public @NotNull io.micrometer.core.instrument.MeterRegistry meterRegistry()
      MeterRegistry to use for metrics
    • logLevel

      @NotNull public @NotNull String logLevel()
      the feign log level

      Defaults to none. Allowed values are: none, basic, headers, full

    • insecure

      @NotNull public @NotNull boolean insecure()
      insecure disables SSL verification
    • backendName

      public ConfluenceRestClientFactorySpec<T> backendName(@NotNull @NotNull String backendName)
      The name of the backend to use
      Returns:
      this.
    • api

      public ConfluenceRestClientFactorySpec<T> api(@NotNull @NotNull Class<T> api)
      The API interface to use
      Returns:
      this.
    • baseUrl

      public ConfluenceRestClientFactorySpec<T> baseUrl(@NotNull @NotNull String baseUrl)
      The api base URL
      Returns:
      this.
    • auth

      public ConfluenceRestClientFactorySpec<T> auth(@Nullable @Nullable List<io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod> auth)
      The authentication methods to use
      Returns:
      this.
    • meterRegistry

      public ConfluenceRestClientFactorySpec<T> meterRegistry(@NotNull @NotNull io.micrometer.core.instrument.MeterRegistry meterRegistry)
      MeterRegistry to use for metrics
      Returns:
      this.
    • logLevel

      public ConfluenceRestClientFactorySpec<T> logLevel(@NotNull @NotNull String logLevel)
      the feign log level

      Defaults to none. Allowed values are: none, basic, headers, full

      Returns:
      this.
    • insecure

      public ConfluenceRestClientFactorySpec<T> insecure(@NotNull @NotNull boolean insecure)
      insecure disables SSL verification
      Returns:
      this.
    • toString

      public String toString()
      Overrides:
      toString in class io.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<ConfluenceRestClientFactorySpec<T>>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class io.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<ConfluenceRestClientFactorySpec<T>>
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class io.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<ConfluenceRestClientFactorySpec<T>>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class io.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<ConfluenceRestClientFactorySpec<T>>