Class JDOA2Builder

java.lang.Object
com.mrivanplays.jdoa2.JDOA2Builder

public class JDOA2Builder extends Object
Represents a JDOA2 builder.
  • Constructor Details

  • Method Details

    • applicationInfo

      public ApplicationInfo applicationInfo()
      Returns the ApplicationInfo set.
      Returns:
      application info
    • applicationInfo

      public JDOA2Builder applicationInfo(@Nonnull ApplicationInfo applicationInfo)
      Sets a new application info.
      Parameters:
      applicationInfo - application info
      Returns:
      this instance for chaining
    • jsonMapper

      public com.fasterxml.jackson.databind.ObjectMapper jsonMapper()
      Returns the ObjectMapper set.
      Returns:
      json mapper
    • jsonMapper

      public JDOA2Builder jsonMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
      Sets a new json mapper.
      Parameters:
      jsonMapper - json mapper
      Returns:
      this instance for chaining
    • httpClient

      public okhttp3.OkHttpClient httpClient()
      Returns the OkHttpClient set.
      Returns:
      http client
    • httpClient

      public JDOA2Builder httpClient(@Nonnull okhttp3.OkHttpClient httpClient)
      Sets a new http client
      Parameters:
      httpClient - http client
      Returns:
      this instance for chaining
    • build

      public JDOA2 build()
      Builds this builder's parameters into a JDOA2 instance.
      Returns:
      jdoa2 instance