JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
  • Detail:
  • Field |
  • Constr |
  • Method
com.amazonaws.client.builder

Class AwsClientBuilder<Subclass extends AwsClientBuilder,TypeToBuild>

  • Type Parameters:
    Subclass - Concrete builder type, used for better fluent methods.
    TypeToBuild - Type that this builder builds.
    Direct Known Subclasses:
    AwsAsyncClientBuilder, AwsSyncClientBuilder


    @NotThreadSafe
    public abstract class AwsClientBuilder<Subclass extends AwsClientBuilder,TypeToBuild>
    extends Object 
    Base class for all service specific client builders.
    • Method Detail

      • getCredentials

        public final AWSCredentialsProvider getCredentials()
        Gets the AWSCredentialsProvider currently configured in the builder.
      • setCredentials

        public final void setCredentials(AWSCredentialsProvider credentialsProvider)
        Sets the AWSCredentialsProvider used by the client. If not specified the default is DefaultAWSCredentialsProviderChain.
        Parameters:
        credentialsProvider - New AWSCredentialsProvider to use.
      • withCredentials

        public final Subclass withCredentials(AWSCredentialsProvider credentialsProvider)
        Sets the AWSCredentialsProvider used by the client. If not specified the default is DefaultAWSCredentialsProviderChain.
        Parameters:
        credentialsProvider - New AWSCredentialsProvider to use.
        Returns:
        This object for method chaining.
      • getClientConfiguration

        public final ClientConfiguration getClientConfiguration()
        Gets the ClientConfiguration currently configured in the builder
      • setMetricsCollector

        public final void setMetricsCollector(RequestMetricCollector metrics)
        Sets a custom RequestMetricCollector to use for the client.
        Parameters:
        metrics - Custom RequestMetricCollector to use.
      • withMetricsCollector

        public final Subclass withMetricsCollector(RequestMetricCollector metrics)
        Sets a custom RequestMetricCollector to use for the client.
        Parameters:
        metrics - Custom RequestMetricCollector to use.
        Returns:
        This object for method chaining.
      • getRegion

        public final String getRegion()
        Gets the region in use by the builder.
      • setRegion

        public final void setRegion(String region)
        Sets the region to be used by the client. This will be used to determine both the service endpoint (eg: https://sns.us-west-1.amazonaws.com) and signing region (eg: us-west-1) for requests. If neither region or endpoint configuration setEndpointConfiguration(EndpointConfiguration) are explicitly provided in the builder the DEFAULT_REGION_PROVIDER is consulted.
        Parameters:
        region - Region to use
      • withRegion

        public final Subclass withRegion(Regions region)
        Sets the region to be used by the client. This will be used to determine both the service endpoint (eg: https://sns.us-west-1.amazonaws.com) and signing region (eg: us-west-1) for requests. If neither region or endpoint configuration setEndpointConfiguration(EndpointConfiguration) are explicitly provided in the builder the DEFAULT_REGION_PROVIDER is consulted.

        For regions not explicitly in the Regions enum use the withRegion(String) overload.

        Parameters:
        region - Region to use
        Returns:
        This object for method chaining.
      • withRegion

        public final Subclass withRegion(String region)
        Sets the region to be used by the client. This will be used to determine both the service endpoint (eg: https://sns.us-west-1.amazonaws.com) and signing region (eg: us-west-1) for requests. If neither region or endpoint configuration setEndpointConfiguration(EndpointConfiguration) are explicitly provided in the builder the DEFAULT_REGION_PROVIDER is consulted.
        Parameters:
        region - Region to use
        Returns:
        This object for method chaining.
      • setEndpointConfiguration

        public final void setEndpointConfiguration(AwsClientBuilder.EndpointConfiguration endpointConfiguration)
        Sets the endpoint configuration (service endpoint & signing region) to be used for requests. If neither region setRegion(String) or endpoint configuration are explicitly provided in the builder the DEFAULT_REGION_PROVIDER is consulted.

        Only use this if using a non-standard service endpoint - the recommended approach for configuring a client is to use setRegion(String)

        Parameters:
        endpointConfiguration - The endpointConfiguration to use
      • withEndpointConfiguration

        public final Subclass withEndpointConfiguration(AwsClientBuilder.EndpointConfiguration endpointConfiguration)
        Sets the endpoint configuration (service endpoint & signing region) to be used for requests. If neither region withRegion(String) or endpoint configuration are explicitly provided in the builder the DEFAULT_REGION_PROVIDER is consulted.

        Only use this if using a non-standard service endpoint - the recommended approach for configuring a client is to use withRegion(String)

        Parameters:
        endpointConfiguration - The endpointConfiguration to use
        Returns:
        This object for method chaining.
      • getRequestHandlers

        public final List<RequestHandler2> getRequestHandlers()
        Gets the list of request handlers in use by the builder.
      • setRequestHandlers

        public final void setRequestHandlers(RequestHandler2... handlers)
        Sets the request handlers to use in the client.
        Parameters:
        handlers - Request handlers to use for client.
      • withRequestHandlers

        public final Subclass withRequestHandlers(RequestHandler2... handlers)
        Sets the request handlers to use in the client.
        Parameters:
        handlers - Request handlers to use for client.
        Returns:
        This object for method chaining.
      • setMonitoringListener

        public final void setMonitoringListener(MonitoringListener monitoringListener)
        Sets a custom MonitoringListener to use for the client.
        Parameters:
        monitoringListener - Custom Monitoring Listener to use.
      • withMonitoringListener

        public final Subclass withMonitoringListener(MonitoringListener monitoringListener)
        Sets a custom MonitoringListener to use for the client.
        Parameters:
        monitoringListener - Custom MonitoringListener to use.
        Returns:
        This object for method chaining.
      • getClientSideMonitoringConfigurationProvider

        public CsmConfigurationProvider getClientSideMonitoringConfigurationProvider()
      • setClientSideMonitoringConfigurationProvider

        public void setClientSideMonitoringConfigurationProvider(CsmConfigurationProvider csmConfig)
      • build

        public abstract TypeToBuild build()
        Builds a client with the configure properties.
        Returns:
        Client instance to make API calls with.
Skip navigation links
  • Detail:
  • Field |
  • Constr |
  • Method

AltStyle によって変換されたページ (->オリジナル) /