Interface AttributeGroup
- All Superinterfaces:
BaseResource
,DomainResource<AttributeGroup>
,Identifiable<AttributeGroup>
,Versioned<AttributeGroup>
,WithKey
- All Known Implementing Classes:
AttributeGroupImpl
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 AttributeGroupBuilder
builder()
builder factory method for AttributeGroupstatic AttributeGroupBuilder
builder
(AttributeGroup template) create builder for AttributeGroup instancestatic AttributeGroup
deepCopy
(AttributeGroup template) factory method to create a deep copy of AttributeGroup@NotNull @Valid List<AttributeReference>
Attributes with unique values.@NotNull ZonedDateTime
Date and time (UTC) the AttributeGroup was initially created.@Valid CreatedBy
Present on resources created after 1 February 2019 except for events not tracked.@Valid LocalizedString
Description of the AttributeGroup.@NotNull String
getId()
Platform-generated unique identifier of the AttributeGroup.getKey()
User-defined unique identifier of the AttributeGroup.@NotNull ZonedDateTime
Date and time (UTC) the AttributeGroup was last updated.@Valid LastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.@NotNull @Valid LocalizedString
getName()
Name of the AttributeGroup.@NotNull Long
Current version of the AttributeGroup.static AttributeGroup
of()
factory methodstatic AttributeGroup
of
(AttributeGroup template) factory method to create a shallow copy AttributeGroupvoid
setAttributes
(AttributeReference... attributes) Attributes with unique values.void
setAttributes
(List<AttributeReference> attributes) Attributes with unique values.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the AttributeGroup was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setDescription
(LocalizedString description) Description of the AttributeGroup.void
Platform-generated unique identifier of the AttributeGroup.void
User-defined unique identifier of the AttributeGroup.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the AttributeGroup was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.void
setName
(LocalizedString name) Name of the AttributeGroup.void
setVersion
(Long version) Current version of the AttributeGroup.static com.fasterxml.jackson.core.type.TypeReference<AttributeGroup>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAttributeGroup
(Function<AttributeGroup, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
-
Method Details
-
getId
Platform-generated unique identifier of the AttributeGroup.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<AttributeGroup>
- Specified by:
getId
in interfaceIdentifiable<AttributeGroup>
- Specified by:
getId
in interfaceVersioned<AttributeGroup>
- Returns:
- id
-
getVersion
Current version of the AttributeGroup.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<AttributeGroup>
- Specified by:
getVersion
in interfaceVersioned<AttributeGroup>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the AttributeGroup was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the AttributeGroup was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- 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:
setId
in interfaceBaseResource
- Parameters:
id
- value to be set
-
setVersion
Current version of the AttributeGroup.
- Specified by:
setVersion
in interfaceBaseResource
- Parameters:
version
- value to be set
-
setCreatedAt
Date and time (UTC) the AttributeGroup was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Date and time (UTC) the AttributeGroup was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- 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
-
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
-