// Path: appender-core/src/main/java/com/van/logging/utils/StringUtils.java
// public class StringUtils {
// 
//     /**
//      * Checks to see if a String is defined and not empty after trimming
//      *
//      * @param s the String to test
//      *
//      * @return true if the string is not null and is not empty
//      */
//     public static boolean isTruthy(String s) {
//         return (null != s && !s.trim().isEmpty());
//     }
// 
//     /**
//      * If the string passed in is not blank or null and did not end with the trailing value, then the trailing value
//      * will be appended to it in the returned value.
//      *
//      * @param s the string to conditionally add the trailing value to. If null, then null will be returned.
//      * @param trailing the trailing value to append. If null, then s will be returned unmodified.
//      *
//      * @return the string s with the trailing value appended as necessary.
//      */
//     public static String addTrailingIfNeeded(String s, String trailing) {
//         String value = s;
//         if ((null != s) && (null != trailing)) {
//             if (isTruthy(s) && !s.endsWith(trailing)) {
//                 value = s + trailing;
//             }
//         }
//         return value;
//     }
// }


import com.amazonaws.regions.Region;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.s3.model.CannedAccessControlList;
import com.van.logging.utils.StringUtils;
    }

    public boolean isCompressionEnabled() {
        return compressionEnabled;
    }
    public boolean isKeyGzSuffixEnabled() {
        return keyGzSuffixEnabled;
    }

    public void setCompressionEnabled(boolean compressionEnabled) {
        this.compressionEnabled = compressionEnabled;
    }
    public void setKeyGzSuffixEnabled(boolean gzSuffix) {
        this.keyGzSuffixEnabled = gzSuffix;
    }

    /**
     * Best-effort to map a region name to an actual Region instance. The input
     * string can be either the public region name (e.g. "us-west-1") or the
     * Regions enum ordinal name (e.g. "US_WEST_1").
     *
     * @param str the region name to map to a Region
     *
     * @return the mapped Region
     *
     * @throws IllegalArgumentException if the input name cannot be mapped to a
     *  Region.
     */
    static Region resolveRegion(String str) {
        Region region = null;
// Path: appender-core/src/main/java/com/van/logging/utils/StringUtils.java
// public class StringUtils {
// 
//     /**
//      * Checks to see if a String is defined and not empty after trimming
//      *
//      * @param s the String to test
//      *
//      * @return true if the string is not null and is not empty
//      */
//     public static boolean isTruthy(String s) {
//         return (null != s && !s.trim().isEmpty());
//     }
// 
//     /**
//      * If the string passed in is not blank or null and did not end with the trailing value, then the trailing value
//      * will be appended to it in the returned value.
//      *
//      * @param s the string to conditionally add the trailing value to. If null, then null will be returned.
//      * @param trailing the trailing value to append. If null, then s will be returned unmodified.
//      *
//      * @return the string s with the trailing value appended as necessary.
//      */
//     public static String addTrailingIfNeeded(String s, String trailing) {
//         String value = s;
//         if ((null != s) && (null != trailing)) {
//             if (isTruthy(s) && !s.endsWith(trailing)) {
//                 value = s + trailing;
//             }
//         }
//         return value;
//     }
// }


// Path: appender-core/src/main/java/com/van/logging/aws/S3Configuration.java
import com.amazonaws.regions.Region;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.s3.model.CannedAccessControlList;
import com.van.logging.utils.StringUtils;

    }

    public boolean isCompressionEnabled() {
        return compressionEnabled;
    }
    public boolean isKeyGzSuffixEnabled() {
        return keyGzSuffixEnabled;
    }

    public void setCompressionEnabled(boolean compressionEnabled) {
        this.compressionEnabled = compressionEnabled;
    }
    public void setKeyGzSuffixEnabled(boolean gzSuffix) {
        this.keyGzSuffixEnabled = gzSuffix;
    }

    /**
     * Best-effort to map a region name to an actual Region instance. The input
     * string can be either the public region name (e.g. "us-west-1") or the
     * Regions enum ordinal name (e.g. "US_WEST_1").
     *
     * @param str the region name to map to a Region
     *
     * @return the mapped Region
     *
     * @throws IllegalArgumentException if the input name cannot be mapped to a
     *  Region.
     */
    static Region resolveRegion(String str) {
        Region region = null;
        if (StringUtils.isTruthy(str)) {