Klasse JiraRESTV2FactorySpec<T>

java.lang.Object
io.github.primelib.jira4j.restv2.JiraRESTV2FactorySpec<T>

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public final class JiraRESTV2FactorySpec<T> extends Object
A specification to construct a JiraRESTV2Api instance.
  • Konstruktordetails

    • JiraRESTV2FactorySpec

      public JiraRESTV2FactorySpec(@NotNull @NotNull Consumer<JiraRESTV2FactorySpec<T>> spec)
      Constructs a validated implementation of JiraRESTV2Api.
      Parameter:
      spec - the specification to process
  • Methodendetails

    • validate

      public void validate()
      Ensures the configured specification is valid.
      Löst aus:
      NullPointerException
    • httpProxy

      public io.github.primelib.primecodegenlib.java.feign.common.config.ProxySpec httpProxy(Consumer<io.github.primelib.primecodegenlib.java.feign.common.config.ProxySpec> proxySpec)
    • basicAuth

      public BasicAuthSpec basicAuth(Consumer<BasicAuthSpec> spec)
    • bearerAuth

      public BearerAuthSpec bearerAuth(Consumer<BearerAuthSpec> spec)
    • applySpec

      public void applySpec(JiraRESTV2FactorySpec<?> 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
    • proxy

      @Nullable public @Nullable io.github.primelib.primecodegenlib.java.feign.common.config.ProxySpec proxy()
      The proxy server to use, if applicable

      Defaults to null. Set to ProxySpec.detect() to detect the proxy based on the os environment automatically.

    • 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

    • backendName

      public JiraRESTV2FactorySpec<T> backendName(@NotNull @NotNull String backendName)
      The name of the backend to use
      Gibt zurück:
      this.
    • api

      public JiraRESTV2FactorySpec<T> api(@NotNull @NotNull Class<T> api)
      The API interface to use
      Gibt zurück:
      this.
    • baseUrl

      public JiraRESTV2FactorySpec<T> baseUrl(@NotNull @NotNull String baseUrl)
      The api base URL
      Gibt zurück:
      this.
    • auth

      public JiraRESTV2FactorySpec<T> auth(@Nullable @Nullable List<io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod> auth)
      The authentication methods to use
      Gibt zurück:
      this.
    • proxy

      public JiraRESTV2FactorySpec<T> proxy(@Nullable @Nullable io.github.primelib.primecodegenlib.java.feign.common.config.ProxySpec proxy)
      The proxy server to use, if applicable

      Defaults to null. Set to ProxySpec.detect() to detect the proxy based on the os environment automatically.

      Gibt zurück:
      this.
    • meterRegistry

      public JiraRESTV2FactorySpec<T> meterRegistry(@NotNull @NotNull io.micrometer.core.instrument.MeterRegistry meterRegistry)
      MeterRegistry to use for metrics
      Gibt zurück:
      this.
    • logLevel

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

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

      Gibt zurück:
      this.
    • equals

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

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

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