Class CustomerGroupBuilder
- All Implemented Interfaces:
Builder<CustomerGroup>
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerGroup with checking for non-null required valuesbuilds CustomerGroup without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the CustomerGroup was initially created.IDs and references that created the CustomerGroup.createdBy
(Function<CreatedByBuilder, CreatedByBuilder> builder) IDs and references that created the CustomerGroup.custom
(CustomFields custom) Custom Fields for the CustomerGroup.custom
(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) Custom Fields for the CustomerGroup.Date and time (UTC) the CustomerGroup was initially created.IDs and references that created the CustomerGroup.Custom Fields for the CustomerGroup.getId()
Unique identifier of the CustomerGroup.getKey()
User-defined unique identifier for the CustomerGroup.Date and time (UTC) the CustomerGroup was last updated.IDs and references that last modified the CustomerGroup.getName()
Unique name of the CustomerGroup.Current version of the CustomerGroup.Unique identifier of the CustomerGroup.User-defined unique identifier for the CustomerGroup.lastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the CustomerGroup was last updated.lastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the CustomerGroup.IDs and references that last modified the CustomerGroup.Unique name of the CustomerGroup.static CustomerGroupBuilder
of()
factory method for an instance of CustomerGroupBuilderstatic CustomerGroupBuilder
of
(CustomerGroup template) create builder for CustomerGroup instanceCurrent version of the CustomerGroup.withCreatedBy
(Function<CreatedByBuilder, CreatedBy> builder) IDs and references that created the CustomerGroup.withCustom
(Function<CustomFieldsBuilder, CustomFields> builder) Custom Fields for the CustomerGroup.IDs and references that last modified the CustomerGroup.
-
Constructor Details
-
CustomerGroupBuilder
public CustomerGroupBuilder()
-
-
Method Details
-
id
Unique identifier of the CustomerGroup.
- Parameters:
id
- value to be set- Returns:
- Builder
-
version
Current version of the CustomerGroup.
- Parameters:
version
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the CustomerGroup was initially created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
Date and time (UTC) the CustomerGroup was last updated.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
lastModifiedBy
public CustomerGroupBuilder lastModifiedBy(Function<LastModifiedByBuilder, LastModifiedByBuilder> builder) IDs and references that last modified the CustomerGroup.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
withLastModifiedBy
public CustomerGroupBuilder withLastModifiedBy(Function<LastModifiedByBuilder, LastModifiedBy> builder) IDs and references that last modified the CustomerGroup.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
lastModifiedBy
IDs and references that last modified the CustomerGroup.
- Parameters:
lastModifiedBy
- value to be set- Returns:
- Builder
-
createdBy
IDs and references that created the CustomerGroup.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
withCreatedBy
IDs and references that created the CustomerGroup.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
createdBy
IDs and references that created the CustomerGroup.
- Parameters:
createdBy
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier for the CustomerGroup.
- Parameters:
key
- value to be set- Returns:
- Builder
-
name
Unique name of the CustomerGroup.
- Parameters:
name
- value to be set- Returns:
- Builder
-
custom
Custom Fields for the CustomerGroup.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
Custom Fields for the CustomerGroup.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields for the CustomerGroup.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the CustomerGroup.
- Returns:
- id
-
getVersion
Current version of the CustomerGroup.
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the CustomerGroup was initially created.
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the CustomerGroup was last updated.
- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the CustomerGroup.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the CustomerGroup.
- Returns:
- createdBy
-
getKey
User-defined unique identifier for the CustomerGroup.
- Returns:
- key
-
getName
Unique name of the CustomerGroup.
- Returns:
- name
-
getCustom
Custom Fields for the CustomerGroup.
- Returns:
- custom
-
build
builds CustomerGroup with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerGroup>
- Returns:
- CustomerGroup
-
buildUnchecked
builds CustomerGroup without checking for non-null required values- Returns:
- CustomerGroup
-
of
factory method for an instance of CustomerGroupBuilder- Returns:
- builder
-
of
create builder for CustomerGroup instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-