Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2010-2015, Inc. or its affiliates. All Rights Reserved.
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
 * or in the "license" file accompanying this file. This file is distributed
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
package com.amazonaws.internal.config;
AWS HttpClient configuration.
public class HttpClientConfig {
    // This class is not strictly necessary for the existing use cases,
    // but allows future expansion of additional configurations to be made
    // with ease.
    private final String serviceName;
    private final String regionMetadataServiceName;


serviceName The service name used for request signing. It's also used as the service identifier when looking up the region metadata if regionMetadataServiceName is not set.
regionMetadataServiceName Override value for the service name identifier when looking up the region metadata. This config is normally needed in scenarios when a common sigv4 service name is shared by multiple services that have different region metadata (for example, AmazonDynamoDBClient and AmazonDynamoDBStreamsClient share the same service name 'dynamodb' but not the same endpoint prefix).
    HttpClientConfig(String serviceNameString regionMetadataServiceName) {
        this. = serviceName;
        this. = regionMetadataServiceName;
    @Override public String toString() {
        return "serviceName: " +  + ", regionMetadataServiceName: "
                + ;
    public String getServiceName() {
        return ;
        return ;
New to GrepCode? Check out our FAQ X