Package com.stripe.param.v2.iam
Class ApiKeyCreateParams.Builder
java.lang.Object
com.stripe.param.v2.iam.ApiKeyCreateParams.Builder
- Enclosing class:
- ApiKeyCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.Name for the API key.Note or description for the API key.setPublicKey(ApiKeyCreateParams.PublicKey publicKey) Public key for encrypting the API key secret.Required. Type of the API key to create (secret or publishable).
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeApiKeyCreateParams.extraParamsfor the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeApiKeyCreateParams.extraParamsfor the field documentation. -
setName
Name for the API key. -
setNote
Note or description for the API key. -
setPublicKey
Public key for encrypting the API key secret. This must a PEM-formatted RSA key suitable for encryption, >= 2048 bits. A public key is required when creating secret keys. Publishable keys are not encrypted and a public key should not be included. -
setType
Required. Type of the API key to create (secret or publishable).
-