/** * This code was auto-generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.api.contracts.installedapplications; import java.io.Serializable; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.joda.time.DateTime; import java.io.IOException; import java.lang.ClassNotFoundException; /** * Mozu.InstalledApplications.Contracts.CustomFunction ApiType DOCUMENT_HERE */ @JsonIgnoreProperties(ignoreUnknown = true) public class CustomFunction implements Serializable { // Default Serial Version UID private static final long serialVersionUID = 1L; /** * Mozu.InstalledApplications.Contracts.CustomFunction applicationKey ApiTypeMember DOCUMENT_HERE */ protected String applicationKey; public String getApplicationKey() { return this.applicationKey; } public void setApplicationKey(String applicationKey) { this.applicationKey = applicationKey; } /** * Indicates if the capability or app is enabled for the tenant/site. If true, the capability/application is enabled for the tenant. System-supplied and read-only. */ protected Boolean enabled; public Boolean getEnabled() { return this.enabled; } public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** * Mozu.InstalledApplications.Contracts.CustomFunction exceptionBehavior ApiTypeMember DOCUMENT_HERE */ protected String exceptionBehavior; public String getExceptionBehavior() { return this.exceptionBehavior; } public void setExceptionBehavior(String exceptionBehavior) { this.exceptionBehavior = exceptionBehavior; } /** * Mozu.InstalledApplications.Contracts.CustomFunction functionId ApiTypeMember DOCUMENT_HERE */ protected String functionId; public String getFunctionId() { return this.functionId; } public void setFunctionId(String functionId) { this.functionId = functionId; } /** * Mozu.InstalledApplications.Contracts.CustomFunction logLevel ApiTypeMember DOCUMENT_HERE */ protected String logLevel; public String getLogLevel() { return this.logLevel; } public void setLogLevel(String logLevel) { this.logLevel = logLevel; } /** * Mozu.InstalledApplications.Contracts.CustomFunction timeoutMilliseconds ApiTypeMember DOCUMENT_HERE */ protected Integer timeoutMilliseconds; public Integer getTimeoutMilliseconds() { return this.timeoutMilliseconds; } public void setTimeoutMilliseconds(Integer timeoutMilliseconds) { this.timeoutMilliseconds = timeoutMilliseconds; } /** * Mozu.InstalledApplications.Contracts.CustomFunction configuration ApiTypeMember DOCUMENT_HERE */ protected transient com.fasterxml.jackson.databind.JsonNode configuration; public com.fasterxml.jackson.databind.JsonNode getConfiguration() { return this.configuration; } public void setConfiguration(com.fasterxml.jackson.databind.JsonNode configuration) { this.configuration = configuration; } private void writeObject(java.io.ObjectOutputStream out) throws IOException { out.defaultWriteObject(); if(configuration == null){ out.writeBoolean(false); } else { out.writeBoolean(true); new com.fasterxml.jackson.databind.ObjectMapper().configure(com.fasterxml.jackson.core.JsonGenerator.Feature.AUTO_CLOSE_TARGET, false).writeValue(out, configuration); } } private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if(in.readBoolean()){ this.configuration = new com.fasterxml.jackson.databind.ObjectMapper().configure(com.fasterxml.jackson.core.JsonParser.Feature.AUTO_CLOSE_SOURCE, false).readValue(in, com.fasterxml.jackson.databind.JsonNode.class); } } }