Package io.github.primelib.jira4j.restv2
Class JiraRESTV2FactorySpec<T>
java.lang.Object
io.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<JiraRESTV2FactorySpec<T>>
io.github.primelib.jira4j.restv2.JiraRESTV2FactorySpec<T>
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public final class JiraRESTV2FactorySpec<T>
extends io.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<JiraRESTV2FactorySpec<T>>
A specification to construct a
JiraRESTV2Api instance.-
Field Summary
Fields inherited from class io.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec
extensions, proxy -
Constructor Summary
ConstructorsConstructorDescriptionJiraRESTV2FactorySpec(@NotNull Consumer<JiraRESTV2FactorySpec<T>> spec) Constructs a validated implementation ofJiraRESTV2Api. -
Method Summary
Modifier and TypeMethodDescriptionapi()The API interface to useThe API interface to usevoidapplySpec(JiraRESTV2FactorySpec<?> spec) @Nullable List<io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod>auth()The authentication methods to useThe authentication methods to use@NotNull StringThe name of the backend to usebackendName(@NotNull String backendName) The name of the backend to use@NotNull StringbaseUrl()The api base URLThe api base URLbasicAuth(Consumer<BasicAuthSpec> spec) bearerAuth(Consumer<BearerAuthSpec> spec) protected booleanbooleaninthashCode()@NotNull StringlogLevel()the feign log levelthe feign log level@NotNull io.micrometer.core.instrument.MeterRegistryMeterRegistry to use for metricsmeterRegistry(@NotNull io.micrometer.core.instrument.MeterRegistry meterRegistry) MeterRegistry to use for metricstoString()voidvalidate()Ensures the configured specification is valid.Methods inherited from class io.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec
extensions, findAndRegisterExtensions, proxy, proxy, registerExtension
-
Constructor Details
-
JiraRESTV2FactorySpec
Constructs a validated implementation ofJiraRESTV2Api.- Parameters:
spec- the specification to process
-
-
Method Details
-
validate
public void validate()Ensures the configured specification is valid.- Throws:
NullPointerException
-
basicAuth
-
bearerAuth
-
applySpec
-
backendName
The name of the backend to use -
api
The API interface to use -
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
the feign log levelDefaults to
none. Allowed values are:none,basic,headers,full -
backendName
The name of the backend to use- Returns:
this.
-
api
The API interface to use- Returns:
this.
-
baseUrl
The api base URL- Returns:
this.
-
auth
public JiraRESTV2FactorySpec<T> auth(@Nullable @Nullable List<io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod> auth) The authentication methods to use- Returns:
this.
-
meterRegistry
public JiraRESTV2FactorySpec<T> meterRegistry(@NotNull @NotNull io.micrometer.core.instrument.MeterRegistry meterRegistry) MeterRegistry to use for metrics- Returns:
this.
-
logLevel
the feign log levelDefaults to
none. Allowed values are:none,basic,headers,full- Returns:
this.
-
toString
- Overrides:
toStringin classio.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<JiraRESTV2FactorySpec<T>>
-
equals
- Overrides:
equalsin classio.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<JiraRESTV2FactorySpec<T>>
-
canEqual
- Overrides:
canEqualin classio.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<JiraRESTV2FactorySpec<T>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classio.github.primelib.primecodegenlib.java.feign.common.config.FeignModuleSpec<JiraRESTV2FactorySpec<T>>
-