com.zendesk.sunshine_conversations_client.model.FormResponseMessageField Maven / Gradle / Ivy
/*
* Sunshine Conversations API
*
* The version of the OpenAPI document: 12.8.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.zendesk.sunshine_conversations_client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.zendesk.sunshine_conversations_client.model.Field;
import com.zendesk.sunshine_conversations_client.model.FormResponseMessageFieldAllOf;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* FormResponseMessageField
*/
@JsonPropertyOrder({
FormResponseMessageField.JSON_PROPERTY_TYPE,
FormResponseMessageField.JSON_PROPERTY_NAME,
FormResponseMessageField.JSON_PROPERTY_LABEL,
FormResponseMessageField.JSON_PROPERTY_TEXT,
FormResponseMessageField.JSON_PROPERTY_EMAIL,
FormResponseMessageField.JSON_PROPERTY_SELECT,
FormResponseMessageField.JSON_PROPERTY_QUOTED_MESSAGE_ID
})
public class FormResponseMessageField {
/**
* The field type.
*/
public enum TypeEnum {
EMAIL("email"),
SELECT("select"),
TEXT("text");
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 value) {
for (TypeEnum b : TypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_TYPE = "type";
private TypeEnum type;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_LABEL = "label";
private String label;
public static final String JSON_PROPERTY_TEXT = "text";
private String text;
public static final String JSON_PROPERTY_EMAIL = "email";
private String email;
public static final String JSON_PROPERTY_SELECT = "select";
private List