Interface CustomerGroupDraft
- All Superinterfaces:
CustomizableDraft<CustomerGroupDraft>
,Draft<CustomerGroupDraft>
,WithKey
public interface CustomerGroupDraft
extends CustomizableDraft<CustomerGroupDraft>, WithKey, Draft<CustomerGroupDraft>
CustomerGroupDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerGroupDraft customerGroupDraft = CustomerGroupDraft.builder()
.groupName("{groupName}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerGroupDraftBuilder
builder()
builder factory method for CustomerGroupDraftstatic CustomerGroupDraftBuilder
builder
(CustomerGroupDraft template) create builder for CustomerGroupDraft instancestatic CustomerGroupDraft
deepCopy
(CustomerGroupDraft template) factory method to create a deep copy of CustomerGroupDraft@Valid CustomFieldsDraft
Custom Fields for the CustomerGroup.@NotNull String
Unique value which must be different from any value used forname
in CustomerGroup in the Project.getKey()
User-defined unique identifier for the CustomerGroup.static CustomerGroupDraft
of()
factory methodstatic CustomerGroupDraft
of
(CustomerGroupDraft template) factory method to create a shallow copy CustomerGroupDraftvoid
setCustom
(CustomFieldsDraft custom) Custom Fields for the CustomerGroup.void
setGroupName
(String groupName) Unique value which must be different from any value used forname
in CustomerGroup in the Project.void
User-defined unique identifier for the CustomerGroup.static com.fasterxml.jackson.core.type.TypeReference<CustomerGroupDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerGroupDraft
(Function<CustomerGroupDraft, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
-
Method Details
-
getKey
String getKey()User-defined unique identifier for the CustomerGroup.
-
getGroupName
Unique value which must be different from any value used for
name
in CustomerGroup in the Project. If not, a DuplicateField error is returned.- Returns:
- groupName
-
getCustom
Custom Fields for the CustomerGroup.
- Specified by:
getCustom
in interfaceCustomizableDraft<CustomerGroupDraft>
- Returns:
- custom
-
setKey
User-defined unique identifier for the CustomerGroup.
- Parameters:
key
- value to be set
-
setGroupName
Unique value which must be different from any value used for
name
in CustomerGroup in the Project. If not, a DuplicateField error is returned.- Parameters:
groupName
- value to be set
-
setCustom
Custom Fields for the CustomerGroup.
- Specified by:
setCustom
in interfaceCustomizableDraft<CustomerGroupDraft>
- Parameters:
custom
- value to be set
-
of
factory method- Returns:
- instance of CustomerGroupDraft
-
of
factory method to create a shallow copy CustomerGroupDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerGroupDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerGroupDraft- Returns:
- builder
-
builder
create builder for CustomerGroupDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerGroupDraft
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
-