Class AttributeGroupBuilder
- All Implemented Interfaces:
Builder<AttributeGroup>
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAttributes with unique values.attributes
(AttributeReference... attributes) Attributes with unique values.attributes
(List<AttributeReference> attributes) Attributes with unique values.build()
builds AttributeGroup with checking for non-null required valuesbuilds AttributeGroup without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the AttributeGroup was initially created.IDs and references that created the AttributeGroup.createdBy
(Function<CreatedByBuilder, CreatedByBuilder> builder) IDs and references that created the AttributeGroup.description
(LocalizedString description) Description of the AttributeGroup.Description of the AttributeGroup.Attributes with unique values.Date and time (UTC) the AttributeGroup was initially created.IDs and references that created the AttributeGroup.Description of the AttributeGroup.getId()
Platform-generated unique identifier of the AttributeGroup.getKey()
User-defined unique identifier of the AttributeGroup.Date and time (UTC) the AttributeGroup was last updated.IDs and references that last modified the AttributeGroup.getName()
Name of the AttributeGroup.Current version of the AttributeGroup.Platform-generated unique identifier of the AttributeGroup.User-defined unique identifier of the AttributeGroup.lastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the AttributeGroup was last updated.lastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the AttributeGroup.IDs and references that last modified the AttributeGroup.name
(LocalizedString name) Name of the AttributeGroup.Name of the AttributeGroup.static AttributeGroupBuilder
of()
factory method for an instance of AttributeGroupBuilderstatic AttributeGroupBuilder
of
(AttributeGroup template) create builder for AttributeGroup instanceplusAttributes
(AttributeReference... attributes) Attributes with unique values.Attributes with unique values.Attributes with unique values.Current version of the AttributeGroup.Attributes with unique values.withCreatedBy
(Function<CreatedByBuilder, CreatedBy> builder) IDs and references that created the AttributeGroup.Description of the AttributeGroup.IDs and references that last modified the AttributeGroup.Name of the AttributeGroup.
-
Constructor Details
-
AttributeGroupBuilder
public AttributeGroupBuilder()
-
-
Method Details
-
id
Platform-generated unique identifier of the AttributeGroup.
- Parameters:
id
- value to be set- Returns:
- Builder
-
version
Current version of the AttributeGroup.
- Parameters:
version
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the AttributeGroup was initially created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
Date and time (UTC) the AttributeGroup was last updated.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
lastModifiedBy
public AttributeGroupBuilder lastModifiedBy(Function<LastModifiedByBuilder, LastModifiedByBuilder> builder) IDs and references that last modified the AttributeGroup.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
withLastModifiedBy
public AttributeGroupBuilder withLastModifiedBy(Function<LastModifiedByBuilder, LastModifiedBy> builder) IDs and references that last modified the AttributeGroup.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
lastModifiedBy
IDs and references that last modified the AttributeGroup.
- Parameters:
lastModifiedBy
- value to be set- Returns:
- Builder
-
createdBy
IDs and references that created the AttributeGroup.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
withCreatedBy
IDs and references that created the AttributeGroup.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
createdBy
IDs and references that created the AttributeGroup.
- Parameters:
createdBy
- value to be set- Returns:
- Builder
-
name
Name of the AttributeGroup.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
Name of the AttributeGroup.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Name of the AttributeGroup.
- Parameters:
name
- value to be set- Returns:
- Builder
-
description
public AttributeGroupBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Description of the AttributeGroup.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public AttributeGroupBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Description of the AttributeGroup.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
Description of the AttributeGroup.
- Parameters:
description
- value to be set- Returns:
- Builder
-
attributes
Attributes with unique values.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
attributes
Attributes with unique values.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
Attributes with unique values.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
public AttributeGroupBuilder plusAttributes(Function<AttributeReferenceBuilder, AttributeReferenceBuilder> builder) Attributes with unique values.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
withAttributes
public AttributeGroupBuilder withAttributes(Function<AttributeReferenceBuilder, AttributeReferenceBuilder> builder) Attributes with unique values.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
addAttributes
public AttributeGroupBuilder addAttributes(Function<AttributeReferenceBuilder, AttributeReference> builder) Attributes with unique values.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
setAttributes
public AttributeGroupBuilder setAttributes(Function<AttributeReferenceBuilder, AttributeReference> builder) Attributes with unique values.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
key
User-defined unique identifier of the AttributeGroup.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Platform-generated unique identifier of the AttributeGroup.
- Returns:
- id
-
getVersion
Current version of the AttributeGroup.
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the AttributeGroup was initially created.
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the AttributeGroup was last updated.
- 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
User-defined unique identifier of the AttributeGroup.
- Returns:
- key
-
build
builds AttributeGroup with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributeGroup>
- Returns:
- AttributeGroup
-
buildUnchecked
builds AttributeGroup without checking for non-null required values- Returns:
- AttributeGroup
-
of
factory method for an instance of AttributeGroupBuilder- Returns:
- builder
-
of
create builder for AttributeGroup instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-