Interface ProductSelectionDraft
- All Superinterfaces:
CustomizableDraft<ProductSelectionDraft>
,Draft<ProductSelectionDraft>
,WithKey
public interface ProductSelectionDraft
extends CustomizableDraft<ProductSelectionDraft>, WithKey, Draft<ProductSelectionDraft>
ProductSelectionDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionDraft productSelectionDraft = ProductSelectionDraft.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductSelectionDraftBuilder
builder()
builder factory method for ProductSelectionDraftstatic ProductSelectionDraftBuilder
builder
(ProductSelectionDraft template) create builder for ProductSelectionDraft instancestatic ProductSelectionDraft
deepCopy
(ProductSelectionDraft template) factory method to create a deep copy of ProductSelectionDraft@Valid CustomFieldsDraft
Custom Fields of this ProductSelection.getKey()
User-defined unique identifier for the ProductSelection.getMode()
Mode of the Product Selection.@NotNull @Valid LocalizedString
getName()
Name of the ProductSelection.static ProductSelectionDraft
of()
factory methodstatic ProductSelectionDraft
of
(ProductSelectionDraft template) factory method to create a shallow copy ProductSelectionDraftvoid
setCustom
(CustomFieldsDraft custom) Custom Fields of this ProductSelection.void
User-defined unique identifier for the ProductSelection.void
setMode
(ProductSelectionMode mode) Mode of the Product Selection.void
setName
(LocalizedString name) Name of the ProductSelection.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
-
Method Details
-
getKey
String getKey()User-defined unique identifier for the ProductSelection.
-
getName
Name of the ProductSelection. Not checked for uniqueness, but distinct names are recommended.
- Returns:
- name
-
getCustom
Custom Fields of this ProductSelection.
- Specified by:
getCustom
in interfaceCustomizableDraft<ProductSelectionDraft>
- Returns:
- custom
-
getMode
ProductSelectionMode getMode()Mode of the Product Selection.
- Returns:
- mode
-
setKey
User-defined unique identifier for the ProductSelection.
- Parameters:
key
- value to be set
-
setName
Name of the ProductSelection. Not checked for uniqueness, but distinct names are recommended.
- Parameters:
name
- value to be set
-
setCustom
Custom Fields of this ProductSelection.
- Specified by:
setCustom
in interfaceCustomizableDraft<ProductSelectionDraft>
- Parameters:
custom
- value to be set
-
setMode
Mode of the Product Selection.
- Parameters:
mode
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionDraft
-
of
factory method to create a shallow copy ProductSelectionDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductSelectionDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionDraft- Returns:
- builder
-
builder
create builder for ProductSelectionDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionDraft
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-