io.sphere.sdk.shippingmethods.commands.updateactions.SetDescription Maven / Gradle / Ivy
package io.sphere.sdk.shippingmethods.commands.updateactions;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import java.util.Optional;
/**
*
* {@include.example io.sphere.sdk.shippingmethods.commands.ShippingMethodUpdateCommandTest#setDescription()}
*/
public class SetDescription extends UpdateAction {
private final Optional description;
private SetDescription(final Optional description) {
super("setDescription");
this.description = description;
}
public static SetDescription of(final String description) {
return of(Optional.of(description));
}
public static SetDescription of(final Optional description) {
return new SetDescription(description);
}
public Optional getDescription() {
return description;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy