io.formapi.PendingTemplate Maven / Gradle / Ivy
/*
* 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;
import java.math.BigDecimal;
/**
* PendingTemplate
*/
@javax.annotation.Generated(value = "io.formapi.codegen.FormApiJavaClientCodegen", date = "2018-12-18T08:05:56.906+07:00[Asia/Bangkok]")
public class PendingTemplate {
/**
* Gets or Sets expirationInterval
*/
@JsonAdapter(ExpirationIntervalEnum.Adapter.class)
public enum ExpirationIntervalEnum {
MINUTES("minutes"),
HOURS("hours"),
DAYS("days");
private String value;
ExpirationIntervalEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static ExpirationIntervalEnum fromValue(String text) {
for (ExpirationIntervalEnum b : ExpirationIntervalEnum.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 ExpirationIntervalEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public ExpirationIntervalEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return ExpirationIntervalEnum.fromValue(String.valueOf(value));
}
}
}
public static final String SERIALIZED_NAME_EXPIRATION_INTERVAL = "expiration_interval";
@SerializedName(SERIALIZED_NAME_EXPIRATION_INTERVAL)
private ExpirationIntervalEnum expirationInterval = null;
public static final String SERIALIZED_NAME_WEBHOOK_URL = "webhook_url";
@SerializedName(SERIALIZED_NAME_WEBHOOK_URL)
private String webhookUrl = null;
public static final String SERIALIZED_NAME_EXPIRE_AFTER = "expire_after";
@SerializedName(SERIALIZED_NAME_EXPIRE_AFTER)
private BigDecimal expireAfter = null;
public static final String SERIALIZED_NAME_ALLOW_ADDITIONAL_PROPERTIES = "allow_additional_properties";
@SerializedName(SERIALIZED_NAME_ALLOW_ADDITIONAL_PROPERTIES)
private Boolean allowAdditionalProperties = null;
public static final String SERIALIZED_NAME_PUBLIC_SUBMISSIONS = "public_submissions";
@SerializedName(SERIALIZED_NAME_PUBLIC_SUBMISSIONS)
private Boolean publicSubmissions = null;
public static final String SERIALIZED_NAME_SLACK_WEBHOOK_URL = "slack_webhook_url";
@SerializedName(SERIALIZED_NAME_SLACK_WEBHOOK_URL)
private String slackWebhookUrl = null;
public static final String SERIALIZED_NAME_BLOCKCHAIN_TIMESTAMP_VERIFICATION = "blockchain_timestamp_verification";
@SerializedName(SERIALIZED_NAME_BLOCKCHAIN_TIMESTAMP_VERIFICATION)
private Boolean blockchainTimestampVerification = null;
public static final String SERIALIZED_NAME_PUBLIC_WEB_FORM = "public_web_form";
@SerializedName(SERIALIZED_NAME_PUBLIC_WEB_FORM)
private Boolean publicWebForm = null;
public static final String SERIALIZED_NAME_EXPIRE_SUBMISSIONS = "expire_submissions";
@SerializedName(SERIALIZED_NAME_EXPIRE_SUBMISSIONS)
private Boolean expireSubmissions = null;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name = null;
public static final String SERIALIZED_NAME_TEMPLATE_TYPE = "template_type";
@SerializedName(SERIALIZED_NAME_TEMPLATE_TYPE)
private String templateType = null;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id = null;
public static final String SERIALIZED_NAME_REDIRECT_URL = "redirect_url";
@SerializedName(SERIALIZED_NAME_REDIRECT_URL)
private String redirectUrl = null;
public PendingTemplate expirationInterval(ExpirationIntervalEnum expirationInterval) {
this.expirationInterval = expirationInterval;
return this;
}
/**
* Get expirationInterval
* @return expirationInterval
**/
@ApiModelProperty(value = "")
public ExpirationIntervalEnum getExpirationInterval() {
return expirationInterval;
}
public void setExpirationInterval(ExpirationIntervalEnum expirationInterval) {
this.expirationInterval = expirationInterval;
}
public PendingTemplate webhookUrl(String webhookUrl) {
this.webhookUrl = webhookUrl;
return this;
}
/**
* Get webhookUrl
* @return webhookUrl
**/
@ApiModelProperty(value = "")
public String getWebhookUrl() {
return webhookUrl;
}
public void setWebhookUrl(String webhookUrl) {
this.webhookUrl = webhookUrl;
}
public PendingTemplate expireAfter(BigDecimal expireAfter) {
this.expireAfter = expireAfter;
return this;
}
/**
* Get expireAfter
* @return expireAfter
**/
@ApiModelProperty(value = "")
public BigDecimal getExpireAfter() {
return expireAfter;
}
public void setExpireAfter(BigDecimal expireAfter) {
this.expireAfter = expireAfter;
}
public PendingTemplate allowAdditionalProperties(Boolean allowAdditionalProperties) {
this.allowAdditionalProperties = allowAdditionalProperties;
return this;
}
/**
* Get allowAdditionalProperties
* @return allowAdditionalProperties
**/
@ApiModelProperty(value = "")
public Boolean getAllowAdditionalProperties() {
return allowAdditionalProperties;
}
public void setAllowAdditionalProperties(Boolean allowAdditionalProperties) {
this.allowAdditionalProperties = allowAdditionalProperties;
}
public PendingTemplate publicSubmissions(Boolean publicSubmissions) {
this.publicSubmissions = publicSubmissions;
return this;
}
/**
* Get publicSubmissions
* @return publicSubmissions
**/
@ApiModelProperty(value = "")
public Boolean getPublicSubmissions() {
return publicSubmissions;
}
public void setPublicSubmissions(Boolean publicSubmissions) {
this.publicSubmissions = publicSubmissions;
}
public PendingTemplate slackWebhookUrl(String slackWebhookUrl) {
this.slackWebhookUrl = slackWebhookUrl;
return this;
}
/**
* Get slackWebhookUrl
* @return slackWebhookUrl
**/
@ApiModelProperty(value = "")
public String getSlackWebhookUrl() {
return slackWebhookUrl;
}
public void setSlackWebhookUrl(String slackWebhookUrl) {
this.slackWebhookUrl = slackWebhookUrl;
}
public PendingTemplate blockchainTimestampVerification(Boolean blockchainTimestampVerification) {
this.blockchainTimestampVerification = blockchainTimestampVerification;
return this;
}
/**
* Get blockchainTimestampVerification
* @return blockchainTimestampVerification
**/
@ApiModelProperty(value = "")
public Boolean getBlockchainTimestampVerification() {
return blockchainTimestampVerification;
}
public void setBlockchainTimestampVerification(Boolean blockchainTimestampVerification) {
this.blockchainTimestampVerification = blockchainTimestampVerification;
}
public PendingTemplate publicWebForm(Boolean publicWebForm) {
this.publicWebForm = publicWebForm;
return this;
}
/**
* Get publicWebForm
* @return publicWebForm
**/
@ApiModelProperty(value = "")
public Boolean getPublicWebForm() {
return publicWebForm;
}
public void setPublicWebForm(Boolean publicWebForm) {
this.publicWebForm = publicWebForm;
}
public PendingTemplate expireSubmissions(Boolean expireSubmissions) {
this.expireSubmissions = expireSubmissions;
return this;
}
/**
* Get expireSubmissions
* @return expireSubmissions
**/
@ApiModelProperty(value = "")
public Boolean getExpireSubmissions() {
return expireSubmissions;
}
public void setExpireSubmissions(Boolean expireSubmissions) {
this.expireSubmissions = expireSubmissions;
}
public PendingTemplate name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public PendingTemplate templateType(String templateType) {
this.templateType = templateType;
return this;
}
/**
* Get templateType
* @return templateType
**/
@ApiModelProperty(value = "")
public String getTemplateType() {
return templateType;
}
public void setTemplateType(String templateType) {
this.templateType = templateType;
}
public PendingTemplate id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public PendingTemplate redirectUrl(String redirectUrl) {
this.redirectUrl = redirectUrl;
return this;
}
/**
* Get redirectUrl
* @return redirectUrl
**/
@ApiModelProperty(value = "")
public String getRedirectUrl() {
return redirectUrl;
}
public void setRedirectUrl(String redirectUrl) {
this.redirectUrl = redirectUrl;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PendingTemplate pendingTemplate = (PendingTemplate) o;
return Objects.equals(this.expirationInterval, pendingTemplate.expirationInterval) &&
Objects.equals(this.webhookUrl, pendingTemplate.webhookUrl) &&
Objects.equals(this.expireAfter, pendingTemplate.expireAfter) &&
Objects.equals(this.allowAdditionalProperties, pendingTemplate.allowAdditionalProperties) &&
Objects.equals(this.publicSubmissions, pendingTemplate.publicSubmissions) &&
Objects.equals(this.slackWebhookUrl, pendingTemplate.slackWebhookUrl) &&
Objects.equals(this.blockchainTimestampVerification, pendingTemplate.blockchainTimestampVerification) &&
Objects.equals(this.publicWebForm, pendingTemplate.publicWebForm) &&
Objects.equals(this.expireSubmissions, pendingTemplate.expireSubmissions) &&
Objects.equals(this.name, pendingTemplate.name) &&
Objects.equals(this.templateType, pendingTemplate.templateType) &&
Objects.equals(this.id, pendingTemplate.id) &&
Objects.equals(this.redirectUrl, pendingTemplate.redirectUrl);
}
@Override
public int hashCode() {
return Objects.hash(expirationInterval, webhookUrl, expireAfter, allowAdditionalProperties, publicSubmissions, slackWebhookUrl, blockchainTimestampVerification, publicWebForm, expireSubmissions, name, templateType, id, redirectUrl);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PendingTemplate {\n");
sb.append(" expirationInterval: ").append(toIndentedString(expirationInterval)).append("\n");
sb.append(" webhookUrl: ").append(toIndentedString(webhookUrl)).append("\n");
sb.append(" expireAfter: ").append(toIndentedString(expireAfter)).append("\n");
sb.append(" allowAdditionalProperties: ").append(toIndentedString(allowAdditionalProperties)).append("\n");
sb.append(" publicSubmissions: ").append(toIndentedString(publicSubmissions)).append("\n");
sb.append(" slackWebhookUrl: ").append(toIndentedString(slackWebhookUrl)).append("\n");
sb.append(" blockchainTimestampVerification: ").append(toIndentedString(blockchainTimestampVerification)).append("\n");
sb.append(" publicWebForm: ").append(toIndentedString(publicWebForm)).append("\n");
sb.append(" expireSubmissions: ").append(toIndentedString(expireSubmissions)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" templateType: ").append(toIndentedString(templateType)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" redirectUrl: ").append(toIndentedString(redirectUrl)).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