Class CustomerGroupBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.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.Present on resources created after 1 February 2019 except for events not tracked.createdBy
(Function<CreatedByBuilder, CreatedByBuilder> builder) Present on resources created after 1 February 2019 except for events not tracked.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.Present on resources created after 1 February 2019 except for events not tracked.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.Present on resources updated after 1 February 2019 except for events not tracked.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) Present on resources updated after 1 February 2019 except for events not tracked.Present on resources updated after 1 February 2019 except for events not tracked.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) Present on resources created after 1 February 2019 except for events not tracked.withCustom
(Function<CustomFieldsBuilder, CustomFields> builder) Custom Fields for the CustomerGroup.Present on resources updated after 1 February 2019 except for events not tracked.
-
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) Present on resources updated after 1 February 2019 except for events not tracked.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
withLastModifiedBy
public CustomerGroupBuilder withLastModifiedBy(Function<LastModifiedByBuilder, LastModifiedBy> builder) Present on resources updated after 1 February 2019 except for events not tracked.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
lastModifiedBy
Present on resources updated after 1 February 2019 except for events not tracked.
- Parameters:
lastModifiedBy
- value to be set- Returns:
- Builder
-
createdBy
Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
withCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
createdBy
Present on resources created after 1 February 2019 except for events not tracked.
- 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
Present on resources updated 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
-
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 interfaceio.vrap.rmf.base.client.Builder<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
-