io.sphere.sdk.states.commands.StateCreateCommand Maven / Gradle / Ivy
/*
This class has been generated by class io.sphere.sdk.annotations.processors.CreateCommandEndpointAnnotationProcessor
induced by the annotation io.sphere.sdk.annotations.HasCreateCommand.
in the source class io.sphere.sdk.states.State.
To render this class the handlebars template 'commands/createCommandInterface.hbs' has been used.
*/
package io.sphere.sdk.states.commands;
import io.sphere.sdk.commands.DraftBasedCreateCommandDsl;
import io.sphere.sdk.expansion.MetaModelReferenceExpansionDsl;
import io.sphere.sdk.states.State;
import io.sphere.sdk.states.StateDraft;
import io.sphere.sdk.states.expansion.StateExpansionModel;
/**
Command object to create a {@link State}.
{@include.example io.sphere.sdk.states.commands.StateCreateCommandIntegrationTest#execution() }
@see StateDraft
@see State
*/
public interface StateCreateCommand extends DraftBasedCreateCommandDsl, MetaModelReferenceExpansionDsl> {
/**
Creates a command object to create a {@link State}.
@param draft template to create the new object
@return a new create command
*/
static StateCreateCommand of(final StateDraft draft) {
return new StateCreateCommandImpl(draft);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy