@@ -35,6 +35,7 @@ public final class NotificationRequestBuilder {
3535 private List <String > excludedSegments = new ArrayList <>();
3636 private List <Filter > filters = new ArrayList <>();
3737 private List <String > includePlayerIds = new ArrayList <>();
38+ private List <String > includeExternalUserIds = new ArrayList <>();
3839 private String appId ;
3940 private List <String > appIds ;
4041 private Map <String , String > contents = new HashMap <>();
@@ -170,6 +171,18 @@ public NotificationRequestBuilder withIncludePlayerId(String includePlayerId) {
170171 return this ;
171172 }
172173
174+ public NotificationRequestBuilder withIncludeExternalUserIds (List <String > includeExternalUserIds ) {
175+ this .includeExternalUserIds = includeExternalUserIds ;
176+ return this ;
177+ }
178+
179+ public NotificationRequestBuilder withIncludeExternalUserId (String includeExternalUserId ) {
180+ if (StringUtils .isNotBlank (includeExternalUserId )) {
181+ includeExternalUserIds .add (includeExternalUserId );
182+ }
183+ return this ;
184+ }
185+
173186 public NotificationRequestBuilder withAppId (String appId ) {
174187 this .appId = appId ;
175188 return this ;
@@ -515,6 +528,7 @@ public NotificationRequest build() {
515528 notificationRequest .setExcludedSegments (excludedSegments );
516529 notificationRequest .setFilters (filters );
517530 notificationRequest .setIncludePlayerIds (includePlayerIds );
531+ notificationRequest .setIncludeExternalUserIds (includeExternalUserIds );
518532 notificationRequest .setAppId (appId );
519533 notificationRequest .setAppIds (appIds );
520534 notificationRequest .setContents (contents );
0 commit comments