Class AttributeGroupBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.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.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.description
(LocalizedString description) Description of the AttributeGroup.Description of the AttributeGroup.Attributes with unique values.Date and time (UTC) the AttributeGroup was initially created.Present on resources created after 1 February 2019 except for events not tracked.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.Present on resources created after 1 February 2019 except for events not tracked.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) Present on resources created after 1 February 2019 except for events not tracked.Present on resources created after 1 February 2019 except for events not tracked.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) Present on resources created after 1 February 2019 except for events not tracked.Description of the AttributeGroup.Present on resources created after 1 February 2019 except for events not tracked.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) Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
withLastModifiedBy
public AttributeGroupBuilder withLastModifiedBy(Function<LastModifiedByBuilder, LastModifiedBy> builder) Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
lastModifiedBy
Present on resources created 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
-
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
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
User-defined unique identifier of the AttributeGroup.
- Returns:
- key
-
build
builds AttributeGroup with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-