- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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);
|
|
}
|
|
}
|
|
}
|