getSchemas() {
+ return DemInferredJourneyItem.schemas;
+ }
+
+ /**
+ * Set the instance that matches the oneOf child schema, check the instance parameter is valid
+ * against the oneOf child schemas: DemInferredJourneyCandidateData, DemInferredJourneyIgnoredData
+ *
+ * It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a
+ * composed schema (allOf, anyOf, oneOf).
+ */
+ @Override
+ public void setActualInstance(Object instance) {
+ if (JSON.isInstanceOf(
+ DemInferredJourneyCandidateData.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+ if (JSON.isInstanceOf(DemInferredJourneyIgnoredData.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+
+ if (JSON.isInstanceOf(UnparsedObject.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+ throw new RuntimeException(
+ "Invalid instance type. Must be DemInferredJourneyCandidateData,"
+ + " DemInferredJourneyIgnoredData");
+ }
+
+ /**
+ * Get the actual instance, which can be the following: DemInferredJourneyCandidateData,
+ * DemInferredJourneyIgnoredData
+ *
+ * @return The actual instance (DemInferredJourneyCandidateData, DemInferredJourneyIgnoredData)
+ */
+ @Override
+ public Object getActualInstance() {
+ return super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `DemInferredJourneyCandidateData`. If the actual instance is not
+ * `DemInferredJourneyCandidateData`, the ClassCastException will be thrown.
+ *
+ * @return The actual instance of `DemInferredJourneyCandidateData`
+ * @throws ClassCastException if the instance is not `DemInferredJourneyCandidateData`
+ */
+ public DemInferredJourneyCandidateData getDemInferredJourneyCandidateData()
+ throws ClassCastException {
+ return (DemInferredJourneyCandidateData) super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `DemInferredJourneyIgnoredData`. If the actual instance is not
+ * `DemInferredJourneyIgnoredData`, the ClassCastException will be thrown.
+ *
+ * @return The actual instance of `DemInferredJourneyIgnoredData`
+ * @throws ClassCastException if the instance is not `DemInferredJourneyIgnoredData`
+ */
+ public DemInferredJourneyIgnoredData getDemInferredJourneyIgnoredData()
+ throws ClassCastException {
+ return (DemInferredJourneyIgnoredData) super.getActualInstance();
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/DemSearchInferredJourneysResponse.java b/src/main/java/com/datadog/api/client/v2/model/DemSearchInferredJourneysResponse.java
index fe2f94d333b..46405348fa4 100644
--- a/src/main/java/com/datadog/api/client/v2/model/DemSearchInferredJourneysResponse.java
+++ b/src/main/java/com/datadog/api/client/v2/model/DemSearchInferredJourneysResponse.java
@@ -29,23 +29,31 @@
public class DemSearchInferredJourneysResponse {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_DATA = "data";
- private List