Class ApiKeyCreateParams.Builder

java.lang.Object
com.stripe.param.v2.iam.ApiKeyCreateParams.Builder
Enclosing class:
ApiKeyCreateParams

public static class ApiKeyCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public ApiKeyCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • putExtraParam

      public ApiKeyCreateParams.Builder putExtraParam(String key, Object value)
      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. See ApiKeyCreateParams.extraParams for the field documentation.
    • putAllExtraParam

      public ApiKeyCreateParams.Builder putAllExtraParam(Map<String,Object> map)
      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. See ApiKeyCreateParams.extraParams for the field documentation.
    • setName

      public ApiKeyCreateParams.Builder setName(String name)
      Name for the API key.
    • setNote

      public ApiKeyCreateParams.Builder setNote(String note)
      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).