ConsumerApiOptions.Builder

  • ConsumerApiOptions.Builder is used to create instances of ConsumerApiOptions, which are configurations for the Consumer API.

  • You can set the Fleet Engine server address using setFleetEngineAddress(String fleetEngineAddress).

  • You can identify the provider using setProviderId(String providerId).

  • Finally, call build() to create an immutable instance of ConsumerApiOptions with the specified configurations.

public static abstract class ConsumerApiOptions.Builder extends Object

Builder for ConsumerApiOptions.

Public Method Summary

ConsumerApiOptions
abstract ConsumerApiOptions.Builder
setFleetEngineAddress(String fleetEngineAddress)
Sets the Fleet Engine server address.
abstract ConsumerApiOptions.Builder
setProviderId(String providerId)
Sets the string used to identify the provider.

Inherited Method Summary

Public Methods

public ConsumerApiOptions build ()

public abstract ConsumerApiOptions.Builder setFleetEngineAddress (String fleetEngineAddress)

Sets the Fleet Engine server address.

public abstract ConsumerApiOptions.Builder setProviderId (String providerId)

Sets the string used to identify the provider.