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:
io.vrap.rmf.base.client.Builder<GenericCustomObject<TValue>>
public class GenericCustomObjectBuilder<TValue>
extends Object
implements io.vrap.rmf.base.client.Builder<GenericCustomObject<TValue>>
builder for a generic custom object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds 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
-
lastModifiedBy
-
createdBy
public GenericCustomObjectBuilder<TValue> createdBy(Function<CreatedByBuilder, CreatedByBuilder> builder) -
createdBy
-
container
-
key
-
value
-
getId
-
getVersion
-
getCreatedAt
-
getLastModifiedAt
-
getLastModifiedBy
-
getCreatedBy
-
getContainer
-
getKey
-
getValue
-
build
- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<TValue>
-
buildUnchecked
builds CustomObject without checking for non-null required values- Returns:
- Custom object
-
of
-
of
-