io.sphere.sdk.attributes.DateTimeAttributeDefinitionBuilder Maven / Gradle / Ivy
The 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);
}
}