io.sphere.sdk.commands.MetaModelCreateCommandBuilder Maven / Gradle / Ivy
package io.sphere.sdk.commands;
import io.sphere.sdk.client.JsonEndpoint;
import io.sphere.sdk.expansion.ExpansionPath;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Builder;
import java.util.List;
import java.util.function.Function;
/**
Internal builder.
*/
public class MetaModelCreateCommandBuilder extends Base implements Builder {
final D body;
final E expansionModel;
final JsonEndpoint endpoint;
final Function, C> creationFunction;
List> expansionPaths;
MetaModelCreateCommandBuilder(final MetaModelCreateCommandImpl template) {
body = template.body;
expansionModel = template.expansionModel;
endpoint = template.endpoint;
expansionPaths = template.expansionPaths;
creationFunction = template.creationFunction;
}
@Override
public C build() {
return creationFunction.apply(this);
}
public MetaModelCreateCommandBuilder expansionPaths(final List> expansionPaths) {
this.expansionPaths = expansionPaths;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy