public final class ProductSelectionDraftBuilder extends Base
ProductSelectionDraft
.Modifier and Type | Method and Description |
---|---|
ProductSelectionDraftDsl |
build()
Creates a new instance of
ProductSelectionDraftDsl with the values of this builder. |
T |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
CustomFieldsDraft |
getCustom() |
String |
getKey() |
LocalizedString |
getName() |
T |
key(String key)
Sets the
key property of this builder. |
T |
name(LocalizedString name)
Sets the
name property of this builder. |
static ProductSelectionDraftBuilder |
of(LocalizedString name)
Creates a new object initialized with the given values.
|
static ProductSelectionDraftBuilder |
of(ProductSelectionDraft template)
Creates a new object initialized with the fields of the template parameter.
|
public T custom(@Nullable CustomFieldsDraft custom)
custom
property of this builder.custom
- the value for CustomDraft#getCustom()
public T key(@Nullable String key)
key
property of this builder.key
- the value for ProductSelectionDraft.getKey()
public T name(LocalizedString name)
name
property of this builder.name
- the value for ProductSelectionDraft.getName()
@Nullable public CustomFieldsDraft getCustom()
public LocalizedString getName()
public ProductSelectionDraftDsl build()
ProductSelectionDraftDsl
with the values of this builder.build
in interface Builder<ProductSelectionDraftDsl>
public static ProductSelectionDraftBuilder of(LocalizedString name)
name
- initial value for the ProductSelectionDraft.getName()
propertypublic static ProductSelectionDraftBuilder of(ProductSelectionDraft template)
template
- the template