name) {
+ this.name = name;
return this;
}
- /**
- * If true, call configureComponent for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage remoteOptions(Boolean remoteOptions) {
- this.remoteOptions = Optional.ofNullable(remoteOptions);
+ public Builder name(String name) {
+ this.name = Optional.ofNullable(name);
return this;
}
/**
- * If true, call configureComponent for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options
+ * Value to use as an input label. In cases where type is "app", should load the app via getApp, etc. and show app.name instead.
*/
- @java.lang.Override
- @JsonSetter(value = "remoteOptions", nulls = Nulls.SKIP)
- public _FinalStage remoteOptions(Optional remoteOptions) {
- this.remoteOptions = remoteOptions;
+ @JsonSetter(value = "label", nulls = Nulls.SKIP)
+ public Builder label(Optional label) {
+ this.label = label;
return this;
}
- /**
- * If true, should not expose this prop to the user
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage hidden(Boolean hidden) {
- this.hidden = Optional.ofNullable(hidden);
+ public Builder label(String label) {
+ this.label = Optional.ofNullable(label);
return this;
}
/**
- * If true, should not expose this prop to the user
+ * A description of the prop, shown to the user when configuring the component.
*/
- @java.lang.Override
- @JsonSetter(value = "hidden", nulls = Nulls.SKIP)
- public _FinalStage hidden(Optional hidden) {
- this.hidden = hidden;
+ @JsonSetter(value = "description", nulls = Nulls.SKIP)
+ public Builder description(Optional description) {
+ this.description = description;
+ return this;
+ }
+
+ public Builder description(String description) {
+ this.description = Optional.ofNullable(description);
return this;
}
/**
- * If true, this prop will be ignored.
- * @return Reference to {@code this} so that method calls can be chained together.
+ * If true, this prop does not need to be specified.
*/
- @java.lang.Override
- public _FinalStage disabled(Boolean disabled) {
- this.disabled = Optional.ofNullable(disabled);
+ @JsonSetter(value = "optional", nulls = Nulls.SKIP)
+ public Builder optional(Optional optional) {
+ this.optional = optional;
+ return this;
+ }
+
+ public Builder optional(Boolean optional) {
+ this.optional = Optional.ofNullable(optional);
return this;
}
/**
* If true, this prop will be ignored.
*/
- @java.lang.Override
@JsonSetter(value = "disabled", nulls = Nulls.SKIP)
- public _FinalStage disabled(Optional disabled) {
+ public Builder disabled(Optional disabled) {
this.disabled = disabled;
return this;
}
- /**
- * If true, this prop does not need to be specified.
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage optional(Boolean optional) {
- this.optional = Optional.ofNullable(optional);
+ public Builder disabled(Boolean disabled) {
+ this.disabled = Optional.ofNullable(disabled);
return this;
}
/**
- * If true, this prop does not need to be specified.
+ * If true, should not expose this prop to the user
*/
- @java.lang.Override
- @JsonSetter(value = "optional", nulls = Nulls.SKIP)
- public _FinalStage optional(Optional optional) {
- this.optional = optional;
+ @JsonSetter(value = "hidden", nulls = Nulls.SKIP)
+ public Builder hidden(Optional hidden) {
+ this.hidden = hidden;
return this;
}
- /**
- * A description of the prop, shown to the user when configuring the component.
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage description(String description) {
- this.description = Optional.ofNullable(description);
+ public Builder hidden(Boolean hidden) {
+ this.hidden = Optional.ofNullable(hidden);
return this;
}
/**
- * A description of the prop, shown to the user when configuring the component.
+ * If true, call configureComponent for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options
*/
- @java.lang.Override
- @JsonSetter(value = "description", nulls = Nulls.SKIP)
- public _FinalStage description(Optional description) {
- this.description = description;
+ @JsonSetter(value = "remoteOptions", nulls = Nulls.SKIP)
+ public Builder remoteOptions(Optional remoteOptions) {
+ this.remoteOptions = remoteOptions;
return this;
}
- /**
- * Value to use as an input label. In cases where type is "app", should load the app via getApp, etc. and show app.name instead.
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage label(String label) {
- this.label = Optional.ofNullable(label);
+ public Builder remoteOptions(Boolean remoteOptions) {
+ this.remoteOptions = Optional.ofNullable(remoteOptions);
return this;
}
/**
- * Value to use as an input label. In cases where type is "app", should load the app via getApp, etc. and show app.name instead.
+ * If true, calls to configureComponent for this prop support receiving a query parameter to filter remote options
*/
- @java.lang.Override
- @JsonSetter(value = "label", nulls = Nulls.SKIP)
- public _FinalStage label(Optional label) {
- this.label = label;
+ @JsonSetter(value = "useQuery", nulls = Nulls.SKIP)
+ public Builder useQuery(Optional useQuery) {
+ this.useQuery = useQuery;
return this;
}
- /**
- * The content of the alert, which can include HTML or plain text.
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage content(String content) {
- this.content = Optional.ofNullable(content);
+ public Builder useQuery(Boolean useQuery) {
+ this.useQuery = Optional.ofNullable(useQuery);
return this;
}
/**
- * The content of the alert, which can include HTML or plain text.
+ * If true, after setting a value for this prop, a call to reloadComponentProps is required as the component has dynamic configurable props dependent on this one
*/
- @java.lang.Override
- @JsonSetter(value = "content", nulls = Nulls.SKIP)
- public _FinalStage content(Optional content) {
- this.content = content;
+ @JsonSetter(value = "reloadProps", nulls = Nulls.SKIP)
+ public Builder reloadProps(Optional reloadProps) {
+ this.reloadProps = reloadProps;
return this;
}
- /**
- * The severity level of the alert.
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage alertType(ConfigurablePropAlertAlertType alertType) {
- this.alertType = Optional.ofNullable(alertType);
+ public Builder reloadProps(Boolean reloadProps) {
+ this.reloadProps = Optional.ofNullable(reloadProps);
return this;
}
/**
- * The severity level of the alert.
+ * If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label
*/
- @java.lang.Override
- @JsonSetter(value = "alertType", nulls = Nulls.SKIP)
- public _FinalStage alertType(Optional alertType) {
- this.alertType = alertType;
- return this;
- }
-
- @java.lang.Override
- public _FinalStage type(String type) {
- this.type = Optional.ofNullable(type);
+ @JsonSetter(value = "withLabel", nulls = Nulls.SKIP)
+ public Builder withLabel(Optional withLabel) {
+ this.withLabel = withLabel;
return this;
}
- @java.lang.Override
- @JsonSetter(value = "type", nulls = Nulls.SKIP)
- public _FinalStage type(Optional type) {
- this.type = type;
+ public Builder withLabel(Boolean withLabel) {
+ this.withLabel = Optional.ofNullable(withLabel);
return this;
}
- @java.lang.Override
public ConfigurablePropAlert build() {
return new ConfigurablePropAlert(
type,
diff --git a/src/main/java/com/pipedream/api/types/ConfigurablePropAny.java b/src/main/java/com/pipedream/api/types/ConfigurablePropAny.java
index caff2b5..87824c9 100644
--- a/src/main/java/com/pipedream/api/types/ConfigurablePropAny.java
+++ b/src/main/java/com/pipedream/api/types/ConfigurablePropAny.java
@@ -16,14 +16,13 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
-import org.jetbrains.annotations.NotNull;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ConfigurablePropAny.Builder.class)
public final class ConfigurablePropAny {
private final Optional type;
- private final String name;
+ private final Optional name;
private final Optional label;
@@ -47,7 +46,7 @@ public final class ConfigurablePropAny {
private ConfigurablePropAny(
Optional type,
- String name,
+ Optional name,
Optional label,
Optional description,
Optional optional,
@@ -81,7 +80,7 @@ public Optional getType() {
* @return When building configuredProps, make sure to use this field as the key when setting the prop value
*/
@JsonProperty("name")
- public String getName() {
+ public Optional getName() {
return name;
}
@@ -203,120 +202,39 @@ public String toString() {
return ObjectMappers.stringify(this);
}
- public static NameStage builder() {
+ public static Builder builder() {
return new Builder();
}
- public interface NameStage {
- /**
- * When building configuredProps, make sure to use this field as the key when setting the prop value
- */
- _FinalStage name(@NotNull String name);
-
- Builder from(ConfigurablePropAny other);
- }
-
- public interface _FinalStage {
- ConfigurablePropAny build();
-
- _FinalStage type(Optional type);
-
- _FinalStage type(String type);
-
- /**
- * Value to use as an input label. In cases where type is "app", should load the app via getApp, etc. and show app.name instead.
- */
- _FinalStage label(Optional label);
-
- _FinalStage label(String label);
-
- /**
- * A description of the prop, shown to the user when configuring the component.
- */
- _FinalStage description(Optional description);
-
- _FinalStage description(String description);
-
- /**
- * If true, this prop does not need to be specified.
- */
- _FinalStage optional(Optional optional);
-
- _FinalStage optional(Boolean optional);
-
- /**
- * If true, this prop will be ignored.
- */
- _FinalStage disabled(Optional disabled);
-
- _FinalStage disabled(Boolean disabled);
-
- /**
- * If true, should not expose this prop to the user
- */
- _FinalStage hidden(Optional hidden);
-
- _FinalStage hidden(Boolean hidden);
-
- /**
- * If true, call configureComponent for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options
- */
- _FinalStage remoteOptions(Optional remoteOptions);
-
- _FinalStage remoteOptions(Boolean remoteOptions);
-
- /**
- * If true, calls to configureComponent for this prop support receiving a query parameter to filter remote options
- */
- _FinalStage useQuery(Optional useQuery);
-
- _FinalStage useQuery(Boolean useQuery);
-
- /**
- * If true, after setting a value for this prop, a call to reloadComponentProps is required as the component has dynamic configurable props dependent on this one
- */
- _FinalStage reloadProps(Optional reloadProps);
-
- _FinalStage reloadProps(Boolean reloadProps);
-
- /**
- * If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label
- */
- _FinalStage withLabel(Optional withLabel);
-
- _FinalStage withLabel(Boolean withLabel);
- }
-
@JsonIgnoreProperties(ignoreUnknown = true)
- public static final class Builder implements NameStage, _FinalStage {
- private String name;
+ public static final class Builder {
+ private Optional type = Optional.empty();
- private Optional withLabel = Optional.empty();
+ private Optional name = Optional.empty();
- private Optional reloadProps = Optional.empty();
-
- private Optional useQuery = Optional.empty();
+ private Optional label = Optional.empty();
- private Optional remoteOptions = Optional.empty();
+ private Optional description = Optional.empty();
- private Optional hidden = Optional.empty();
+ private Optional optional = Optional.empty();
private Optional disabled = Optional.empty();
- private Optional optional = Optional.empty();
+ private Optional hidden = Optional.empty();
- private Optional description = Optional.empty();
+ private Optional remoteOptions = Optional.empty();
- private Optional label = Optional.empty();
+ private Optional useQuery = Optional.empty();
- private Optional type = Optional.empty();
+ private Optional reloadProps = Optional.empty();
+
+ private Optional withLabel = Optional.empty();
@JsonAnySetter
private Map additionalProperties = new HashMap<>();
private Builder() {}
- @java.lang.Override
public Builder from(ConfigurablePropAny other) {
type(other.getType());
name(other.getName());
@@ -332,212 +250,157 @@ public Builder from(ConfigurablePropAny other) {
return this;
}
+ @JsonSetter(value = "type", nulls = Nulls.SKIP)
+ public Builder type(Optional type) {
+ this.type = type;
+ return this;
+ }
+
+ public Builder type(String type) {
+ this.type = Optional.ofNullable(type);
+ return this;
+ }
+
/**
* When building configuredProps, make sure to use this field as the key when setting the prop value
- * When building configuredProps, make sure to use this field as the key when setting the prop value
- * @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
- @JsonSetter("name")
- public _FinalStage name(@NotNull String name) {
- this.name = Objects.requireNonNull(name, "name must not be null");
+ @JsonSetter(value = "name", nulls = Nulls.SKIP)
+ public Builder name(Optional name) {
+ this.name = name;
return this;
}
- /**
- * If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage withLabel(Boolean withLabel) {
- this.withLabel = Optional.ofNullable(withLabel);
+ public Builder name(String name) {
+ this.name = Optional.ofNullable(name);
return this;
}
/**
- * If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label
+ * Value to use as an input label. In cases where type is "app", should load the app via getApp, etc. and show app.name instead.
*/
- @java.lang.Override
- @JsonSetter(value = "withLabel", nulls = Nulls.SKIP)
- public _FinalStage withLabel(Optional withLabel) {
- this.withLabel = withLabel;
+ @JsonSetter(value = "label", nulls = Nulls.SKIP)
+ public Builder label(Optional label) {
+ this.label = label;
return this;
}
- /**
- * If true, after setting a value for this prop, a call to reloadComponentProps is required as the component has dynamic configurable props dependent on this one
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage reloadProps(Boolean reloadProps) {
- this.reloadProps = Optional.ofNullable(reloadProps);
+ public Builder label(String label) {
+ this.label = Optional.ofNullable(label);
return this;
}
/**
- * If true, after setting a value for this prop, a call to reloadComponentProps is required as the component has dynamic configurable props dependent on this one
+ * A description of the prop, shown to the user when configuring the component.
*/
- @java.lang.Override
- @JsonSetter(value = "reloadProps", nulls = Nulls.SKIP)
- public _FinalStage reloadProps(Optional reloadProps) {
- this.reloadProps = reloadProps;
+ @JsonSetter(value = "description", nulls = Nulls.SKIP)
+ public Builder description(Optional description) {
+ this.description = description;
return this;
}
- /**
- * If true, calls to configureComponent for this prop support receiving a query parameter to filter remote options
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage useQuery(Boolean useQuery) {
- this.useQuery = Optional.ofNullable(useQuery);
+ public Builder description(String description) {
+ this.description = Optional.ofNullable(description);
return this;
}
/**
- * If true, calls to configureComponent for this prop support receiving a query parameter to filter remote options
+ * If true, this prop does not need to be specified.
*/
- @java.lang.Override
- @JsonSetter(value = "useQuery", nulls = Nulls.SKIP)
- public _FinalStage useQuery(Optional useQuery) {
- this.useQuery = useQuery;
+ @JsonSetter(value = "optional", nulls = Nulls.SKIP)
+ public Builder optional(Optional optional) {
+ this.optional = optional;
return this;
}
- /**
- * If true, call configureComponent for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage remoteOptions(Boolean remoteOptions) {
- this.remoteOptions = Optional.ofNullable(remoteOptions);
+ public Builder optional(Boolean optional) {
+ this.optional = Optional.ofNullable(optional);
return this;
}
/**
- * If true, call configureComponent for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options
+ * If true, this prop will be ignored.
*/
- @java.lang.Override
- @JsonSetter(value = "remoteOptions", nulls = Nulls.SKIP)
- public _FinalStage remoteOptions(Optional remoteOptions) {
- this.remoteOptions = remoteOptions;
+ @JsonSetter(value = "disabled", nulls = Nulls.SKIP)
+ public Builder disabled(Optional disabled) {
+ this.disabled = disabled;
return this;
}
- /**
- * If true, should not expose this prop to the user
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage hidden(Boolean hidden) {
- this.hidden = Optional.ofNullable(hidden);
+ public Builder disabled(Boolean disabled) {
+ this.disabled = Optional.ofNullable(disabled);
return this;
}
/**
* If true, should not expose this prop to the user
*/
- @java.lang.Override
@JsonSetter(value = "hidden", nulls = Nulls.SKIP)
- public _FinalStage hidden(Optional hidden) {
+ public Builder hidden(Optional hidden) {
this.hidden = hidden;
return this;
}
- /**
- * If true, this prop will be ignored.
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage disabled(Boolean disabled) {
- this.disabled = Optional.ofNullable(disabled);
+ public Builder hidden(Boolean hidden) {
+ this.hidden = Optional.ofNullable(hidden);
return this;
}
/**
- * If true, this prop will be ignored.
+ * If true, call configureComponent for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options
*/
- @java.lang.Override
- @JsonSetter(value = "disabled", nulls = Nulls.SKIP)
- public _FinalStage disabled(Optional disabled) {
- this.disabled = disabled;
+ @JsonSetter(value = "remoteOptions", nulls = Nulls.SKIP)
+ public Builder remoteOptions(Optional remoteOptions) {
+ this.remoteOptions = remoteOptions;
return this;
}
- /**
- * If true, this prop does not need to be specified.
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage optional(Boolean optional) {
- this.optional = Optional.ofNullable(optional);
+ public Builder remoteOptions(Boolean remoteOptions) {
+ this.remoteOptions = Optional.ofNullable(remoteOptions);
return this;
}
/**
- * If true, this prop does not need to be specified.
+ * If true, calls to configureComponent for this prop support receiving a query parameter to filter remote options
*/
- @java.lang.Override
- @JsonSetter(value = "optional", nulls = Nulls.SKIP)
- public _FinalStage optional(Optional optional) {
- this.optional = optional;
+ @JsonSetter(value = "useQuery", nulls = Nulls.SKIP)
+ public Builder useQuery(Optional useQuery) {
+ this.useQuery = useQuery;
return this;
}
- /**
- * A description of the prop, shown to the user when configuring the component.
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage description(String description) {
- this.description = Optional.ofNullable(description);
+ public Builder useQuery(Boolean useQuery) {
+ this.useQuery = Optional.ofNullable(useQuery);
return this;
}
/**
- * A description of the prop, shown to the user when configuring the component.
+ * If true, after setting a value for this prop, a call to reloadComponentProps is required as the component has dynamic configurable props dependent on this one
*/
- @java.lang.Override
- @JsonSetter(value = "description", nulls = Nulls.SKIP)
- public _FinalStage description(Optional description) {
- this.description = description;
+ @JsonSetter(value = "reloadProps", nulls = Nulls.SKIP)
+ public Builder reloadProps(Optional reloadProps) {
+ this.reloadProps = reloadProps;
return this;
}
- /**
- * Value to use as an input label. In cases where type is "app", should load the app via getApp, etc. and show app.name instead.
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- public _FinalStage label(String label) {
- this.label = Optional.ofNullable(label);
+ public Builder reloadProps(Boolean reloadProps) {
+ this.reloadProps = Optional.ofNullable(reloadProps);
return this;
}
/**
- * Value to use as an input label. In cases where type is "app", should load the app via getApp, etc. and show app.name instead.
+ * If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label
*/
- @java.lang.Override
- @JsonSetter(value = "label", nulls = Nulls.SKIP)
- public _FinalStage label(Optional label) {
- this.label = label;
- return this;
- }
-
- @java.lang.Override
- public _FinalStage type(String type) {
- this.type = Optional.ofNullable(type);
+ @JsonSetter(value = "withLabel", nulls = Nulls.SKIP)
+ public Builder withLabel(Optional withLabel) {
+ this.withLabel = withLabel;
return this;
}
- @java.lang.Override
- @JsonSetter(value = "type", nulls = Nulls.SKIP)
- public _FinalStage type(Optional type) {
- this.type = type;
+ public Builder withLabel(Boolean withLabel) {
+ this.withLabel = Optional.ofNullable(withLabel);
return this;
}
- @java.lang.Override
public ConfigurablePropAny build() {
return new ConfigurablePropAny(
type,
diff --git a/src/main/java/com/pipedream/api/types/ConfigurablePropApp.java b/src/main/java/com/pipedream/api/types/ConfigurablePropApp.java
index abe1111..f6e4246 100644
--- a/src/main/java/com/pipedream/api/types/ConfigurablePropApp.java
+++ b/src/main/java/com/pipedream/api/types/ConfigurablePropApp.java
@@ -16,7 +16,6 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
-import org.jetbrains.annotations.NotNull;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ConfigurablePropApp.Builder.class)
@@ -25,7 +24,7 @@ public final class ConfigurablePropApp {
private final Optional app;
- private final String name;
+ private final Optional name;
private final Optional label;
@@ -50,7 +49,7 @@ public final class ConfigurablePropApp {
private ConfigurablePropApp(
Optional type,
Optional app,
- String name,
+ Optional name,
Optional label,
Optional description,
Optional optional,
@@ -93,7 +92,7 @@ public Optional getApp() {
* @return When building configuredProps, make sure to use this field as the key when setting the prop value
*/
@JsonProperty("name")
- public String getName() {
+ public Optional getName() {
return name;
}
@@ -217,129 +216,41 @@ public String toString() {
return ObjectMappers.stringify(this);
}
- public static NameStage builder() {
+ public static Builder builder() {
return new Builder();
}
- public interface NameStage {
- /**
- * When building configuredProps, make sure to use this field as the key when setting the prop value
- */
- _FinalStage name(@NotNull String name);
-
- Builder from(ConfigurablePropApp other);
- }
-
- public interface _FinalStage {
- ConfigurablePropApp build();
-
- _FinalStage type(Optional type);
-
- _FinalStage type(String type);
-
- /**
- * The name slug of the app, e.g. 'github', 'slack', etc. This is used to identify the app for which the account is being configured.
- */
- _FinalStage app(Optional app);
-
- _FinalStage app(String app);
-
- /**
- * Value to use as an input label. In cases where type is "app", should load the app via getApp, etc. and show app.name instead.
- */
- _FinalStage label(Optional label);
-
- _FinalStage label(String label);
-
- /**
- * A description of the prop, shown to the user when configuring the component.
- */
- _FinalStage description(Optional description);
-
- _FinalStage description(String description);
-
- /**
- * If true, this prop does not need to be specified.
- */
- _FinalStage optional(Optional optional);
-
- _FinalStage optional(Boolean optional);
-
- /**
- * If true, this prop will be ignored.
- */
- _FinalStage disabled(Optional disabled);
-
- _FinalStage disabled(Boolean disabled);
-
- /**
- * If true, should not expose this prop to the user
- */
- _FinalStage hidden(Optional hidden);
-
- _FinalStage hidden(Boolean hidden);
-
- /**
- * If true, call configureComponent for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options
- */
- _FinalStage remoteOptions(Optional remoteOptions);
-
- _FinalStage remoteOptions(Boolean remoteOptions);
-
- /**
- * If true, calls to configureComponent for this prop support receiving a query parameter to filter remote options
- */
- _FinalStage useQuery(Optional useQuery);
-
- _FinalStage useQuery(Boolean useQuery);
-
- /**
- * If true, after setting a value for this prop, a call to reloadComponentProps is required as the component has dynamic configurable props dependent on this one
- */
- _FinalStage reloadProps(Optional reloadProps);
-
- _FinalStage reloadProps(Boolean reloadProps);
-
- /**
- * If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label
- */
- _FinalStage withLabel(Optional withLabel);
-
- _FinalStage withLabel(Boolean withLabel);
- }
-
@JsonIgnoreProperties(ignoreUnknown = true)
- public static final class Builder implements NameStage, _FinalStage {
- private String name;
+ public static final class Builder {
+ private Optional type = Optional.empty();
- private Optional withLabel = Optional.empty();
+ private Optional app = Optional.empty();
- private Optional reloadProps = Optional.empty();
+ private Optional name = Optional.empty();
- private Optional useQuery = Optional.empty();
+ private Optional label = Optional.empty();
- private Optional remoteOptions = Optional.empty();
+ private Optional description = Optional.empty();
- private Optional hidden = Optional.empty();
+ private Optional optional = Optional.empty();
private Optional disabled = Optional.empty();
- private Optional optional = Optional.empty();
+ private Optional