io.sphere.sdk.attributes.NumberAttributeDefinitionBuilder Maven / Gradle / Ivy
package io.sphere.sdk.attributes;
import io.sphere.sdk.models.LocalizedStrings;
public class NumberAttributeDefinitionBuilder extends BaseBuilder {
NumberAttributeDefinitionBuilder(final String name, final LocalizedStrings label) {
super(name, label);
}
@Override
protected NumberAttributeDefinitionBuilder getThis() {
return this;
}
@Override
public NumberAttributeDefinition build() {
return new NumberAttributeDefinition(new NumberType(), getName(), getLabel(), isRequired(), getAttributeConstraint(), isSearchable());
}
public static NumberAttributeDefinitionBuilder of(final String name, final LocalizedStrings label) {
return new NumberAttributeDefinitionBuilder(name, label);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy