public static final class RequestOptions.RequestOptionsBuilder
extends java.lang.Object
RequestOptions.| Constructor and Description |
|---|
RequestOptionsBuilder(java.lang.String publishableApiKey)
Builder constructor requiring an API key.
|
| Modifier and Type | Method and Description |
|---|---|
RequestOptions |
build()
Construct the
RequestOptions object. |
RequestOptions.RequestOptionsBuilder |
setApiVersion(java.lang.String apiVersion)
Setter for the API version for this set of
RequestOptions. |
RequestOptions.RequestOptionsBuilder |
setIdempotencyKey(java.lang.String idempotencyKey)
Setter for the optional idempotency value of the
RequestOptions. |
RequestOptions.RequestOptionsBuilder |
setPublishableApiKey(java.lang.String publishableApiKey)
A way to set your publishable key outside of the constructor.
|
public RequestOptionsBuilder(@NonNull
java.lang.String publishableApiKey)
publishableApiKey - your publishable API key@NonNull public RequestOptions.RequestOptionsBuilder setPublishableApiKey(@NonNull java.lang.String publishableApiKey)
publishableApiKey - your publishable API keythis, for chaining purposes@NonNull public RequestOptions.RequestOptionsBuilder setIdempotencyKey(@Nullable java.lang.String idempotencyKey)
RequestOptions. This can
be any value you want.idempotencyKey - the idempotency keythis, for chaining purposes@NonNull public RequestOptions.RequestOptionsBuilder setApiVersion(@Nullable java.lang.String apiVersion)
RequestOptions. If not set,
your account default API version is used.apiVersion - the API version to usethis, for chaining purposespublic RequestOptions build()
RequestOptions object.RequestOptions object