Interface SnsMessageManager.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofSnsMessageManagerbased on the supplied configurations.httpClient(SdkHttpClient httpClient) Sets the HTTP client to use for certificate retrieval.Sets the AWS region for certificate validation.
-
Method Details
-
httpClient
Sets the HTTP client to use for certificate retrieval. The caller is responsible for closing this HTTP client after theSnsMessageManageris closed.- Parameters:
httpClient- The HTTP client to use for fetching signing certificates.- Returns:
- This builder for method chaining.
-
region
Sets the AWS region for certificate validation. This region must match the SNS region where the messages originate. This is a required parameter.- Parameters:
region- The AWS region where the SNS messages originate.- Returns:
- This builder for method chaining.
-
build
SnsMessageManager build()Builds an instance ofSnsMessageManagerbased on the supplied configurations.- Returns:
- An initialized SnsMessageManager ready to validate SNS messages.
-