io.sphere.sdk.attributes.TimeAttributeDefinitionBuilder Maven / Gradle / Ivy
package io.sphere.sdk.attributes;
import io.sphere.sdk.models.LocalizedStrings;
public class TimeAttributeDefinitionBuilder extends BaseBuilder {
TimeAttributeDefinitionBuilder(final String name, final LocalizedStrings label) {
super(name, label);
}
@Override
protected TimeAttributeDefinitionBuilder getThis() {
return this;
}
@Override
public TimeAttributeDefinition build() {
return new TimeAttributeDefinition(new TimeType(), getName(), getLabel(), isRequired(), getAttributeConstraint(), isSearchable());
}
public static TimeAttributeDefinitionBuilder of(final String name, final LocalizedStrings label) {
return new TimeAttributeDefinitionBuilder(name, label);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy