All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.models.LocalizedEnumValue Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.models;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.core.type.TypeReference;

public class LocalizedEnumValue extends Base implements WithKey {
    private final String key;
    private final LocalizedString label;

    @JsonCreator
    private LocalizedEnumValue(final String key, final LocalizedString label) {
        this.key = key;
        this.label = label;
    }

    public static LocalizedEnumValue of(final String key, final LocalizedString label) {
        return new LocalizedEnumValue(key, label);
    }

    @Override
    public String getKey() {
        return key;
    }

    public LocalizedString getLabel() {
        return label;
    }

    public static TypeReference typeReference() {
        return new TypeReference() {
            @Override
            public String toString() {
                return "TypeReference";
            }
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy