getSchemas() {
+ return EmbeddedAppWidgetInputValue.schemas;
+ }
+
+ /**
+ * Set the instance that matches the oneOf child schema, check the instance parameter is valid
+ * against the oneOf child schemas: String, Double, Boolean, Map<String, Object>,
+ * EmbeddedAppWidgetInputValueStringArray, EmbeddedAppWidgetInputValueNumberArray,
+ * EmbeddedAppWidgetInputValueBooleanArray, EmbeddedAppWidgetInputValueObjectArray
+ *
+ * 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(String.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+ if (JSON.isInstanceOf(Double.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+ if (JSON.isInstanceOf(Boolean.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+ if (JSON.isInstanceOf(Map.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+ if (JSON.isInstanceOf(
+ EmbeddedAppWidgetInputValueStringArray.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+ if (JSON.isInstanceOf(
+ EmbeddedAppWidgetInputValueNumberArray.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+ if (JSON.isInstanceOf(
+ EmbeddedAppWidgetInputValueBooleanArray.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+ if (JSON.isInstanceOf(
+ EmbeddedAppWidgetInputValueObjectArray.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 String, Double, Boolean, Map,"
+ + " EmbeddedAppWidgetInputValueStringArray, EmbeddedAppWidgetInputValueNumberArray,"
+ + " EmbeddedAppWidgetInputValueBooleanArray, EmbeddedAppWidgetInputValueObjectArray");
+ }
+
+ /**
+ * Get the actual instance, which can be the following: String, Double, Boolean, Map<String,
+ * Object>, EmbeddedAppWidgetInputValueStringArray, EmbeddedAppWidgetInputValueNumberArray,
+ * EmbeddedAppWidgetInputValueBooleanArray, EmbeddedAppWidgetInputValueObjectArray
+ *
+ * @return The actual instance (String, Double, Boolean, Map<String, Object>,
+ * EmbeddedAppWidgetInputValueStringArray, EmbeddedAppWidgetInputValueNumberArray,
+ * EmbeddedAppWidgetInputValueBooleanArray, EmbeddedAppWidgetInputValueObjectArray)
+ */
+ @Override
+ public Object getActualInstance() {
+ return super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `String`. If the actual instance is not `String`, the
+ * ClassCastException will be thrown.
+ *
+ * @return The actual instance of `String`
+ * @throws ClassCastException if the instance is not `String`
+ */
+ public String getString() throws ClassCastException {
+ return (String) super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `Double`. If the actual instance is not `Double`, the
+ * ClassCastException will be thrown.
+ *
+ * @return The actual instance of `Double`
+ * @throws ClassCastException if the instance is not `Double`
+ */
+ public Double getDouble() throws ClassCastException {
+ return (Double) super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `Boolean`. If the actual instance is not `Boolean`, the
+ * ClassCastException will be thrown.
+ *
+ * @return The actual instance of `Boolean`
+ * @throws ClassCastException if the instance is not `Boolean`
+ */
+ public Boolean getBoolean() throws ClassCastException {
+ return (Boolean) super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `Map<String, Object>`. If the actual instance is not
+ * `Map<String, Object>`, the ClassCastException will be thrown.
+ *
+ * @return The actual instance of `Map<String, Object>`
+ * @throws ClassCastException if the instance is not `Map<String, Object>`
+ */
+ public Map getMap() throws ClassCastException {
+ return (Map) super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `EmbeddedAppWidgetInputValueStringArray`. If the actual instance is
+ * not `EmbeddedAppWidgetInputValueStringArray`, the ClassCastException will be thrown.
+ *
+ * @return The actual instance of `EmbeddedAppWidgetInputValueStringArray`
+ * @throws ClassCastException if the instance is not `EmbeddedAppWidgetInputValueStringArray`
+ */
+ public EmbeddedAppWidgetInputValueStringArray getEmbeddedAppWidgetInputValueStringArray()
+ throws ClassCastException {
+ return (EmbeddedAppWidgetInputValueStringArray) super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `EmbeddedAppWidgetInputValueNumberArray`. If the actual instance is
+ * not `EmbeddedAppWidgetInputValueNumberArray`, the ClassCastException will be thrown.
+ *
+ * @return The actual instance of `EmbeddedAppWidgetInputValueNumberArray`
+ * @throws ClassCastException if the instance is not `EmbeddedAppWidgetInputValueNumberArray`
+ */
+ public EmbeddedAppWidgetInputValueNumberArray getEmbeddedAppWidgetInputValueNumberArray()
+ throws ClassCastException {
+ return (EmbeddedAppWidgetInputValueNumberArray) super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `EmbeddedAppWidgetInputValueBooleanArray`. If the actual instance is
+ * not `EmbeddedAppWidgetInputValueBooleanArray`, the ClassCastException will be thrown.
+ *
+ * @return The actual instance of `EmbeddedAppWidgetInputValueBooleanArray`
+ * @throws ClassCastException if the instance is not `EmbeddedAppWidgetInputValueBooleanArray`
+ */
+ public EmbeddedAppWidgetInputValueBooleanArray getEmbeddedAppWidgetInputValueBooleanArray()
+ throws ClassCastException {
+ return (EmbeddedAppWidgetInputValueBooleanArray) super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `EmbeddedAppWidgetInputValueObjectArray`. If the actual instance is
+ * not `EmbeddedAppWidgetInputValueObjectArray`, the ClassCastException will be thrown.
+ *
+ * @return The actual instance of `EmbeddedAppWidgetInputValueObjectArray`
+ * @throws ClassCastException if the instance is not `EmbeddedAppWidgetInputValueObjectArray`
+ */
+ public EmbeddedAppWidgetInputValueObjectArray getEmbeddedAppWidgetInputValueObjectArray()
+ throws ClassCastException {
+ return (EmbeddedAppWidgetInputValueObjectArray) super.getActualInstance();
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleActionLog.java b/src/main/java/com/datadog/api/client/v1/model/EmbeddedAppWidgetInputValueBooleanArray.java
similarity index 53%
rename from src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleActionLog.java
rename to src/main/java/com/datadog/api/client/v1/model/EmbeddedAppWidgetInputValueBooleanArray.java
index c7fb6c78983..eb243e655fb 100644
--- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleActionLog.java
+++ b/src/main/java/com/datadog/api/client/v1/model/EmbeddedAppWidgetInputValueBooleanArray.java
@@ -4,73 +4,29 @@
* Copyright 2019-Present Datadog, Inc.
*/
-package com.datadog.api.client.v2.model;
+package com.datadog.api.client.v1.model;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.ArrayList;
import java.util.HashMap;
+import java.util.List;
import java.util.Map;
import java.util.Objects;
-/** The log action applied when the rule is triggered. */
-@JsonPropertyOrder({
- CloudWorkloadSecurityAgentRuleActionLog.JSON_PROPERTY_LEVEL,
- CloudWorkloadSecurityAgentRuleActionLog.JSON_PROPERTY_MESSAGE
-})
+/** An array of boolean values passed to the embedded app. */
+@JsonPropertyOrder({})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class CloudWorkloadSecurityAgentRuleActionLog {
+public class EmbeddedAppWidgetInputValueBooleanArray extends ArrayList {
@JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_LEVEL = "level";
- private String level;
- public static final String JSON_PROPERTY_MESSAGE = "message";
- private String message;
+ public EmbeddedAppWidgetInputValueBooleanArray() {}
- public CloudWorkloadSecurityAgentRuleActionLog level(String level) {
- this.level = level;
- return this;
- }
-
- /**
- * The level of the log action.
- *
- * @return level
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_LEVEL)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getLevel() {
- return level;
- }
-
- public void setLevel(String level) {
- this.level = level;
- }
-
- public CloudWorkloadSecurityAgentRuleActionLog message(String message) {
- this.message = message;
- return this;
- }
-
- /**
- * The message of the log action.
- *
- * @return message
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_MESSAGE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getMessage() {
- return message;
- }
-
- public void setMessage(String message) {
- this.message = message;
+ public EmbeddedAppWidgetInputValueBooleanArray(List items) {
+ super(items);
}
/**
@@ -85,10 +41,10 @@ public void setMessage(String message) {
*
* @param key The arbitrary key to set
* @param value The associated value
- * @return CloudWorkloadSecurityAgentRuleActionLog
+ * @return EmbeddedAppWidgetInputValueBooleanArray
*/
@JsonAnySetter
- public CloudWorkloadSecurityAgentRuleActionLog putAdditionalProperty(String key, Object value) {
+ public EmbeddedAppWidgetInputValueBooleanArray putAdditionalProperty(String key, Object value) {
if (this.additionalProperties == null) {
this.additionalProperties = new HashMap();
}
@@ -119,7 +75,7 @@ public Object getAdditionalProperty(String key) {
return this.additionalProperties.get(key);
}
- /** Return true if this CloudWorkloadSecurityAgentRuleActionLog object is equal to o. */
+ /** Return true if this EmbeddedAppWidgetInputValueBooleanArray object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -128,26 +84,19 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- CloudWorkloadSecurityAgentRuleActionLog cloudWorkloadSecurityAgentRuleActionLog =
- (CloudWorkloadSecurityAgentRuleActionLog) o;
- return Objects.equals(this.level, cloudWorkloadSecurityAgentRuleActionLog.level)
- && Objects.equals(this.message, cloudWorkloadSecurityAgentRuleActionLog.message)
- && Objects.equals(
- this.additionalProperties,
- cloudWorkloadSecurityAgentRuleActionLog.additionalProperties);
+ return super.equals(o);
}
@Override
public int hashCode() {
- return Objects.hash(level, message, additionalProperties);
+ return Objects.hash(additionalProperties, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class CloudWorkloadSecurityAgentRuleActionLog {\n");
- sb.append(" level: ").append(toIndentedString(level)).append("\n");
- sb.append(" message: ").append(toIndentedString(message)).append("\n");
+ sb.append("class EmbeddedAppWidgetInputValueBooleanArray {\n");
+ sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
diff --git a/src/main/java/com/datadog/api/client/v1/model/EmbeddedAppWidgetInputValueNumberArray.java b/src/main/java/com/datadog/api/client/v1/model/EmbeddedAppWidgetInputValueNumberArray.java
new file mode 100644
index 00000000000..1b3996c1842
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v1/model/EmbeddedAppWidgetInputValueNumberArray.java
@@ -0,0 +1,116 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v1.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+/** An array of numeric values passed to the embedded app. */
+@JsonPropertyOrder({})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class EmbeddedAppWidgetInputValueNumberArray extends ArrayList {
+ @JsonIgnore public boolean unparsed = false;
+
+ public EmbeddedAppWidgetInputValueNumberArray() {}
+
+ public EmbeddedAppWidgetInputValueNumberArray(List items) {
+ super(items);
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key The arbitrary key to set
+ * @param value The associated value
+ * @return EmbeddedAppWidgetInputValueNumberArray
+ */
+ @JsonAnySetter
+ public EmbeddedAppWidgetInputValueNumberArray putAdditionalProperty(String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return The additional properties
+ */
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key The arbitrary key to get
+ * @return The specific additional property for the given key
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ /** Return true if this EmbeddedAppWidgetInputValueNumberArray object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ return super.equals(o);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(additionalProperties, super.hashCode());
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class EmbeddedAppWidgetInputValueNumberArray {\n");
+ sb.append(" ").append(toIndentedString(super.toString())).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v1/model/EmbeddedAppWidgetInputValueObjectArray.java b/src/main/java/com/datadog/api/client/v1/model/EmbeddedAppWidgetInputValueObjectArray.java
new file mode 100644
index 00000000000..98e10a3a0b1
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v1/model/EmbeddedAppWidgetInputValueObjectArray.java
@@ -0,0 +1,116 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v1.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+/** An array of object values passed to the embedded app. */
+@JsonPropertyOrder({})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class EmbeddedAppWidgetInputValueObjectArray extends ArrayList