Class ApiClientBuilder

java.lang.Object
com.microsoft.kiota.ApiClientBuilder

public class ApiClientBuilder extends Object
Provides a builder for creating an ApiClient and register the default serializers/deserializers.
  • Method Details

    • registerDefaultSerializer

      public static void registerDefaultSerializer(@Nonnull Supplier<SerializationWriterFactory> factorySupplier)
      Registers the default serializer to the registry.
      Parameters:
      factorySupplier - the supplier of the factory to be registered.
    • registerDefaultDeserializer

      public static void registerDefaultDeserializer(@Nonnull Supplier<ParseNodeFactory> factorySupplier)
      Registers the default deserializer to the registry.
      Parameters:
      factorySupplier - the supplier of the factory to be registered.
    • enableBackingStoreForSerializationWriterFactory

      @Nonnull public static SerializationWriterFactory enableBackingStoreForSerializationWriterFactory(@Nonnull SerializationWriterFactory original)
      Enables the backing store on default serialization writers and the given serialization writer.
      Parameters:
      original - The serialization writer to enable the backing store on.
      Returns:
      A new serialization writer with the backing store enabled.
    • enableBackingStoreForParseNodeFactory

      @Nonnull public static ParseNodeFactory enableBackingStoreForParseNodeFactory(@Nonnull ParseNodeFactory original)
      Enables the backing store on default parse node factories and the given parse node factory.
      Parameters:
      original - The parse node factory to enable the backing store on.
      Returns:
      A new parse node factory with the backing store enabled.