public PropertiesProcessor getTriggerPropertiesProcessor()

in amazon-sns-trigger-server/src/main/java/jetbrains/buildServer/clouds/amazon/sns/trigger/service/SnsBuildTriggerService.java [78:89]


  public PropertiesProcessor getTriggerPropertiesProcessor() {
    return properties -> {
      ArrayList<InvalidProperty> result = new ArrayList<>(2);
      String triggerId = properties.get(AwsSnsTriggerConstants.TRIGGER_UUID_PROPERTY_KEY);

      if (Strings.isBlank(triggerId)) {
        result.add(new InvalidProperty(AwsSnsTriggerConstants.TRIGGER_UUID_PROPERTY_KEY, "is mandatory"));
      }

      return result;
    };
  }