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

io.sphere.sdk.productdiscounts.commands.updateactions.ChangeIsActive Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.productdiscounts.ProductDiscount;

/**
 * Enables or disables the discount.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.productdiscounts.commands.ProductDiscountUpdateCommandTest#changeIsActive()}
 */
public class ChangeIsActive extends UpdateActionImpl {
    private final boolean isActive;

    private ChangeIsActive(final boolean isActive) {
        super("changeIsActive");
        this.isActive = isActive;
    }

    public static ChangeIsActive of(final boolean isActive) {
        return new ChangeIsActive(isActive);
    }

    @JsonProperty("isActive")
    public boolean isActive() {
        return isActive;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy