Sha256: a94d01e9c0e642b61890ac444f6a3aff110d4a8c14f3ad5b8d26eb926e2f7e6c

Contents?: true

Size: 1.18 KB

Versions: 12

Compression:

Stored size: 1.18 KB

Contents

package org.embulk.input.facebook_ads_insights.model;

import com.facebook.ads.sdk.AdsInsights;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import org.embulk.config.ConfigException;

public class ActionReportTime
{
    private final AdsInsights.EnumActionReportTime enumActionReportTime;

    private ActionReportTime(final AdsInsights.EnumActionReportTime enumActionReportTime)
    {
        this.enumActionReportTime = enumActionReportTime;
    }

    @JsonValue
    @Override
    public String toString()
    {
        return this.enumActionReportTime.toString();
    }

    @JsonCreator
    public static ActionReportTime fromString(final String value)
    {
        switch (value) {
            case "conversion": return new ActionReportTime(AdsInsights.EnumActionReportTime.VALUE_CONVERSION);
            case "impression": return new ActionReportTime(AdsInsights.EnumActionReportTime.VALUE_IMPRESSION);
            default: throw new ConfigException(String.format("Unknown ActionReportTime value '%s'", value));
        }
    }

    public AdsInsights.EnumActionReportTime getEnum()
    {
        return this.enumActionReportTime;
    }
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
embulk-input-facebook_ads_insights-0.1.11 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java
embulk-input-facebook_ads_insights-0.1.10 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java
embulk-input-facebook_ads_insights-0.1.9 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java
embulk-input-facebook_ads_insights-0.1.8 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java
embulk-input-facebook_ads_insights-0.1.7 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java
embulk-input-facebook_ads_insights-0.1.6 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java
embulk-input-facebook_ads_insights-0.1.5 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java
embulk-input-facebook_ads_insights-0.1.4 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java
embulk-input-facebook_ads_insights-0.1.3 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java
embulk-input-facebook_ads_insights-0.1.2 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java
embulk-input-facebook_ads_insights-0.1.1 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java
embulk-input-facebook_ads_insights-0.1.0 src/main/java/org/embulk/input/facebook_ads_insights/model/ActionReportTime.java