io.sphere.sdk.customergroups.commands.CustomerGroupCreateCommand 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.customergroups.CustomerGroup.
To render this class the handlebars template 'commands/createCommandInterface.hbs' has been used.
*/
package io.sphere.sdk.customergroups.commands;
import io.sphere.sdk.commands.DraftBasedCreateCommandDsl;
import io.sphere.sdk.expansion.MetaModelReferenceExpansionDsl;
import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.customergroups.CustomerGroupDraft;
import io.sphere.sdk.customergroups.expansion.CustomerGroupExpansionModel;
/**
Creates a new customer group
{@include.example io.sphere.sdk.customergroups.commands.CustomerGroupCreateCommandIntegrationTest#execution() }
@see CustomerGroupDraft
@see CustomerGroup
*/
public interface CustomerGroupCreateCommand extends DraftBasedCreateCommandDsl, MetaModelReferenceExpansionDsl> {
/**
Creates a command object to create a {@link CustomerGroup}.
@param draft template to create the new object
@return a new create command
*/
static CustomerGroupCreateCommand of(final CustomerGroupDraft draft) {
return new CustomerGroupCreateCommandImpl(draft);
}
static CustomerGroupCreateCommand of(final String groupName) {
return of(CustomerGroupDraft.of(groupName));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy