Interface AttributeGroup
- All Superinterfaces:
BaseResource,DomainResource<AttributeGroup>,Identifiable<AttributeGroup>,Versioned<AttributeGroup>,WithKey
Example to create an instance using the builder pattern
AttributeGroup attributeGroup = AttributeGroup.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(nameBuilder -> nameBuilder)
.plusAttributes(attributesBuilder -> attributesBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeGroupBuilderbuilder()builder factory method for AttributeGroupstatic AttributeGroupBuilderbuilder(AttributeGroup template) create builder for AttributeGroup instancecopyDeep()static AttributeGroupdeepCopy(AttributeGroup template) factory method to create a deep copy of AttributeGroup@NotNull @Valid List<AttributeReference>Attributes with unique values.@NotNull ZonedDateTimeDate and time (UTC) the AttributeGroup was initially created.@Valid CreatedByIDs and references that created the AttributeGroup.@Valid LocalizedStringDescription of the AttributeGroup.@NotNull StringgetId()Platform-generated unique identifier of the AttributeGroup.getKey()User-defined unique identifier of the AttributeGroup.@NotNull ZonedDateTimeDate and time (UTC) the AttributeGroup was last updated.@Valid LastModifiedByIDs and references that last modified the AttributeGroup.@NotNull @Valid LocalizedStringgetName()Name of the AttributeGroup.@NotNull LongCurrent version of the AttributeGroup.static AttributeGroupof()factory methodstatic AttributeGroupof(AttributeGroup template) factory method to create a shallow copy AttributeGroupvoidsetAttributes(AttributeReference... attributes) Attributes with unique values.voidsetAttributes(List<AttributeReference> attributes) Attributes with unique values.voidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the AttributeGroup was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the AttributeGroup.voidsetDescription(LocalizedString description) Description of the AttributeGroup.voidPlatform-generated unique identifier of the AttributeGroup.voidUser-defined unique identifier of the AttributeGroup.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the AttributeGroup was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the AttributeGroup.voidsetName(LocalizedString name) Name of the AttributeGroup.voidsetVersion(Long version) Current version of the AttributeGroup.static com.fasterxml.jackson.core.type.TypeReference<AttributeGroup>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAttributeGroup(Function<AttributeGroup, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
get
-
Method Details
-
getId
Platform-generated unique identifier of the AttributeGroup.
- Specified by:
getIdin interfaceBaseResource- Specified by:
getIdin interfaceDomainResource<AttributeGroup>- Specified by:
getIdin interfaceIdentifiable<AttributeGroup>- Specified by:
getIdin interfaceVersioned<AttributeGroup>- Returns:
- id
-
getVersion
Current version of the AttributeGroup.
- Specified by:
getVersionin interfaceBaseResource- Specified by:
getVersionin interfaceDomainResource<AttributeGroup>- Specified by:
getVersionin interfaceVersioned<AttributeGroup>- Returns:
- version
-
getCreatedAt
Date and time (UTC) the AttributeGroup was initially created.
- Specified by:
getCreatedAtin interfaceBaseResource- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the AttributeGroup was last updated.
- Specified by:
getLastModifiedAtin interfaceBaseResource- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the AttributeGroup.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the AttributeGroup.
- Returns:
- createdBy
-
getName
Name of the AttributeGroup.
- Returns:
- name
-
getDescription
Description of the AttributeGroup.
- Returns:
- description
-
getAttributes
Attributes with unique values.
- Returns:
- attributes
-
getKey
String getKey()User-defined unique identifier of the AttributeGroup.
-
setId
Platform-generated unique identifier of the AttributeGroup.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the AttributeGroup.
- Specified by:
setVersionin interfaceBaseResource- Parameters:
version- value to be set
-
setCreatedAt
Date and time (UTC) the AttributeGroup was initially created.
- Specified by:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the AttributeGroup was last updated.
- Specified by:
setLastModifiedAtin interfaceBaseResource- Parameters:
lastModifiedAt- value to be set
-
setLastModifiedBy
IDs and references that last modified the AttributeGroup.
- Parameters:
lastModifiedBy- value to be set
-
setCreatedBy
IDs and references that created the AttributeGroup.
- Parameters:
createdBy- value to be set
-
setName
Name of the AttributeGroup.
- Parameters:
name- value to be set
-
setDescription
Description of the AttributeGroup.
- Parameters:
description- value to be set
-
setAttributes
Attributes with unique values.
- Parameters:
attributes- values to be set
-
setAttributes
Attributes with unique values.
- Parameters:
attributes- values to be set
-
setKey
User-defined unique identifier of the AttributeGroup.
- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of AttributeGroup
-
of
factory method to create a shallow copy AttributeGroup- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AttributeGroup copyDeep()- Specified by:
copyDeepin interfaceBaseResource
-
deepCopy
factory method to create a deep copy of AttributeGroup- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributeGroup- Returns:
- builder
-
builder
create builder for AttributeGroup instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAttributeGroup
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
-