Interface SdkAsyncClientBuilder<B extends SdkAsyncClientBuilder<B,C>,C>

Type Parameters:
B - The type of builder that should be returned by the fluent builder methods in this interface.
C - The type of client generated by this builder.
All Known Subinterfaces:
AccessAnalyzerAsyncClientBuilder, AccountAsyncClientBuilder, AcmAsyncClientBuilder, AcmPcaAsyncClientBuilder, AlexaForBusinessAsyncClientBuilder, AmpAsyncClientBuilder, AmplifyAsyncClientBuilder, AmplifyBackendAsyncClientBuilder, AmplifyUiBuilderAsyncClientBuilder, ApiGatewayAsyncClientBuilder, ApiGatewayManagementApiAsyncClientBuilder, ApiGatewayV2AsyncClientBuilder, AppConfigAsyncClientBuilder, AppConfigDataAsyncClientBuilder, AppFabricAsyncClientBuilder, AppflowAsyncClientBuilder, AppIntegrationsAsyncClientBuilder, ApplicationAutoScalingAsyncClientBuilder, ApplicationCostProfilerAsyncClientBuilder, ApplicationDiscoveryAsyncClientBuilder, ApplicationInsightsAsyncClientBuilder, AppMeshAsyncClientBuilder, AppRunnerAsyncClientBuilder, AppStreamAsyncClientBuilder, AppSyncAsyncClientBuilder, ArcZonalShiftAsyncClientBuilder, ArtifactAsyncClientBuilder, AthenaAsyncClientBuilder, AuditManagerAsyncClientBuilder, AutoScalingAsyncClientBuilder, AutoScalingPlansAsyncClientBuilder, AwsAsyncClientBuilder<B,C>, B2BiAsyncClientBuilder, BackupAsyncClientBuilder, BackupGatewayAsyncClientBuilder, BackupStorageAsyncClientBuilder, BatchAsyncClientBuilder, BcmDataExportsAsyncClientBuilder, BedrockAgentAsyncClientBuilder, BedrockAgentRuntimeAsyncClientBuilder, BedrockAsyncClientBuilder, BedrockRuntimeAsyncClientBuilder, BillingconductorAsyncClientBuilder, BraketAsyncClientBuilder, BudgetsAsyncClientBuilder, ChatbotAsyncClientBuilder, ChimeAsyncClientBuilder, ChimeSdkIdentityAsyncClientBuilder, ChimeSdkMediaPipelinesAsyncClientBuilder, ChimeSdkMeetingsAsyncClientBuilder, ChimeSdkMessagingAsyncClientBuilder, ChimeSdkVoiceAsyncClientBuilder, CleanRoomsAsyncClientBuilder, CleanRoomsMlAsyncClientBuilder, Cloud9AsyncClientBuilder, CloudControlAsyncClientBuilder, CloudDirectoryAsyncClientBuilder, CloudFormationAsyncClientBuilder, CloudFrontAsyncClientBuilder, CloudFrontKeyValueStoreAsyncClientBuilder, CloudHsmAsyncClientBuilder, CloudHsmV2AsyncClientBuilder, CloudSearchAsyncClientBuilder, CloudSearchDomainAsyncClientBuilder, CloudTrailAsyncClientBuilder, CloudTrailDataAsyncClientBuilder, CloudWatchAsyncClientBuilder, CloudWatchEventsAsyncClientBuilder, CloudWatchLogsAsyncClientBuilder, CodeartifactAsyncClientBuilder, CodeBuildAsyncClientBuilder, CodeCatalystAsyncClientBuilder, CodeCommitAsyncClientBuilder, CodeDeployAsyncClientBuilder, CodeGuruProfilerAsyncClientBuilder, CodeGuruReviewerAsyncClientBuilder, CodeGuruSecurityAsyncClientBuilder, CodePipelineAsyncClientBuilder, CodeStarAsyncClientBuilder, CodeStarConnectionsAsyncClientBuilder, CodestarNotificationsAsyncClientBuilder, CognitoIdentityAsyncClientBuilder, CognitoIdentityProviderAsyncClientBuilder, CognitoSyncAsyncClientBuilder, ComprehendAsyncClientBuilder, ComprehendMedicalAsyncClientBuilder, ComputeOptimizerAsyncClientBuilder, ConfigAsyncClientBuilder, ConnectAsyncClientBuilder, ConnectCampaignsAsyncClientBuilder, ConnectCasesAsyncClientBuilder, ConnectContactLensAsyncClientBuilder, ConnectParticipantAsyncClientBuilder, ControlTowerAsyncClientBuilder, CostAndUsageReportAsyncClientBuilder, CostExplorerAsyncClientBuilder, CostOptimizationHubAsyncClientBuilder, CustomerProfilesAsyncClientBuilder, DatabaseMigrationAsyncClientBuilder, DataBrewAsyncClientBuilder, DataExchangeAsyncClientBuilder, DataPipelineAsyncClientBuilder, DataSyncAsyncClientBuilder, DataZoneAsyncClientBuilder, DaxAsyncClientBuilder, DetectiveAsyncClientBuilder, DeviceFarmAsyncClientBuilder, DevOpsGuruAsyncClientBuilder, DirectConnectAsyncClientBuilder, DirectoryAsyncClientBuilder, DlmAsyncClientBuilder, DocDbAsyncClientBuilder, DocDbElasticAsyncClientBuilder, DrsAsyncClientBuilder, DynamoDbAsyncClientBuilder, DynamoDbStreamsAsyncClientBuilder, EbsAsyncClientBuilder, Ec2AsyncClientBuilder, Ec2InstanceConnectAsyncClientBuilder, EcrAsyncClientBuilder, EcrPublicAsyncClientBuilder, EcsAsyncClientBuilder, EfsAsyncClientBuilder, EksAsyncClientBuilder, EksAuthAsyncClientBuilder, ElastiCacheAsyncClientBuilder, ElasticBeanstalkAsyncClientBuilder, ElasticInferenceAsyncClientBuilder, ElasticLoadBalancingAsyncClientBuilder, ElasticLoadBalancingV2AsyncClientBuilder, ElasticsearchAsyncClientBuilder, ElasticTranscoderAsyncClientBuilder, EmrAsyncClientBuilder, EmrContainersAsyncClientBuilder, EmrServerlessAsyncClientBuilder, EntityResolutionAsyncClientBuilder, EventBridgeAsyncClientBuilder, EvidentlyAsyncClientBuilder, FinspaceAsyncClientBuilder, FinspaceDataAsyncClientBuilder, FirehoseAsyncClientBuilder, FisAsyncClientBuilder, FmsAsyncClientBuilder, ForecastAsyncClientBuilder, ForecastqueryAsyncClientBuilder, FraudDetectorAsyncClientBuilder, FreeTierAsyncClientBuilder, FSxAsyncClientBuilder, GameLiftAsyncClientBuilder, GlacierAsyncClientBuilder, GlobalAcceleratorAsyncClientBuilder, GlueAsyncClientBuilder, GrafanaAsyncClientBuilder, GreengrassAsyncClientBuilder, GreengrassV2AsyncClientBuilder, GroundStationAsyncClientBuilder, GuardDutyAsyncClientBuilder, HealthAsyncClientBuilder, HealthLakeAsyncClientBuilder, HoneycodeAsyncClientBuilder, IamAsyncClientBuilder, IdentitystoreAsyncClientBuilder, ImagebuilderAsyncClientBuilder, Inspector2AsyncClientBuilder, InspectorAsyncClientBuilder, InspectorScanAsyncClientBuilder, InternetMonitorAsyncClientBuilder, Iot1ClickDevicesAsyncClientBuilder, Iot1ClickProjectsAsyncClientBuilder, IoTAnalyticsAsyncClientBuilder, IotAsyncClientBuilder, IotDataPlaneAsyncClientBuilder, IotDeviceAdvisorAsyncClientBuilder, IotEventsAsyncClientBuilder, IotEventsDataAsyncClientBuilder, IoTFleetHubAsyncClientBuilder, IoTFleetWiseAsyncClientBuilder, IotJobsDataPlaneAsyncClientBuilder, IoTSecureTunnelingAsyncClientBuilder, IoTSiteWiseAsyncClientBuilder, IoTThingsGraphAsyncClientBuilder, IoTTwinMakerAsyncClientBuilder, IotWirelessAsyncClientBuilder, IvsAsyncClientBuilder, IvschatAsyncClientBuilder, IvsRealTimeAsyncClientBuilder, KafkaAsyncClientBuilder, KafkaConnectAsyncClientBuilder, KendraAsyncClientBuilder, KendraRankingAsyncClientBuilder, KeyspacesAsyncClientBuilder, KinesisAnalyticsAsyncClientBuilder, KinesisAnalyticsV2AsyncClientBuilder, KinesisAsyncClientBuilder, KinesisVideoArchivedMediaAsyncClientBuilder, KinesisVideoAsyncClientBuilder, KinesisVideoMediaAsyncClientBuilder, KinesisVideoSignalingAsyncClientBuilder, KinesisVideoWebRtcStorageAsyncClientBuilder, KmsAsyncClientBuilder, LakeFormationAsyncClientBuilder, LambdaAsyncClientBuilder, LaunchWizardAsyncClientBuilder, LexModelBuildingAsyncClientBuilder, LexModelsV2AsyncClientBuilder, LexRuntimeAsyncClientBuilder, LexRuntimeV2AsyncClientBuilder, LicenseManagerAsyncClientBuilder, LicenseManagerLinuxSubscriptionsAsyncClientBuilder, LicenseManagerUserSubscriptionsAsyncClientBuilder, LightsailAsyncClientBuilder, LocationAsyncClientBuilder, LookoutEquipmentAsyncClientBuilder, LookoutMetricsAsyncClientBuilder, LookoutVisionAsyncClientBuilder, M2AsyncClientBuilder, MachineLearningAsyncClientBuilder, Macie2AsyncClientBuilder, ManagedBlockchainAsyncClientBuilder, ManagedBlockchainQueryAsyncClientBuilder, MarketplaceAgreementAsyncClientBuilder, MarketplaceCatalogAsyncClientBuilder, MarketplaceCommerceAnalyticsAsyncClientBuilder, MarketplaceDeploymentAsyncClientBuilder, MarketplaceEntitlementAsyncClientBuilder, MarketplaceMeteringAsyncClientBuilder, MediaConnectAsyncClientBuilder, MediaConvertAsyncClientBuilder, MediaLiveAsyncClientBuilder, MediaPackageAsyncClientBuilder, MediaPackageV2AsyncClientBuilder, MediaPackageVodAsyncClientBuilder, MediaStoreAsyncClientBuilder, MediaStoreDataAsyncClientBuilder, MediaTailorAsyncClientBuilder, MedicalImagingAsyncClientBuilder, MemoryDbAsyncClientBuilder, MgnAsyncClientBuilder, MigrationHubAsyncClientBuilder, MigrationHubConfigAsyncClientBuilder, MigrationHubOrchestratorAsyncClientBuilder, MigrationHubRefactorSpacesAsyncClientBuilder, MigrationHubStrategyAsyncClientBuilder, MobileAsyncClientBuilder, MqAsyncClientBuilder, MTurkAsyncClientBuilder, MwaaAsyncClientBuilder, NeptuneAsyncClientBuilder, NeptunedataAsyncClientBuilder, NeptuneGraphAsyncClientBuilder, NetworkFirewallAsyncClientBuilder, NetworkManagerAsyncClientBuilder, NetworkMonitorAsyncClientBuilder, NimbleAsyncClientBuilder, OamAsyncClientBuilder, OmicsAsyncClientBuilder, OpenSearchAsyncClientBuilder, OpenSearchServerlessAsyncClientBuilder, OpsWorksAsyncClientBuilder, OpsWorksCmAsyncClientBuilder, OrganizationsAsyncClientBuilder, OsisAsyncClientBuilder, OutpostsAsyncClientBuilder, PanoramaAsyncClientBuilder, PaymentCryptographyAsyncClientBuilder, PaymentCryptographyDataAsyncClientBuilder, PcaConnectorAdAsyncClientBuilder, PersonalizeAsyncClientBuilder, PersonalizeEventsAsyncClientBuilder, PersonalizeRuntimeAsyncClientBuilder, PiAsyncClientBuilder, PinpointAsyncClientBuilder, PinpointEmailAsyncClientBuilder, PinpointSmsVoiceAsyncClientBuilder, PinpointSmsVoiceV2AsyncClientBuilder, PipesAsyncClientBuilder, PollyAsyncClientBuilder, PricingAsyncClientBuilder, PrivateNetworksAsyncClientBuilder, ProtonAsyncClientBuilder, QBusinessAsyncClientBuilder, QConnectAsyncClientBuilder, QldbAsyncClientBuilder, QldbSessionAsyncClientBuilder, QuickSightAsyncClientBuilder, RamAsyncClientBuilder, RbinAsyncClientBuilder, RdsAsyncClientBuilder, RdsDataAsyncClientBuilder, RedshiftAsyncClientBuilder, RedshiftDataAsyncClientBuilder, RedshiftServerlessAsyncClientBuilder, RekognitionAsyncClientBuilder, RepostspaceAsyncClientBuilder, ResiliencehubAsyncClientBuilder, ResourceExplorer2AsyncClientBuilder, ResourceGroupsAsyncClientBuilder, ResourceGroupsTaggingApiAsyncClientBuilder, RoboMakerAsyncClientBuilder, RolesAnywhereAsyncClientBuilder, Route53AsyncClientBuilder, Route53DomainsAsyncClientBuilder, Route53RecoveryClusterAsyncClientBuilder, Route53RecoveryControlConfigAsyncClientBuilder, Route53RecoveryReadinessAsyncClientBuilder, Route53ResolverAsyncClientBuilder, RumAsyncClientBuilder, S3AsyncClientBuilder, S3ControlAsyncClientBuilder, S3OutpostsAsyncClientBuilder, SageMakerA2IRuntimeAsyncClientBuilder, SageMakerAsyncClientBuilder, SagemakerEdgeAsyncClientBuilder, SageMakerFeatureStoreRuntimeAsyncClientBuilder, SageMakerGeospatialAsyncClientBuilder, SageMakerMetricsAsyncClientBuilder, SageMakerRuntimeAsyncClientBuilder, SavingsplansAsyncClientBuilder, SchedulerAsyncClientBuilder, SchemasAsyncClientBuilder, SecretsManagerAsyncClientBuilder, SecurityHubAsyncClientBuilder, SecurityLakeAsyncClientBuilder, ServerlessApplicationRepositoryAsyncClientBuilder, ServiceCatalogAppRegistryAsyncClientBuilder, ServiceCatalogAsyncClientBuilder, ServiceDiscoveryAsyncClientBuilder, ServiceQuotasAsyncClientBuilder, SesAsyncClientBuilder, SesV2AsyncClientBuilder, SfnAsyncClientBuilder, ShieldAsyncClientBuilder, SignerAsyncClientBuilder, SimSpaceWeaverAsyncClientBuilder, SmsAsyncClientBuilder, SnowballAsyncClientBuilder, SnowDeviceManagementAsyncClientBuilder, SnsAsyncClientBuilder, SqsAsyncClientBuilder, SsmAsyncClientBuilder, SsmContactsAsyncClientBuilder, SsmIncidentsAsyncClientBuilder, SsmSapAsyncClientBuilder, SsoAdminAsyncClientBuilder, SsoAsyncClientBuilder, SsoOidcAsyncClientBuilder, StorageGatewayAsyncClientBuilder, StsAsyncClientBuilder, SupplyChainAsyncClientBuilder, SupportAppAsyncClientBuilder, SupportAsyncClientBuilder, SwfAsyncClientBuilder, SyntheticsAsyncClientBuilder, TextractAsyncClientBuilder, TimestreamInfluxDbAsyncClientBuilder, TimestreamQueryAsyncClientBuilder, TimestreamWriteAsyncClientBuilder, TnbAsyncClientBuilder, TranscribeAsyncClientBuilder, TranscribeStreamingAsyncClientBuilder, TransferAsyncClientBuilder, TranslateAsyncClientBuilder, TrustedAdvisorAsyncClientBuilder, VerifiedPermissionsAsyncClientBuilder, VoiceIdAsyncClientBuilder, VpcLatticeAsyncClientBuilder, WafAsyncClientBuilder, WafRegionalAsyncClientBuilder, Wafv2AsyncClientBuilder, WellArchitectedAsyncClientBuilder, WisdomAsyncClientBuilder, WorkDocsAsyncClientBuilder, WorkLinkAsyncClientBuilder, WorkMailAsyncClientBuilder, WorkMailMessageFlowAsyncClientBuilder, WorkSpacesAsyncClientBuilder, WorkSpacesThinClientAsyncClientBuilder, WorkSpacesWebAsyncClientBuilder, XRayAsyncClientBuilder

public interface SdkAsyncClientBuilder<B extends SdkAsyncClientBuilder<B,C>,C>
This includes required and optional override configuration required by every async client builder. An instance can be acquired by calling the static "builder" method on the type of async client you wish to create.

Implementations of this interface are mutable and not thread-safe.

  • Method Details

    • asyncConfiguration

      B asyncConfiguration(ClientAsyncConfiguration clientAsyncConfiguration)
      Specify overrides to the default SDK async configuration that should be used for clients created by this builder.
    • asyncConfiguration

      default B asyncConfiguration(Consumer<ClientAsyncConfiguration.Builder> clientAsyncConfiguration)
      Similar to asyncConfiguration(ClientAsyncConfiguration), but takes a lambda to configure a new ClientAsyncConfiguration.Builder. This removes the need to called ClientAsyncConfiguration.builder() and SdkBuilder.build().
    • httpClient

      B httpClient(SdkAsyncHttpClient httpClient)
      Sets the SdkAsyncHttpClient that the SDK service client will use to make HTTP calls. This HTTP client may be shared between multiple SDK service clients to share a common connection pool. To create a client you must use an implementation specific builder. Note that this method is only recommended when you wish to share an HTTP client across multiple SDK service clients. If you do not wish to share HTTP clients, it is recommended to use httpClientBuilder(SdkAsyncHttpClient.Builder) so that service specific default configuration may be applied.

      This client must be closed by the caller when it is ready to be disposed. The SDK will not close the HTTP client when the service client is closed.

      Returns:
      This builder for method chaining.
    • httpClientBuilder

      B httpClientBuilder(SdkAsyncHttpClient.Builder httpClientBuilder)
      Sets a custom HTTP client builder that will be used to obtain a configured instance of SdkAsyncHttpClient. Any service specific HTTP configuration will be merged with the builder's configuration prior to creating the client. When there is no desire to share HTTP clients across multiple service clients, the client builder is the preferred way to customize the HTTP client as it benefits from service specific defaults.

      Clients created by the builder are managed by the SDK and will be closed when the service client is closed.

      Returns:
      This builder for method chaining.