public DiscoveryFilter()

in src/main/java/com/amazonaws/encryptionsdk/kms/DiscoveryFilter.java [26:40]


  public DiscoveryFilter(String partition, Collection<String> accountIds) {
    if (partition == null || partition.isEmpty()) {
      throw new IllegalArgumentException(
          "Discovery filter cannot be configured without " + "a partition.");
    } else if (accountIds == null || accountIds.isEmpty()) {
      throw new IllegalArgumentException(
          "Discovery filter cannot be configured without " + "account IDs.");
    } else if (accountIds.contains(null) || accountIds.contains("")) {
      throw new IllegalArgumentException(
          "Discovery filter cannot be configured with " + "null or empty account IDs.");
    }

    partition_ = partition;
    accountIds_ = new HashSet<String>(accountIds);
  }