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

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

The newest version!
package io.sphere.sdk.attributes;

import io.sphere.sdk.models.LocalizedStrings;

public class DateAttributeDefinitionBuilder extends BaseBuilder {
    DateAttributeDefinitionBuilder(final String name, final LocalizedStrings label) {
        super(name, label);
    }

    @Override
    protected DateAttributeDefinitionBuilder getThis() {
        return this;
    }

    @Override
    public DateAttributeDefinition build() {
        return new DateAttributeDefinition(new DateType(), getName(), getLabel(), isRequired(), getAttributeConstraint(), isSearchable());
    }

    public static DateAttributeDefinitionBuilder of(final String name, final LocalizedStrings label) {
        return new DateAttributeDefinitionBuilder(name, label);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy