Package com.vonage.client.application
Class Application.Builder
java.lang.Object
com.vonage.client.application.Application.Builder
- Enclosing class:
Application
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCapability(Capability capability) Add a capability for the application.build()Builds the Application object.improveAi(boolean improveAi) Whether Vonage may store and use your content and data for the improvement of Vonage's AI based services and technologies.Set the friendly identifier for your application.Sets the application's public key.removeCapabilities(Capability.Type... types) Removes the specified capabilities from the application.Remove a capability from the application.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
improveAi
Whether Vonage may store and use your content and data for the improvement of Vonage's AI based services and technologies. Default istrue.- Parameters:
improveAi-trueif you consent to data being used for AI improvement, orfalseto 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
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
Builds the Application object.- Returns:
- A new Application containing the configured properties.
-