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 CustomerGroupDraftBuilderbuilder()builder factory method for CustomerGroupDraftstatic CustomerGroupDraftBuilderbuilder(CustomerGroupDraft template) create builder for CustomerGroupDraft instancecopyDeep()static CustomerGroupDraftdeepCopy(CustomerGroupDraft template) factory method to create a deep copy of CustomerGroupDraft@Valid CustomFieldsDraftCustom Fields for the CustomerGroup.@NotNull StringUnique value which must be different from any value used fornamein CustomerGroup in the Project.getKey()User-defined unique identifier for the CustomerGroup.static CustomerGroupDraftof()factory methodstatic CustomerGroupDraftof(CustomerGroupDraft template) factory method to create a shallow copy CustomerGroupDraftvoidsetCustom(CustomFieldsDraft custom) Custom Fields for the CustomerGroup.voidsetGroupName(String groupName) Unique value which must be different from any value used fornamein CustomerGroup in the Project.voidUser-defined unique identifier for the CustomerGroup.static com.fasterxml.jackson.core.type.TypeReference<CustomerGroupDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCustomerGroupDraft(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
namein CustomerGroup in the Project. If not, a DuplicateField error is returned.- Returns:
- groupName
-
getCustom
Custom Fields for the CustomerGroup.
- Specified by:
getCustomin 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
namein 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:
setCustomin 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
-
copyDeep
CustomerGroupDraft copyDeep() -
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
-