Klasse ApiKeyAuthSpec

java.lang.Object
io.github.primelib.pagerduty4j.rest.auth.ApiKeyAuthSpec
Alle implementierten Schnittstellen:
io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod

public class ApiKeyAuthSpec extends Object implements io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod
  • Konstruktordetails

    • ApiKeyAuthSpec

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

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Löst aus:
      NullPointerException - if a required parameter is missing
      IllegalArgumentException - if a parameter has an invalid value
    • propertyLocation

      @NotNull public @NotNull String propertyLocation()
      location of the API key
    • propertyKey

      @NotNull public @NotNull String propertyKey()
      key of the property that holds the API key (header key or query param key)
    • propertyTemplate

      public String propertyTemplate()
      template for the API key property, use {apiKey} as placeholder for the value
    • apiKey

      @NotNull public @NotNull String apiKey()
      the API key
    • propertyLocation

      public ApiKeyAuthSpec propertyLocation(@NotNull @NotNull String propertyLocation)
      location of the API key
      Gibt zurück:
      this.
    • propertyKey

      public ApiKeyAuthSpec propertyKey(@NotNull @NotNull String propertyKey)
      key of the property that holds the API key (header key or query param key)
      Gibt zurück:
      this.
    • propertyTemplate

      public ApiKeyAuthSpec propertyTemplate(String propertyTemplate)
      template for the API key property, use {apiKey} as placeholder for the value
      Gibt zurück:
      this.
    • apiKey

      public ApiKeyAuthSpec apiKey(@NotNull @NotNull String apiKey)
      the API key
      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
    • headerMap

      public Map<String,String> headerMap()
      Angegeben von:
      headerMap in Schnittstelle io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod
    • queryMap

      public Map<String,String> queryMap()
      Angegeben von:
      queryMap in Schnittstelle io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod
    • cookieMap

      public Map<String,String> cookieMap()
      Angegeben von:
      cookieMap in Schnittstelle io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod