Sha256: 73498a04e109559d4c8a115ff8e3bbf7fad4be60cb3d656657bf40c50c926d77
Contents?: true
Size: 1.12 KB
Versions: 19
Compression:
Stored size: 1.12 KB
Contents
package org.embulk.output.mailchimp.model; import com.fasterxml.jackson.annotation.JsonCreator; import org.embulk.config.ConfigException; /** * Created by thangnc on 6/9/17. */ public enum AddressMergeFieldAttribute { ADDR1("addr1"), ADDR2("addr2"), CITY("city"), STATE("state"), ZIP("zip"), COUNTRY("country"); private String name; AddressMergeFieldAttribute(String type) { this.name = type; } /** * Gets name. * * @return the name */ public String getName() { return name; } /** * Find by name method. * * @param name the name * @return the auth method */ @JsonCreator public static AddressMergeFieldAttribute findByName(final String name) { for (AddressMergeFieldAttribute method : values()) { if (method.getName().equals(name.toLowerCase())) { return method; } } throw new ConfigException( String.format("Unknown attributes '%s'. Supported attributes are [addr1, addr1, state, zip, country]", name)); } }
Version data entries
19 entries across 19 versions & 1 rubygems