io.formapi.CombinedSubmissionAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of FormAPI Show documentation
Show all versions of FormAPI Show documentation
Java API client for the FormAPI PDF generation service
/*
* API v1
* FormAPI is a service that helps you fill out and sign PDF templates.
*
* OpenAPI spec version: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.formapi;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* CombinedSubmissionAction
*/
@javax.annotation.Generated(value = "io.formapi.codegen.FormApiJavaClientCodegen", date = "2019-04-11T21:22:41.142+07:00[Asia/Bangkok]")
public class CombinedSubmissionAction {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id = null;
public static final String SERIALIZED_NAME_INTEGRATION_ID = "integration_id";
@SerializedName(SERIALIZED_NAME_INTEGRATION_ID)
private String integrationId = null;
/**
* Gets or Sets state
*/
@JsonAdapter(StateEnum.Adapter.class)
public enum StateEnum {
PENDING("pending"),
PROCESSED("processed"),
FAILED("failed"),
ERROR("error");
private String value;
StateEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StateEnum fromValue(String text) {
for (StateEnum b : StateEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final StateEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public StateEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return StateEnum.fromValue(String.valueOf(value));
}
}
}
public static final String SERIALIZED_NAME_STATE = "state";
@SerializedName(SERIALIZED_NAME_STATE)
private StateEnum state = null;
/**
* Gets or Sets actionCategory
*/
@JsonAdapter(ActionCategoryEnum.Adapter.class)
public enum ActionCategoryEnum {
NOTIFICATION("notification"),
FILE_UPLOAD("file_upload");
private String value;
ActionCategoryEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static ActionCategoryEnum fromValue(String text) {
for (ActionCategoryEnum b : ActionCategoryEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final ActionCategoryEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public ActionCategoryEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return ActionCategoryEnum.fromValue(String.valueOf(value));
}
}
}
public static final String SERIALIZED_NAME_ACTION_CATEGORY = "action_category";
@SerializedName(SERIALIZED_NAME_ACTION_CATEGORY)
private ActionCategoryEnum actionCategory = null;
/**
* Gets or Sets actionType
*/
@JsonAdapter(ActionTypeEnum.Adapter.class)
public enum ActionTypeEnum {
WEBHOOK("webhook"),
SLACK_WEBHOOK("slack_webhook"),
EMAIL("email"),
AWS_S3_UPLOAD("aws_s3_upload");
private String value;
ActionTypeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static ActionTypeEnum fromValue(String text) {
for (ActionTypeEnum b : ActionTypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + text + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final ActionTypeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public ActionTypeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return ActionTypeEnum.fromValue(String.valueOf(value));
}
}
}
public static final String SERIALIZED_NAME_ACTION_TYPE = "action_type";
@SerializedName(SERIALIZED_NAME_ACTION_TYPE)
private ActionTypeEnum actionType = null;
public static final String SERIALIZED_NAME_RESULT_DATA = "result_data";
@SerializedName(SERIALIZED_NAME_RESULT_DATA)
private Object resultData = null;
public CombinedSubmissionAction id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(required = true, value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public CombinedSubmissionAction integrationId(String integrationId) {
this.integrationId = integrationId;
return this;
}
/**
* Get integrationId
* @return integrationId
**/
@ApiModelProperty(required = true, value = "")
public String getIntegrationId() {
return integrationId;
}
public void setIntegrationId(String integrationId) {
this.integrationId = integrationId;
}
public CombinedSubmissionAction state(StateEnum state) {
this.state = state;
return this;
}
/**
* Get state
* @return state
**/
@ApiModelProperty(required = true, value = "")
public StateEnum getState() {
return state;
}
public void setState(StateEnum state) {
this.state = state;
}
public CombinedSubmissionAction actionCategory(ActionCategoryEnum actionCategory) {
this.actionCategory = actionCategory;
return this;
}
/**
* Get actionCategory
* @return actionCategory
**/
@ApiModelProperty(required = true, value = "")
public ActionCategoryEnum getActionCategory() {
return actionCategory;
}
public void setActionCategory(ActionCategoryEnum actionCategory) {
this.actionCategory = actionCategory;
}
public CombinedSubmissionAction actionType(ActionTypeEnum actionType) {
this.actionType = actionType;
return this;
}
/**
* Get actionType
* @return actionType
**/
@ApiModelProperty(required = true, value = "")
public ActionTypeEnum getActionType() {
return actionType;
}
public void setActionType(ActionTypeEnum actionType) {
this.actionType = actionType;
}
public CombinedSubmissionAction resultData(Object resultData) {
this.resultData = resultData;
return this;
}
/**
* Get resultData
* @return resultData
**/
@ApiModelProperty(required = true, value = "")
public Object getResultData() {
return resultData;
}
public void setResultData(Object resultData) {
this.resultData = resultData;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CombinedSubmissionAction combinedSubmissionAction = (CombinedSubmissionAction) o;
return Objects.equals(this.id, combinedSubmissionAction.id) &&
Objects.equals(this.integrationId, combinedSubmissionAction.integrationId) &&
Objects.equals(this.state, combinedSubmissionAction.state) &&
Objects.equals(this.actionCategory, combinedSubmissionAction.actionCategory) &&
Objects.equals(this.actionType, combinedSubmissionAction.actionType) &&
Objects.equals(this.resultData, combinedSubmissionAction.resultData);
}
@Override
public int hashCode() {
return Objects.hash(id, integrationId, state, actionCategory, actionType, resultData);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CombinedSubmissionAction {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" integrationId: ").append(toIndentedString(integrationId)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" actionCategory: ").append(toIndentedString(actionCategory)).append("\n");
sb.append(" actionType: ").append(toIndentedString(actionType)).append("\n");
sb.append(" resultData: ").append(toIndentedString(resultData)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy