io.sphere.sdk.attributes.MoneyAttributeDefinitionBuilder Maven / Gradle / Ivy
package io.sphere.sdk.attributes;
import io.sphere.sdk.models.LocalizedStrings;
public class MoneyAttributeDefinitionBuilder extends BaseBuilder {
MoneyAttributeDefinitionBuilder(final String name, final LocalizedStrings 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 LocalizedStrings label) {
return new MoneyAttributeDefinitionBuilder(name, label);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy