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

io.sphere.sdk.types.customupdateactions.SetCustomFieldBase Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.JsonNode;
import io.sphere.sdk.commands.UpdateActionImpl;

import javax.annotation.Nullable;

public abstract class SetCustomFieldBase extends UpdateActionImpl {
    private final String name;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @Nullable
    private final JsonNode value;

    protected SetCustomFieldBase(final String action, final String name, final JsonNode value) {
        super(action);
        this.name = name;
        this.value = value;
    }

    protected SetCustomFieldBase(final String name, final JsonNode value) {
        this("setCustomField", name, value);
    }

    public String getName() {
        return name;
    }

    @Nullable
    public JsonNode getValue() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy