2525 ObservabilityPipelineConfig .JSON_PROPERTY_PIPELINE_TYPE ,
2626 ObservabilityPipelineConfig .JSON_PROPERTY_PROCESSOR_GROUPS ,
2727 ObservabilityPipelineConfig .JSON_PROPERTY_PROCESSORS ,
28- ObservabilityPipelineConfig .JSON_PROPERTY_SOURCES
28+ ObservabilityPipelineConfig .JSON_PROPERTY_SOURCES ,
29+ ObservabilityPipelineConfig .JSON_PROPERTY_USE_LEGACY_SEARCH_SYNTAX
2930})
3031@ jakarta .annotation .Generated (
3132 value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
@@ -47,6 +48,9 @@ public class ObservabilityPipelineConfig {
4748 public static final String JSON_PROPERTY_SOURCES = "sources" ;
4849 private List <ObservabilityPipelineConfigSourceItem > sources = new ArrayList <>();
4950
51+ public static final String JSON_PROPERTY_USE_LEGACY_SEARCH_SYNTAX = "use_legacy_search_syntax" ;
52+ private Boolean useLegacySearchSyntax ;
53+
5054 public ObservabilityPipelineConfig () {}
5155
5256 @ JsonCreator
@@ -222,6 +226,31 @@ public void setSources(List<ObservabilityPipelineConfigSourceItem> sources) {
222226 this .sources = sources ;
223227 }
224228
229+ public ObservabilityPipelineConfig useLegacySearchSyntax (Boolean useLegacySearchSyntax ) {
230+ this .useLegacySearchSyntax = useLegacySearchSyntax ;
231+ return this ;
232+ }
233+
234+ /**
235+ * <strong>Warning</strong>: Use this field only when migrating existing pipelines from the legacy
236+ * search syntax to the new search syntax. Requires Observability Pipelines Worker version 2.11 or
237+ * later. See <a
238+ * href="https://docs.datadoghq.com/observability_pipelines/guide/upgrade_your_filter_queries_to_the_new_search_syntax/">Upgrade
239+ * Your Filter Queries to the New Search Syntax</a> for more information.
240+ *
241+ * @return useLegacySearchSyntax
242+ */
243+ @ jakarta .annotation .Nullable
244+ @ JsonProperty (JSON_PROPERTY_USE_LEGACY_SEARCH_SYNTAX )
245+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
246+ public Boolean getUseLegacySearchSyntax () {
247+ return useLegacySearchSyntax ;
248+ }
249+
250+ public void setUseLegacySearchSyntax (Boolean useLegacySearchSyntax ) {
251+ this .useLegacySearchSyntax = useLegacySearchSyntax ;
252+ }
253+
225254 /**
226255 * A container for additional, undeclared properties. This is a holder for any undeclared
227256 * properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -283,14 +312,22 @@ public boolean equals(Object o) {
283312 && Objects .equals (this .processorGroups , observabilityPipelineConfig .processorGroups )
284313 && Objects .equals (this .processors , observabilityPipelineConfig .processors )
285314 && Objects .equals (this .sources , observabilityPipelineConfig .sources )
315+ && Objects .equals (
316+ this .useLegacySearchSyntax , observabilityPipelineConfig .useLegacySearchSyntax )
286317 && Objects .equals (
287318 this .additionalProperties , observabilityPipelineConfig .additionalProperties );
288319 }
289320
290321 @ Override
291322 public int hashCode () {
292323 return Objects .hash (
293- destinations , pipelineType , processorGroups , processors , sources , additionalProperties );
324+ destinations ,
325+ pipelineType ,
326+ processorGroups ,
327+ processors ,
328+ sources ,
329+ useLegacySearchSyntax ,
330+ additionalProperties );
294331 }
295332
296333 @ Override
@@ -302,6 +339,9 @@ public String toString() {
302339 sb .append (" processorGroups: " ).append (toIndentedString (processorGroups )).append ("\n " );
303340 sb .append (" processors: " ).append (toIndentedString (processors )).append ("\n " );
304341 sb .append (" sources: " ).append (toIndentedString (sources )).append ("\n " );
342+ sb .append (" useLegacySearchSyntax: " )
343+ .append (toIndentedString (useLegacySearchSyntax ))
344+ .append ("\n " );
305345 sb .append (" additionalProperties: " )
306346 .append (toIndentedString (additionalProperties ))
307347 .append ("\n " );
0 commit comments