Package com.chrt.api.types
Class Bid.Builder
- java.lang.Object
-
- com.chrt.api.types.Bid.Builder
-
- All Implemented Interfaces:
Bid._FinalStage,Bid.ActedByUserIdStage,Bid.ActionStage,Bid.CreatedAtTimestampStage,Bid.FromListerStage
- Enclosing class:
- Bid
public static final class Bid.Builder extends java.lang.Object implements Bid.ActionStage, Bid.ActedByUserIdStage, Bid.FromListerStage, Bid.CreatedAtTimestampStage, Bid._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bid.FromListerStageactedByUserId(java.lang.String actedByUserId)Must be a string starting withuser_Bid.ActedByUserIdStageaction(BidActionEnum action)Bidbuild()Bid._FinalStagecomment(Nullable<java.lang.String> comment)Bid._FinalStagecomment(java.lang.String comment)Bid._FinalStagecomment(java.util.Optional<java.lang.String> comment)Bid._FinalStagecreatedAtTimestamp(java.time.OffsetDateTime createdAtTimestamp)Bid.Builderfrom(Bid other)Bid.CreatedAtTimestampStagefromLister(boolean fromLister)Bid._FinalStageproFormaLineItems(java.util.List<ProFormaLineItem1> proFormaLineItems)Bid._FinalStageproFormaLineItems(java.util.Optional<java.util.List<ProFormaLineItem1>> proFormaLineItems)
-
-
-
Method Detail
-
from
public Bid.Builder from(Bid other)
- Specified by:
fromin interfaceBid.ActionStage
-
action
public Bid.ActedByUserIdStage action(@NotNull BidActionEnum action)
- Specified by:
actionin interfaceBid.ActionStage
-
actedByUserId
public Bid.FromListerStage actedByUserId(@NotNull java.lang.String actedByUserId)
Must be a string starting with
user_Must be a string starting with
user_- Specified by:
actedByUserIdin interfaceBid.ActedByUserIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fromLister
public Bid.CreatedAtTimestampStage fromLister(boolean fromLister)
- Specified by:
fromListerin interfaceBid.FromListerStage
-
createdAtTimestamp
public Bid._FinalStage createdAtTimestamp(@NotNull java.time.OffsetDateTime createdAtTimestamp)
- Specified by:
createdAtTimestampin interfaceBid.CreatedAtTimestampStage
-
comment
public Bid._FinalStage comment(Nullable<java.lang.String> comment)
- Specified by:
commentin interfaceBid._FinalStage
-
comment
public Bid._FinalStage comment(java.lang.String comment)
- Specified by:
commentin interfaceBid._FinalStage
-
comment
public Bid._FinalStage comment(java.util.Optional<java.lang.String> comment)
- Specified by:
commentin interfaceBid._FinalStage
-
proFormaLineItems
public Bid._FinalStage proFormaLineItems(java.util.List<ProFormaLineItem1> proFormaLineItems)
- Specified by:
proFormaLineItemsin interfaceBid._FinalStage
-
proFormaLineItems
public Bid._FinalStage proFormaLineItems(java.util.Optional<java.util.List<ProFormaLineItem1>> proFormaLineItems)
- Specified by:
proFormaLineItemsin interfaceBid._FinalStage
-
build
public Bid build()
- Specified by:
buildin interfaceBid._FinalStage
-
-