additionalProperties = new HashMap<>();
+
+ private Builder() {}
+
+ @java.lang.Override
+ public Builder from(ConfiguredPropValueSql other) {
+ value(other.getValue());
+ query(other.getQuery());
+ params(other.getParams());
+ usePreparedStatements(other.getUsePreparedStatements());
+ return this;
+ }
+
+ /**
+ * The raw SQL query, as provided by the user
+ * The raw SQL query, as provided by the user
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ @JsonSetter("value")
+ public QueryStage value(@NotNull String value) {
+ this.value = Objects.requireNonNull(value, "value must not be null");
+ return this;
+ }
+
+ /**
+ * The SQL query to execute
+ * The SQL query to execute
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ @JsonSetter("query")
+ public UsePreparedStatementsStage query(@NotNull String query) {
+ this.query = Objects.requireNonNull(query, "query must not be null");
+ return this;
+ }
+
+ /**
+ * Whether to use prepared statements for the query or not
+ * Whether to use prepared statements for the query or not
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ @JsonSetter("usePreparedStatements")
+ public _FinalStage usePreparedStatements(boolean usePreparedStatements) {
+ this.usePreparedStatements = usePreparedStatements;
+ return this;
+ }
+
+ /**
+ * The list of parameters for the prepared statement
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage addAllParams(List params) {
+ this.params.addAll(params);
+ return this;
+ }
+
+ /**
+ * The list of parameters for the prepared statement
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage addParams(String params) {
+ this.params.add(params);
+ return this;
+ }
+
+ /**
+ * The list of parameters for the prepared statement
+ */
+ @java.lang.Override
+ @JsonSetter(value = "params", nulls = Nulls.SKIP)
+ public _FinalStage params(List params) {
+ this.params.clear();
+ this.params.addAll(params);
+ return this;
+ }
+
+ @java.lang.Override
+ public ConfiguredPropValueSql build() {
+ return new ConfiguredPropValueSql(value, query, params, usePreparedStatements, additionalProperties);
+ }
+ }
+}
diff --git a/src/main/java/com/pipedream/api/types/DeployedComponent.java b/src/main/java/com/pipedream/api/types/DeployedComponent.java
index 8a6e6b9..c73889a 100644
--- a/src/main/java/com/pipedream/api/types/DeployedComponent.java
+++ b/src/main/java/com/pipedream/api/types/DeployedComponent.java
@@ -32,7 +32,7 @@ public final class DeployedComponent {
private final List configurableProps;
- private final Map configuredProps;
+ private final Map configuredProps;
private final boolean active;
@@ -53,7 +53,7 @@ private DeployedComponent(
String ownerId,
String componentId,
List configurableProps,
- Map configuredProps,
+ Map configuredProps,
boolean active,
int createdAt,
int updatedAt,
@@ -107,11 +107,8 @@ public List getConfigurableProps() {
return configurableProps;
}
- /**
- * @return The configured properties of the component
- */
@JsonProperty("configured_props")
- public Map getConfiguredProps() {
+ public Map getConfiguredProps() {
return configuredProps;
}
@@ -280,14 +277,11 @@ public interface _FinalStage {
_FinalStage addAllConfigurableProps(List configurableProps);
- /**
- * The configured properties of the component
- */
- _FinalStage configuredProps(Map configuredProps);
+ _FinalStage configuredProps(Map configuredProps);
- _FinalStage putAllConfiguredProps(Map configuredProps);
+ _FinalStage putAllConfiguredProps(Map configuredProps);
- _FinalStage configuredProps(String key, Object value);
+ _FinalStage configuredProps(String key, ConfiguredPropValue value);
_FinalStage callbackObservations(Optional