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

io.sphere.sdk.cartdiscounts.commands.updateactions.ChangeTarget Maven / Gradle / Ivy

package io.sphere.sdk.cartdiscounts.commands.updateactions;

import io.sphere.sdk.cartdiscounts.CartDiscount;
import io.sphere.sdk.cartdiscounts.CartDiscountTarget;
import io.sphere.sdk.commands.UpdateActionImpl;

/**
 * Changes the target.
 *
 *  {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.cartdiscounts.commands.CartDiscountUpdateCommandTest#changeTarget()}
 */
public class ChangeTarget extends UpdateActionImpl {
    private final CartDiscountTarget target;

    private ChangeTarget(final CartDiscountTarget target) {
        super("changeTarget");
        this.target = target;
    }

    public static ChangeTarget of(final CartDiscountTarget target) {
        return new ChangeTarget(target);
    }

    public CartDiscountTarget getTarget() {
        return target;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy