Interface StripeConfigurationInput.Builder

  • Method Details

    • restrictedKey

      StripeConfigurationInput.Builder restrictedKey(String restrictedKey)

      The restricted key value, supplied inline. Use this when AgentCore should own the secret (MANAGED): the service stores the value in a service-linked Secrets Manager secret. Mutually exclusive with restrictedKeyConfig.

      Parameters:
      restrictedKey - The restricted key value, supplied inline. Use this when AgentCore should own the secret (MANAGED): the service stores the value in a service-linked Secrets Manager secret. Mutually exclusive with restrictedKeyConfig.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • restrictedKeySource

      StripeConfigurationInput.Builder restrictedKeySource(String restrictedKeySource)

      Who owns the Secrets Manager secret: MANAGED for AgentCore, EXTERNAL for the merchant. Optional — supply restrictedKey inline and MANAGED is implied, matching CoinbaseCDP and StripePrivy.

      Parameters:
      restrictedKeySource - Who owns the Secrets Manager secret: MANAGED for AgentCore, EXTERNAL for the merchant. Optional — supply restrictedKey inline and MANAGED is implied, matching CoinbaseCDP and StripePrivy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • restrictedKeySource

      StripeConfigurationInput.Builder restrictedKeySource(SecretSourceType restrictedKeySource)

      Who owns the Secrets Manager secret: MANAGED for AgentCore, EXTERNAL for the merchant. Optional — supply restrictedKey inline and MANAGED is implied, matching CoinbaseCDP and StripePrivy.

      Parameters:
      restrictedKeySource - Who owns the Secrets Manager secret: MANAGED for AgentCore, EXTERNAL for the merchant. Optional — supply restrictedKey inline and MANAGED is implied, matching CoinbaseCDP and StripePrivy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • restrictedKeyConfig

      StripeConfigurationInput.Builder restrictedKeyConfig(SecretReference restrictedKeyConfig)

      Secrets Manager reference to a restricted key the merchant owns (EXTERNAL). Preferred over restrictedKey: the value never travels through this API, so it stays out of the CloudTrail request body and out of shell history. Mutually exclusive with restrictedKey.

      Parameters:
      restrictedKeyConfig - Secrets Manager reference to a restricted key the merchant owns (EXTERNAL). Preferred over restrictedKey: the value never travels through this API, so it stays out of the CloudTrail request body and out of shell history. Mutually exclusive with restrictedKey.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • restrictedKeyConfig

      default StripeConfigurationInput.Builder restrictedKeyConfig(Consumer<SecretReference.Builder> restrictedKeyConfig)

      Secrets Manager reference to a restricted key the merchant owns (EXTERNAL). Preferred over restrictedKey: the value never travels through this API, so it stays out of the CloudTrail request body and out of shell history. Mutually exclusive with restrictedKey.

      This is a convenience method that creates an instance of the SecretReference.Builder avoiding the need to create one manually via SecretReference.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to restrictedKeyConfig(SecretReference).

      Parameters:
      restrictedKeyConfig - a consumer that will call methods on SecretReference.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • publishableKey

      StripeConfigurationInput.Builder publishableKey(String publishableKey)

      Stripe publishable key (pk_live_* or pk_test_*). Optional. Public by Stripe's design, so it is stored as a plain attribute on the provider record, never in Secrets Manager. Its mode must match the restricted key's (pk_test_ with rk_test_, pk_live_ with rk_live_).

      Parameters:
      publishableKey - Stripe publishable key (pk_live_* or pk_test_*). Optional. Public by Stripe's design, so it is stored as a plain attribute on the provider record, never in Secrets Manager. Its mode must match the restricted key's (pk_test_ with rk_test_, pk_live_ with rk_live_).
      Returns:
      Returns a reference to this object so that method calls can be chained together.