Interface CustomerGroup
- All Superinterfaces:
BaseResource,CustomerGroupMixin,Customizable<CustomerGroup>,DomainResource<CustomerGroup>,Identifiable<CustomerGroup>,Referencable<CustomerGroup>,ResourceIdentifiable<CustomerGroup>,Versioned<CustomerGroup>,WithKey
Example to create an instance using the builder pattern
CustomerGroup customerGroup = CustomerGroup.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.name("{name}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerGroupBuilderbuilder()builder factory method for CustomerGroupstatic CustomerGroupBuilderbuilder(CustomerGroup template) create builder for CustomerGroup instancecopyDeep()static CustomerGroupdeepCopy(CustomerGroup template) factory method to create a deep copy of CustomerGroup@NotNull ZonedDateTimeDate and time (UTC) the CustomerGroup was initially created.@Valid CreatedByIDs and references that created the CustomerGroup.@Valid CustomFieldsCustom Fields for the CustomerGroup.@NotNull StringgetId()Unique identifier of the CustomerGroup.getKey()User-defined unique identifier for the CustomerGroup.@NotNull ZonedDateTimeDate and time (UTC) the CustomerGroup was last updated.@Valid LastModifiedByIDs and references that last modified the CustomerGroup.@NotNull StringgetName()Unique name of the CustomerGroup.@NotNull LongCurrent version of the CustomerGroup.static CustomerGroupof()factory methodstatic CustomerGroupof(CustomerGroup template) factory method to create a shallow copy CustomerGroupstatic ReferenceTypeIdvoidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the CustomerGroup was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the CustomerGroup.voidsetCustom(CustomFields custom) Custom Fields for the CustomerGroup.voidUnique identifier of the CustomerGroup.voidUser-defined unique identifier for the CustomerGroup.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the CustomerGroup was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the CustomerGroup.voidUnique name of the CustomerGroup.voidsetVersion(Long version) Current version of the CustomerGroup.static com.fasterxml.jackson.core.type.TypeReference<CustomerGroup>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCustomerGroup(Function<CustomerGroup, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.customer_group.CustomerGroupMixin
toReference, toResourceIdentifierMethods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizableMethods inherited from interface com.commercetools.api.models.DomainResource
get
-
Method Details
-
getId
Unique identifier of the CustomerGroup.
- Specified by:
getIdin interfaceBaseResource- Specified by:
getIdin interfaceDomainResource<CustomerGroup>- Specified by:
getIdin interfaceIdentifiable<CustomerGroup>- Specified by:
getIdin interfaceVersioned<CustomerGroup>- Returns:
- id
-
getVersion
Current version of the CustomerGroup.
- Specified by:
getVersionin interfaceBaseResource- Specified by:
getVersionin interfaceDomainResource<CustomerGroup>- Specified by:
getVersionin interfaceVersioned<CustomerGroup>- Returns:
- version
-
getCreatedAt
Date and time (UTC) the CustomerGroup was initially created.
- Specified by:
getCreatedAtin interfaceBaseResource- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the CustomerGroup was last updated.
- Specified by:
getLastModifiedAtin interfaceBaseResource- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the CustomerGroup.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the CustomerGroup.
- Returns:
- createdBy
-
getKey
String getKey()User-defined unique identifier for the CustomerGroup.
-
getName
Unique name of the CustomerGroup.
- Returns:
- name
-
getCustom
Custom Fields for the CustomerGroup.
- Specified by:
getCustomin interfaceCustomizable<CustomerGroup>- Returns:
- custom
-
setId
Unique identifier of the CustomerGroup.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the CustomerGroup.
- Specified by:
setVersionin interfaceBaseResource- Parameters:
version- value to be set
-
setCreatedAt
Date and time (UTC) the CustomerGroup was initially created.
- Specified by:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the CustomerGroup was last updated.
- Specified by:
setLastModifiedAtin interfaceBaseResource- Parameters:
lastModifiedAt- value to be set
-
setLastModifiedBy
IDs and references that last modified the CustomerGroup.
- Parameters:
lastModifiedBy- value to be set
-
setCreatedBy
IDs and references that created the CustomerGroup.
- Parameters:
createdBy- value to be set
-
setKey
User-defined unique identifier for the CustomerGroup.
- Parameters:
key- value to be set
-
setName
Unique name of the CustomerGroup.
- Parameters:
name- value to be set
-
setCustom
Custom Fields for the CustomerGroup.
- Specified by:
setCustomin interfaceCustomizable<CustomerGroup>- Parameters:
custom- value to be set
-
of
factory method- Returns:
- instance of CustomerGroup
-
of
factory method to create a shallow copy CustomerGroup- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerGroup copyDeep()- Specified by:
copyDeepin interfaceBaseResource
-
deepCopy
factory method to create a deep copy of CustomerGroup- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerGroup- Returns:
- builder
-
builder
create builder for CustomerGroup instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerGroup
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
referenceTypeId
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-