List of usage examples for com.amazonaws ClientConfiguration ClientConfiguration
public ClientConfiguration(ClientConfiguration other)
From source file:com.alertlogic.aws.analytics.poc.Utils.java
License:Open Source License
/** * Creates a new client configuration with a uniquely identifiable value for this sample application. * // w ww .j a v a2 s . c o m * @param clientConfig The client configuration to copy. * @return A new client configuration based on the provided one with its user agent overridden. */ public static ClientConfiguration configureUserAgentForSample(ClientConfiguration clientConfig) { ClientConfiguration newConfig = new ClientConfiguration(clientConfig); StringBuilder userAgent = new StringBuilder(ClientConfiguration.DEFAULT_USER_AGENT); // Separate regions of the UserAgent with a space userAgent.append(" "); // Append the repository name followed by version number of the sample userAgent.append("alertlogic-aws-analytics-poc/1.0.0"); newConfig.setUserAgent(userAgent.toString()); return newConfig; }
From source file:com.alertlogic.aws.kinesis.test1.utils.SampleUtils.java
License:Open Source License
/** * Creates a new client configuration with a uniquely identifiable value for this sample application. * /* ww w. j a v a 2 s.c o m*/ * @param clientConfig The client configuration to copy. * @return A new client configuration based on the provided one with its user agent overridden. */ public static ClientConfiguration configureUserAgentForSample(ClientConfiguration clientConfig) { ClientConfiguration newConfig = new ClientConfiguration(clientConfig); StringBuilder userAgent = new StringBuilder(ClientConfiguration.DEFAULT_USER_AGENT); // Separate regions of the UserAgent with a space userAgent.append(" "); // Append the repository name followed by version number of the sample userAgent.append("amazon-kinesis-data-visualization-sample/1.1.1"); newConfig.setUserAgent(userAgent.toString()); return newConfig; }
From source file:com.kinesis.datavis.utils.AppUtils.java
License:Open Source License
/** * Creates a new client configuration with a uniquely identifiable value for this sample application. * /* w w w . jav a 2 s. c o m*/ * @param clientConfig The client configuration to copy. * @return A new client configuration based on the provided one with its user agent overridden. */ public static ClientConfiguration configureUserAgentForSample(ClientConfiguration clientConfig) { ClientConfiguration newConfig = new ClientConfiguration(clientConfig); StringBuilder userAgent = new StringBuilder(ClientConfiguration.DEFAULT_USER_AGENT); // Separate regions of the UserAgent with a space userAgent.append(" "); // Append the repository name followed by version number of the sample userAgent.append("amazon-kinesis-data-visualization-sample/1.1.2"); newConfig.setUserAgent(userAgent.toString()); return newConfig; }