Sha256: 54142426b46f6f53ca3298c6bb36463c38e809d1c57000b604d0bdf89b812a39

Contents?: true

Size: 1.38 KB

Versions: 24

Compression:

Stored size: 1.38 KB

Contents

package org.embulk.output.mailchimp.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import org.embulk.config.ConfigException;

/**
 * Created by thangnc on 4/26/17.
 */
public enum MemberStatus
{
    /**
     * Subscribed member status.
     */
    SUBSCRIBED("subscribed"),
    /**
     * Pending member status. This status will enable to send confirmation email to user
     */
    PENDING("pending"),
    /**
     * Unsubscribed member status.
     */
    UNSUBSCRIBED("unsubscribed"),
    /**
     * Cleaned member status. Remove out of list of members but keep log
     */
    CLEANED("cleaned");

    private String type;

    MemberStatus(final String type)
    {
        this.type = type;
    }

    /**
     * Gets type.
     *
     * @return the type
     */
    public String getType()
    {
        return type;
    }

    /**
     * Find by type auth method.
     *
     * @param type the type
     * @return the auth method
     */
    @JsonCreator
    public static MemberStatus findByType(final String type)
    {
        for (MemberStatus method : values()) {
            if (method.getType().equals(type.toLowerCase())) {
                return method;
            }
        }

        throw new ConfigException(
                String.format("Unknown status '%s'. Supported statuses are [subscribed, pending, unsubscribed, cleaned]",
                              type));
    }
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
embulk-output-mailchimp-0.3.31 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.28 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.25 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.24 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.23 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.22 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.21 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.20 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.19 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.18 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.17 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.16 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.15 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.14 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.13 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.12 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.11 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.10 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.9 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java
embulk-output-mailchimp-0.3.7 src/main/java/org/embulk/output/mailchimp/model/MemberStatus.java