All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.attributes.MoneyAttributeDefinitionBuilder Maven / Gradle / Ivy

The newest version!
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