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

io.sphere.sdk.attributes.LocalizedStringsAttributeDefinitionBuilder 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 LocalizedStringsAttributeDefinitionBuilder extends BaseBuilder {

    private final TextInputHint textInputHint;

    LocalizedStringsAttributeDefinitionBuilder(final String name, final LocalizedStrings label, final TextInputHint textInputHint) {
        super(name, label);
        this.textInputHint = textInputHint;
    }

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

    @Override
    public LocalizedStringsAttributeDefinition build() {
        return new LocalizedStringsAttributeDefinition(new LocalizedStringsType(), getName(), getLabel(), isRequired(), getAttributeConstraint(), isSearchable(), textInputHint);
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy