Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeId;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* The field configurations for this connection configuration. These define the form fieldsused by the connection configuration interface
*/
@Schema(description = "The field configurations for this connection configuration. These define the form fieldsused by the connection configuration interface")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true )
@JsonSubTypes({
@JsonSubTypes.Type(value = LongConfigurationFieldOutputV1.class, name = "LongConfigurationFieldOutputV1"),
@JsonSubTypes.Type(value = BooleanConfigurationFieldOutputV1.class, name = "BooleanConfigurationFieldOutputV1"),
@JsonSubTypes.Type(value = DoubleConfigurationFieldOutputV1.class, name = "DoubleConfigurationFieldOutputV1"),
@JsonSubTypes.Type(value = SecretConfigurationFieldOutputV1.class, name = "SecretConfigurationFieldOutputV1"),
@JsonSubTypes.Type(value = StringConfigurationFieldOutputV1.class, name = "StringConfigurationFieldOutputV1"),
})
public class ConfigurationFieldOutputV1 {
@JsonProperty("allowNull")
private Boolean allowNull = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("path")
private String path = null;
/**
* Field configuration type
*/
public enum TypeEnum {
SECRETCONFIGURATIONFIELDOUTPUTV1("SecretConfigurationFieldOutputV1"),
STRINGCONFIGURATIONFIELDOUTPUTV1("StringConfigurationFieldOutputV1"),
DOUBLECONFIGURATIONFIELDOUTPUTV1("DoubleConfigurationFieldOutputV1"),
LONGCONFIGURATIONFIELDOUTPUTV1("LongConfigurationFieldOutputV1"),
BOOLEANCONFIGURATIONFIELDOUTPUTV1("BooleanConfigurationFieldOutputV1");
private String value;
TypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TypeEnum fromValue(String input) {
for (TypeEnum b : TypeEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
} @JsonProperty("type")
private TypeEnum type = null;
@JsonProperty("value")
private Object value = null;
public ConfigurationFieldOutputV1 allowNull(Boolean allowNull) {
this.allowNull = allowNull;
return this;
}
/**
* Whether a null value is allowed
* @return allowNull
**/
@Schema(required = true, description = "Whether a null value is allowed")
public Boolean getAllowNull() {
return allowNull;
}
public void setAllowNull(Boolean allowNull) {
this.allowNull = allowNull;
}
public ConfigurationFieldOutputV1 description(String description) {
this.description = description;
return this;
}
/**
* Description of the field to be used in connection configuration interface
* @return description
**/
@Schema(description = "Description of the field to be used in connection configuration interface")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ConfigurationFieldOutputV1 name(String name) {
this.name = name;
return this;
}
/**
* The name of the field. It is set to the last component of the Path
* @return name
**/
@Schema(description = "The name of the field. It is set to the last component of the Path")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ConfigurationFieldOutputV1 path(String path) {
this.path = path;
return this;
}
/**
* JSON Path to the configuration parameter, omitting array indices
* @return path
**/
@Schema(required = true, description = "JSON Path to the configuration parameter, omitting array indices")
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public ConfigurationFieldOutputV1 type(TypeEnum type) {
this.type = type;
return this;
}
/**
* Field configuration type
* @return type
**/
@Schema(required = true, description = "Field configuration type")
public TypeEnum getType() {
return type;
}
public void setType(TypeEnum type) {
this.type = type;
}
public ConfigurationFieldOutputV1 value(Object value) {
this.value = value;
return this;
}
/**
* Configuration field value
* @return value
**/
@Schema(description = "Configuration field value")
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ConfigurationFieldOutputV1 configurationFieldOutputV1 = (ConfigurationFieldOutputV1) o;
return Objects.equals(this.allowNull, configurationFieldOutputV1.allowNull) &&
Objects.equals(this.description, configurationFieldOutputV1.description) &&
Objects.equals(this.name, configurationFieldOutputV1.name) &&
Objects.equals(this.path, configurationFieldOutputV1.path) &&
Objects.equals(this.type, configurationFieldOutputV1.type) &&
Objects.equals(this.value, configurationFieldOutputV1.value);
}
@Override
public int hashCode() {
return Objects.hash(allowNull, description, name, path, type, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConfigurationFieldOutputV1 {\n");
sb.append(" allowNull: ").append(toIndentedString(allowNull)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}