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

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

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.attributes;

import io.sphere.sdk.models.LocalizedStrings;

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy