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

io.sphere.sdk.attributes.TimeAttributeDefinitionBuilder 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 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