io.sphere.sdk.attributes.MoneyAttributeDefinitionBuilder Maven / Gradle / Ivy
package io.sphere.sdk.attributes;
import io.sphere.sdk.models.LocalizedString;
public class MoneyAttributeDefinitionBuilder extends BaseBuilder {
MoneyAttributeDefinitionBuilder(final String name, final LocalizedString label) {
super(name, label);
}
@Override
protected MoneyAttributeDefinitionBuilder getThis() {
return this;
}
@Override
public MoneyAttributeDefinition build() {
return new MoneyAttributeDefinition(new MoneyType(), getName(), getLabel(), isRequired(), getAttributeConstraint(), isSearchable());
}
public static MoneyAttributeDefinitionBuilder of(final String name, final LocalizedString label) {
return new MoneyAttributeDefinitionBuilder(name, label);
}
}