Interface StripeConfigurationOutput.Builder

  • Method Details

    • restrictedKeyArn

      StripeConfigurationOutput.Builder restrictedKeyArn(Secret restrictedKeyArn)

      Secrets Manager ARN of the restricted key. Always present: a MANUAL provider either points at the merchant's own secret (EXTERNAL) or at the service-linked secret AgentCore wrote (MANAGED).

      Parameters:
      restrictedKeyArn - Secrets Manager ARN of the restricted key. Always present: a MANUAL provider either points at the merchant's own secret (EXTERNAL) or at the service-linked secret AgentCore wrote (MANAGED).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • restrictedKeyArn

      default StripeConfigurationOutput.Builder restrictedKeyArn(Consumer<Secret.Builder> restrictedKeyArn)

      Secrets Manager ARN of the restricted key. Always present: a MANUAL provider either points at the merchant's own secret (EXTERNAL) or at the service-linked secret AgentCore wrote (MANAGED).

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

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

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

      StripeConfigurationOutput.Builder restrictedKeyJsonKey(String restrictedKeyJsonKey)

      The key within the Secrets Manager secret's JSON payload that holds the restricted key. Present only when the secret stores the value under a named key rather than as the whole payload.

      Parameters:
      restrictedKeyJsonKey - The key within the Secrets Manager secret's JSON payload that holds the restricted key. Present only when the secret stores the value under a named key rather than as the whole payload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • restrictedKeySource

      StripeConfigurationOutput.Builder restrictedKeySource(String restrictedKeySource)

      Where the restricted key is stored: MANAGED (inline) or EXTERNAL (Secrets Manager reference).

      Parameters:
      restrictedKeySource - Where the restricted key is stored: MANAGED (inline) or EXTERNAL (Secrets Manager reference).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • restrictedKeySource

      StripeConfigurationOutput.Builder restrictedKeySource(SecretSourceType restrictedKeySource)

      Where the restricted key is stored: MANAGED (inline) or EXTERNAL (Secrets Manager reference).

      Parameters:
      restrictedKeySource - Where the restricted key is stored: MANAGED (inline) or EXTERNAL (Secrets Manager reference).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • connectedAccountId

      StripeConfigurationOutput.Builder connectedAccountId(String connectedAccountId)

      The Stripe account the restricted key belongs to.

      Reserved, and not populated yet: resolving it needs a Stripe GET /v1/account call the service does not make. Treat it as server-written and immutable — no request member sets it, and an update carries the stored value forward untouched. The check that a rotated key still belongs to the same Stripe account is NOT implemented, so do not rely on this field as a control.

      Parameters:
      connectedAccountId - The Stripe account the restricted key belongs to.

      Reserved, and not populated yet: resolving it needs a Stripe GET /v1/account call the service does not make. Treat it as server-written and immutable — no request member sets it, and an update carries the stored value forward untouched. The check that a rotated key still belongs to the same Stripe account is NOT implemented, so do not rely on this field as a control.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • publishableKey

      StripeConfigurationOutput.Builder publishableKey(String publishableKey)

      Stripe publishable key stored on the provider record. Present only when the merchant supplied one at create/update. Public by design, so it is echoed in plaintext, not as a secret ARN.

      Parameters:
      publishableKey - Stripe publishable key stored on the provider record. Present only when the merchant supplied one at create/update. Public by design, so it is echoed in plaintext, not as a secret ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.