public final class AttributeDefinitionDraftBuilder extends Base
Modifier and Type | Method and Description |
---|---|
T |
attributeConstraint(AttributeConstraint attributeConstraint)
Sets the
attributeConstraint property of this builder. |
T |
attributeType(AttributeType attributeType)
Sets the
attributeType property of this builder. |
AttributeDefinitionDraftDsl |
build()
Creates a new instance of
AttributeDefinitionDraftDsl with the values of this builder. |
AttributeConstraint |
getAttributeConstraint() |
AttributeType |
getAttributeType() |
TextInputHint |
getInputHint() |
LocalizedString |
getInputTip() |
LocalizedString |
getLabel() |
String |
getName() |
T |
inputHint(TextInputHint inputHint)
Sets the
inputHint property of this builder. |
T |
inputTip(LocalizedString inputTip)
Sets the
inputTip property of this builder. |
Boolean |
isRequired() |
T |
isRequired(Boolean required)
Sets the
required property of this builder. |
Boolean |
isSearchable() |
T |
isSearchable(Boolean searchable)
Sets the
searchable property of this builder. |
T |
label(LocalizedString label)
Sets the
label property of this builder. |
T |
name(String name)
Sets the
name property of this builder. |
static AttributeDefinitionDraftBuilder |
of(AttributeDefinition template)
Creates a new object initialized with the fields of the template parameter.
|
static AttributeDefinitionDraftBuilder |
of(AttributeDefinitionDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static AttributeDefinitionDraftBuilder |
of(AttributeType attributeType,
String name,
LocalizedString label,
Boolean required)
Creates a new object initialized with the given values.
|
T |
required(Boolean required)
Sets the
required property of this builder. |
T |
searchable(Boolean searchable)
Sets the
searchable property of this builder. |
public static AttributeDefinitionDraftBuilder of(AttributeDefinition template)
template
- the templatepublic T attributeConstraint(@Nullable AttributeConstraint attributeConstraint)
attributeConstraint
property of this builder.attributeConstraint
- the value for AttributeDefinitionDraft.getAttributeConstraint()
public T attributeType(AttributeType attributeType)
attributeType
property of this builder.attributeType
- the value for AttributeDefinitionDraft.getAttributeType()
public T inputHint(TextInputHint inputHint)
inputHint
property of this builder.inputHint
- the value for AttributeDefinitionDraft.getInputHint()
public T inputTip(@Nullable LocalizedString inputTip)
inputTip
property of this builder.inputTip
- the value for AttributeDefinitionDraft.getInputTip()
public T label(LocalizedString label)
label
property of this builder.label
- the value for AttributeDefinitionDraft.getLabel()
public T name(String name)
name
property of this builder.name
- the value for AttributeDefinitionDraft.getName()
public T required(Boolean required)
required
property of this builder.required
- the value for AttributeDefinitionDraft.isRequired()
public T isRequired(Boolean required)
required
property of this builder.required
- the value for AttributeDefinitionDraft.isRequired()
public T searchable(Boolean searchable)
searchable
property of this builder.searchable
- the value for AttributeDefinitionDraft.isSearchable()
public T isSearchable(Boolean searchable)
searchable
property of this builder.searchable
- the value for AttributeDefinitionDraft.isSearchable()
@Nullable public AttributeConstraint getAttributeConstraint()
public AttributeType getAttributeType()
public TextInputHint getInputHint()
@Nullable public LocalizedString getInputTip()
public LocalizedString getLabel()
public String getName()
public Boolean isRequired()
public Boolean isSearchable()
public AttributeDefinitionDraftDsl build()
AttributeDefinitionDraftDsl
with the values of this builder.build
in interface Builder<AttributeDefinitionDraftDsl>
public static AttributeDefinitionDraftBuilder of(AttributeType attributeType, String name, LocalizedString label, Boolean required)
attributeType
- initial value for the AttributeDefinitionDraft.getAttributeType()
propertyname
- initial value for the AttributeDefinitionDraft.getName()
propertylabel
- initial value for the AttributeDefinitionDraft.getLabel()
propertyrequired
- initial value for the AttributeDefinitionDraft.isRequired()
propertypublic static AttributeDefinitionDraftBuilder of(AttributeDefinitionDraft template)
template
- the template