- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
35 lines
1.2 KiB
Java
35 lines
1.2 KiB
Java
package com.amazonaws.internal.config;
|
|
|
|
import java.util.regex.Pattern;
|
|
import java.util.regex.PatternSyntaxException;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class HostRegexToRegionMapping {
|
|
public final String hostNameRegex;
|
|
public final String regionName;
|
|
|
|
public String getHostNameRegex() {
|
|
return this.hostNameRegex;
|
|
}
|
|
|
|
public String getRegionName() {
|
|
return this.regionName;
|
|
}
|
|
|
|
public HostRegexToRegionMapping(String str, String str2) {
|
|
if (str == null || str.isEmpty()) {
|
|
throw new IllegalArgumentException("Invalid HostRegexToRegionMapping configuration: hostNameRegex must be non-empty");
|
|
}
|
|
try {
|
|
Pattern.compile(str);
|
|
if (str2 == null || str2.isEmpty()) {
|
|
throw new IllegalArgumentException("Invalid HostRegexToRegionMapping configuration: regionName must be non-empty");
|
|
}
|
|
this.hostNameRegex = str;
|
|
this.regionName = str2;
|
|
} catch (PatternSyntaxException e) {
|
|
throw new IllegalArgumentException("Invalid HostRegexToRegionMapping configuration: hostNameRegex is not a valid regex", e);
|
|
}
|
|
}
|
|
}
|