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

io.sphere.sdk.discountcodes.commands.updateactions.SetMaxApplications Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.discountcodes.DiscountCode;

import javax.annotation.Nullable;

/**
 * Sets the maximum applicable number of a discount code.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.discountcodes.commands.DiscountCodeUpdateCommandTest#setMaxApplications()}
 */
public class SetMaxApplications extends UpdateActionImpl {
    @Nullable
    private final Long maxApplications;

    private SetMaxApplications(final Long maxApplications) {
        super("setMaxApplications");
        this.maxApplications = maxApplications;
    }

    public static SetMaxApplications of(@Nullable final Long maxApplications) {
        return new SetMaxApplications(maxApplications);
    }

    @Nullable
    public Long getMaxApplications() {
        return maxApplications;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy