Class AmazonEnvironmentAwareClientBuilder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T build​(software.amazon.awssdk.awscore.client.builder.AwsClientBuilder builder, java.lang.Class<T> clientType)
      Build the client.
      java.lang.String getSetting​(java.lang.String key)
      Gets setting.
      <T> T getSetting​(java.lang.String key, java.lang.Class<T> targetType)
      Gets setting.
      java.lang.String getSetting​(java.lang.String key, java.lang.String defaultValue)
      Gets setting.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AmazonEnvironmentAwareClientBuilder

        public AmazonEnvironmentAwareClientBuilder()
    • Method Detail

      • getSetting

        public java.lang.String getSetting​(java.lang.String key)
        Gets setting.
        Parameters:
        key - the key
        Returns:
        the setting
      • getSetting

        public java.lang.String getSetting​(java.lang.String key,
                                           java.lang.String defaultValue)
        Gets setting.
        Parameters:
        key - the key
        defaultValue - the default value
        Returns:
        the setting
      • getSetting

        public <T> T getSetting​(java.lang.String key,
                                java.lang.Class<T> targetType)
        Gets setting.
        Type Parameters:
        T - the type parameter
        Parameters:
        key - the key
        targetType - the target type
        Returns:
        the setting
      • build

        public <T> T build​(software.amazon.awssdk.awscore.client.builder.AwsClientBuilder builder,
                           java.lang.Class<T> clientType)
        Build the client.
        Type Parameters:
        T - the type parameter
        Parameters:
        builder - the builder
        clientType - the client type
        Returns:
        the client instance