io.sphere.sdk.apiclient.commands.ApiClientCreateCommandImpl 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.apiclient.ApiClient.
To render this class the handlebars template 'commands/createCommandImplementation.hbs' has been used.
*/
package io.sphere.sdk.apiclient.commands;
import io.sphere.sdk.commands.MetaModelCreateCommandBuilder;
import io.sphere.sdk.commands.MetaModelCreateCommandImpl;
import io.sphere.sdk.apiclient.ApiClient;
import io.sphere.sdk.apiclient.ApiClientDraft;
import io.sphere.sdk.apiclient.expansion.ApiClientExpansionModel;
import io.sphere.sdk.client.JsonEndpoint;
final class ApiClientCreateCommandImpl extends MetaModelCreateCommandImpl> implements ApiClientCreateCommand {
ApiClientCreateCommandImpl(final MetaModelCreateCommandBuilder> builder) {
super(builder);
}
ApiClientCreateCommandImpl(final ApiClientDraft body) {
super(body, JsonEndpoint.of(ApiClient.typeReference(), "/api-clients"), ApiClientExpansionModel.of(), ApiClientCreateCommandImpl::new);
}
@Override
public ApiClientCreateCommand withDraft(final ApiClientDraft draft) {
return new ApiClientCreateCommandImpl(copyBuilder().draft(draft));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy