Interface SnsMessageManager.Builder
-
- Enclosing interface:
- SnsMessageManager
public static interface SnsMessageManager.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SnsMessageManagerbuild()Builds an instance ofSnsMessageManagerbased on the supplied configurations.SnsMessageManager.BuilderhttpClient(SdkHttpClient httpClient)Sets the HTTP client to use for certificate retrieval.SnsMessageManager.Builderregion(Region region)Sets the AWS region for certificate validation.
-
-
-
Method Detail
-
httpClient
SnsMessageManager.Builder httpClient(SdkHttpClient 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
SnsMessageManager.Builder region(Region 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.
-
-