Class Application.Builder

java.lang.Object
com.vonage.client.application.Application.Builder
Enclosing class:
Application

public static class Application.Builder extends Object
  • Constructor Details

  • Method Details

    • improveAi

      public Application.Builder improveAi(boolean improveAi)
      Whether Vonage may store and use your content and data for the improvement of Vonage's AI based services and technologies. Default is true.
      Parameters:
      improveAi - true if you consent to data being used for AI improvement, or false to opt out.
      Returns:
      This builder.
      Since:
      7.7.0
    • name

      Set the friendly identifier for your application. This is not unique.
      Parameters:
      name - The name of the application.
      Returns:
      This builder.
    • publicKey

      public Application.Builder publicKey(String publicKey)
      Sets the application's public key.
      Parameters:
      publicKey - The public key for use with the application as a string.
      Returns:
      This builder.
    • addCapability

      Add a capability for the application. Each capability can only be used one time. Adding a capability of a duplicate type will overwrite the previous capability of that type.
      Parameters:
      capability - The capability to add to it.
      Returns:
      This builder.
    • removeCapabilities

      Removes the specified capabilities from the application.
      Parameters:
      types - The type of capabilities to remove as an array / varargs.
      Returns:
      This builder.
      Since:
      8.14.0
    • removeCapability

      Remove a capability from the application.
      Parameters:
      type - The type of capability to remove.
      Returns:
      This builder.
    • build

      public Application build()
      Builds the Application object.
      Returns:
      A new Application containing the configured properties.