io.sphere.sdk.attributes.BooleanAttributeDefinitionBuilder Maven / Gradle / Ivy
The newest version!
package io.sphere.sdk.attributes;
import io.sphere.sdk.models.LocalizedStrings;
public class BooleanAttributeDefinitionBuilder extends BaseBuilder {
BooleanAttributeDefinitionBuilder(final String name, final LocalizedStrings label) {
super(name, label);
}
@Override
protected BooleanAttributeDefinitionBuilder getThis() {
return this;
}
@Override
public BooleanAttributeDefinition build() {
return new BooleanAttributeDefinition(new BooleanType(), getName(), getLabel(), isRequired(), getAttributeConstraint(), isSearchable());
}
public static BooleanAttributeDefinitionBuilder of(final String name, final LocalizedStrings label) {
return new BooleanAttributeDefinitionBuilder(name, label);
}
}