Class ReplicaCartDraftBuilder
- All Implemented Interfaces:
Builder<ReplicaCartDraft>
Example to create an instance using the builder pattern
ReplicaCartDraft replicaCartDraft = ReplicaCartDraft.builder()
.reference(referenceBuilder -> referenceBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReplicaCartDraft with checking for non-null required valuesbuilds ReplicaCartDraft without checking for non-null required valuesgetKey()
User-defined unique identifier for the Cart.A Reference represents a loose reference to another resource in the same Project identified by itsid
.User-defined unique identifier for the Cart.static ReplicaCartDraftBuilder
of()
factory method for an instance of ReplicaCartDraftBuilderstatic ReplicaCartDraftBuilder
of
(ReplicaCartDraft template) create builder for ReplicaCartDraft instanceA Reference represents a loose reference to another resource in the same Project identified by itsid
.reference
(Function<ReferenceBuilder, Builder<? extends Reference>> builder) A Reference represents a loose reference to another resource in the same Project identified by itsid
.
-
Constructor Details
-
ReplicaCartDraftBuilder
public ReplicaCartDraftBuilder()
-
-
Method Details
-
reference
A Reference represents a loose reference to another resource in the same Project identified by its
id
. ThetypeId
indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additionalobj
field then.- Parameters:
reference
- value to be set- Returns:
- Builder
-
reference
public ReplicaCartDraftBuilder reference(Function<ReferenceBuilder, Builder<? extends Reference>> builder) A Reference represents a loose reference to another resource in the same Project identified by its
id
. ThetypeId
indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additionalobj
field then.- Parameters:
builder
- function to build the reference value- Returns:
- Builder
-
key
User-defined unique identifier for the Cart.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getReference
A Reference represents a loose reference to another resource in the same Project identified by its
id
. ThetypeId
indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additionalobj
field then.- Returns:
- reference
-
getKey
User-defined unique identifier for the Cart.
- Returns:
- key
-
build
builds ReplicaCartDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReplicaCartDraft>
- Returns:
- ReplicaCartDraft
-
buildUnchecked
builds ReplicaCartDraft without checking for non-null required values- Returns:
- ReplicaCartDraft
-
of
factory method for an instance of ReplicaCartDraftBuilder- Returns:
- builder
-
of
create builder for ReplicaCartDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-