
io.formapi.Templatesv2TemplateDocument 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
The newest version!
/*
* 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.formapi.Templatesv2TemplateDocumentMetadata;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Templatesv2TemplateDocument
*/
@javax.annotation.Generated(value = "io.formapi.codegen.FormApiJavaClientCodegen", date = "2019-10-10T00:49:37.967+07:00[Asia/Bangkok]")
public class Templatesv2TemplateDocument {
public static final String SERIALIZED_NAME_METADATA = "metadata";
@SerializedName(SERIALIZED_NAME_METADATA)
private Templatesv2TemplateDocumentMetadata metadata = null;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id = null;
/**
* Gets or Sets storage
*/
@JsonAdapter(StorageEnum.Adapter.class)
public enum StorageEnum {
CACHE("cache");
private String value;
StorageEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StorageEnum fromValue(String text) {
for (StorageEnum b : StorageEnum.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 StorageEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public StorageEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return StorageEnum.fromValue(String.valueOf(value));
}
}
}
public static final String SERIALIZED_NAME_STORAGE = "storage";
@SerializedName(SERIALIZED_NAME_STORAGE)
private StorageEnum storage = null;
public Templatesv2TemplateDocument metadata(Templatesv2TemplateDocumentMetadata metadata) {
this.metadata = metadata;
return this;
}
/**
* Get metadata
* @return metadata
**/
@ApiModelProperty(value = "")
public Templatesv2TemplateDocumentMetadata getMetadata() {
return metadata;
}
public void setMetadata(Templatesv2TemplateDocumentMetadata metadata) {
this.metadata = metadata;
}
public Templatesv2TemplateDocument 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 Templatesv2TemplateDocument storage(StorageEnum storage) {
this.storage = storage;
return this;
}
/**
* Get storage
* @return storage
**/
@ApiModelProperty(value = "")
public StorageEnum getStorage() {
return storage;
}
public void setStorage(StorageEnum storage) {
this.storage = storage;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Templatesv2TemplateDocument templatesv2TemplateDocument = (Templatesv2TemplateDocument) o;
return Objects.equals(this.metadata, templatesv2TemplateDocument.metadata) &&
Objects.equals(this.id, templatesv2TemplateDocument.id) &&
Objects.equals(this.storage, templatesv2TemplateDocument.storage);
}
@Override
public int hashCode() {
return Objects.hash(metadata, id, storage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Templatesv2TemplateDocument {\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" storage: ").append(toIndentedString(storage)).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