/** * Sets the endpoint configuration (service endpoint & signing region) to be used for requests. If neither region {@link #withRegion(String)} * or endpoint configuration are explicitly provided in the builder the {@link #DEFAULT_REGION_PROVIDER} is consulted. * * <p><b>Only use this if using a non-standard service endpoint - the recommended approach for configuring a client is to use {@link #withRegion(String)}</b> * * @param endpointConfiguration The endpointConfiguration to use * @return This object for method chaining. */ public final Subclass withEndpointConfiguration(EndpointConfiguration endpointConfiguration) { this.endpointConfiguration = endpointConfiguration; return getSubclass(); }
/** * 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 {@link #setEndpointConfiguration(EndpointConfiguration)} * are explicitly provided in the builder the {@link #DEFAULT_REGION_PROVIDER} is consulted. * * @param region Region to use, this will be used to determine both service endpoint * and the signing region * @return This object for method chaining. */ private Subclass withRegion(Region region) { this.region = region; return getSubclass(); }
/** * Sets a custom RequestMetricCollector to use for the client. * * @param metrics Custom RequestMetricCollector to use. * @return This object for method chaining. */ public final Subclass withMetricsCollector(RequestMetricCollector metrics) { setMetricsCollector(metrics); return getSubclass(); }
/** * Sets the AWSCredentialsProvider used by the client. If not specified the default is {@link * DefaultAWSCredentialsProviderChain}. * * @param credentialsProvider New AWSCredentialsProvider to use. * @return This object for method chaining. */ public final Subclass withCredentials(AWSCredentialsProvider credentialsProvider) { setCredentials(credentialsProvider); return getSubclass(); }
/** * Sets the ClientConfiguration to be used by the client. If not specified the default is * typically {@link PredefinedClientConfigurations#defaultConfig} but may differ per service. * * @param config Custom configuration to use * @return This object for method chaining. */ public final Subclass withClientConfiguration(ClientConfiguration config) { setClientConfiguration(config); return getSubclass(); }
/** * Sets the request handlers to use in the client. * * @param handlers Request handlers to use for client. * @return This object for method chaining. */ public final Subclass withRequestHandlers(RequestHandler2... handlers) { setRequestHandlers(handlers); return getSubclass(); }
/** * Sets a custom MonitoringListener to use for the client. * * @param monitoringListener Custom MonitoringListener to use. * @return This object for method chaining. */ public final Subclass withMonitoringListener(MonitoringListener monitoringListener) { setMonitoringListener(monitoringListener); return getSubclass(); }
public Subclass withClientSideMonitoringConfigurationProvider( CsmConfigurationProvider csmConfig) { setClientSideMonitoringConfigurationProvider(csmConfig); return getSubclass(); }
/** * Sets the endpoint configuration (service endpoint & signing region) to be used for requests. If neither region {@link #withRegion(String)} * or endpoint configuration are explicitly provided in the builder the {@link #DEFAULT_REGION_PROVIDER} is consulted. * * <p><b>Only use this if using a non-standard service endpoint - the recommended approach for configuring a client is to use {@link #withRegion(String)}</b> * * @param endpointConfiguration The endpointConfiguration to use * @return This object for method chaining. */ public final Subclass withEndpointConfiguration(EndpointConfiguration endpointConfiguration) { this.endpointConfiguration = endpointConfiguration; return getSubclass(); }
/** * 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 {@link #setEndpointConfiguration(EndpointConfiguration)} * are explicitly provided in the builder the {@link #DEFAULT_REGION_PROVIDER} is consulted. * * @param region Region to use, this will be used to determine both service endpoint * and the signing region * @return This object for method chaining. */ private Subclass withRegion(Region region) { this.region = region; return getSubclass(); }
/** * Sets the request handlers to use in the client. * * @param handlers Request handlers to use for client. * @return This object for method chaining. */ public final Subclass withRequestHandlers(RequestHandler2... handlers) { setRequestHandlers(handlers); return getSubclass(); }
/** * Sets the ClientConfiguration to be used by the client. If not specified the default is * typically {@link PredefinedClientConfigurations#defaultConfig} but may differ per service. * * @param config Custom configuration to use * @return This object for method chaining. */ public final Subclass withClientConfiguration(ClientConfiguration config) { setClientConfiguration(config); return getSubclass(); }
public Subclass withClientSideMonitoringConfigurationProvider( CsmConfigurationProvider csmConfig) { setClientSideMonitoringConfigurationProvider(csmConfig); return getSubclass(); }
/** * Sets the AWSCredentialsProvider used by the client. If not specified the default is {@link * DefaultAWSCredentialsProviderChain}. * * @param credentialsProvider New AWSCredentialsProvider to use. * @return This object for method chaining. */ public final Subclass withCredentials(AWSCredentialsProvider credentialsProvider) { setCredentials(credentialsProvider); return getSubclass(); }
/** * Sets a custom RequestMetricCollector to use for the client. * * @param metrics Custom RequestMetricCollector to use. * @return This object for method chaining. */ public final Subclass withMetricsCollector(RequestMetricCollector metrics) { setMetricsCollector(metrics); return getSubclass(); }
/** * Sets a custom MonitoringListener to use for the client. * * @param monitoringListener Custom MonitoringListener to use. * @return This object for method chaining. */ public final Subclass withMonitoringListener(MonitoringListener monitoringListener) { setMonitoringListener(monitoringListener); return getSubclass(); }
/** * Sets the AWSCredentialsProvider used by the client. If not specified the default is {@link * DefaultAWSCredentialsProviderChain}. * * @param credentialsProvider New AWSCredentialsProvider to use. * @return This object for method chaining. */ public final Subclass withCredentials(AWSCredentialsProvider credentialsProvider) { setCredentials(credentialsProvider); return getSubclass(); }
/** * Sets the request handlers to use in the client. * * @param handlers Request handlers to use for client. * @return This object for method chaining. */ public final Subclass withRequestHandlers(RequestHandler2... handlers) { setRequestHandlers(handlers); return getSubclass(); }
/** * Sets the ClientConfiguration to be used by the client. If not specified the default is * typically {@link PredefinedClientConfigurations#defaultConfig} but may differ per service. * * @param config Custom configuration to use * @return This object for method chaining. */ public final Subclass withClientConfiguration(ClientConfiguration config) { setClientConfiguration(config); return getSubclass(); }
/** * Sets a custom RequestMetricCollector to use for the client. * * @param metrics Custom RequestMetricCollector to use. * @return This object for method chaining. */ public final Subclass withMetricsCollector(RequestMetricCollector metrics) { setMetricsCollector(metrics); return getSubclass(); }