Class GenericCustomObjectBuilder<TValue>
java.lang.Object
com.commercetools.api.models.custom_object.GenericCustomObjectBuilder<TValue>
- Type Parameters:
TValue
- The type of the value of this custom object.
- All Implemented Interfaces:
Builder<GenericCustomObject<TValue>>
public class GenericCustomObjectBuilder<TValue>
extends Object
implements Builder<GenericCustomObject<TValue>>
builder for a generic custom object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
build an instance of the generic typebuilds CustomObject without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) createdBy
(Function<CreatedByBuilder, CreatedByBuilder> builder) getId()
getKey()
getValue()
lastModifiedAt
(ZonedDateTime lastModifiedAt) lastModifiedBy
(LastModifiedBy lastModifiedBy) static <T> GenericCustomObjectBuilder<T>
of
(GenericCustomObject<T> template) static <T> GenericCustomObjectBuilder<T>
of
(T value)
-
Constructor Details
-
GenericCustomObjectBuilder
public GenericCustomObjectBuilder()
-
-
Method Details
-
id
-
version
-
createdAt
-
lastModifiedAt
-
lastModifiedBy
public GenericCustomObjectBuilder<TValue> lastModifiedBy(Function<LastModifiedByBuilder, LastModifiedByBuilder> builder) -
lastModifiedBy
-
createdBy
public GenericCustomObjectBuilder<TValue> createdBy(Function<CreatedByBuilder, CreatedByBuilder> builder) -
createdBy
-
container
-
key
-
value
-
getId
-
getVersion
-
getCreatedAt
-
getLastModifiedAt
-
getLastModifiedBy
-
getCreatedBy
-
getContainer
-
getKey
-
getValue
-
build
Description copied from interface:Builder
build an instance of the generic type -
buildUnchecked
builds CustomObject without checking for non-null required values- Returns:
- Custom object
-
of
-
of
-