@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.products.attributes.AttributeDefinitionDraft") public final class AttributeDefinitionDraftDsl extends Base implements AttributeDefinitionDraft
AttributeDefinitionDraft
.@Nullable public AttributeConstraint getAttributeConstraint()
getAttributeConstraint
in interface AttributeDefinitionDraft
public AttributeType getAttributeType()
getAttributeType
in interface AttributeDefinitionDraft
public TextInputHint getInputHint()
getInputHint
in interface AttributeDefinitionDraft
@Nullable public LocalizedString getInputTip()
getInputTip
in interface AttributeDefinitionDraft
public LocalizedString getLabel()
getLabel
in interface AttributeDefinitionDraft
public String getName()
getName
in interface AttributeDefinitionDraft
public Boolean isRequired()
isRequired
in interface AttributeDefinitionDraft
public Boolean isSearchable()
isSearchable
in interface AttributeDefinitionDraft
public AttributeDefinitionDraftBuilder newBuilder()
public AttributeDefinitionDraftDsl withAttributeConstraint(@Nullable AttributeConstraint attributeConstraint)
public AttributeDefinitionDraftDsl withAttributeType(AttributeType attributeType)
public AttributeDefinitionDraftDsl withInputHint(TextInputHint inputHint)
public AttributeDefinitionDraftDsl withInputTip(@Nullable LocalizedString inputTip)
public AttributeDefinitionDraftDsl withLabel(LocalizedString label)
public AttributeDefinitionDraftDsl withName(String name)
public AttributeDefinitionDraftDsl withRequired(Boolean required)
public AttributeDefinitionDraftDsl withSearchable(Boolean searchable)
public AttributeDefinitionDraftDsl withType(AttributeType attributeType)
public AttributeDefinitionDraftDsl withIsRequired(Boolean required)
public AttributeDefinitionDraftDsl withIsSearchable(Boolean searchable)
public static AttributeDefinitionDraftDsl 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 AttributeDefinitionDraftDsl of(AttributeDefinitionDraft template)
template
- the template