@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.orderedits.OrderEditDraft") public final class OrderEditDraftBuilder extends Base implements Builder<OrderEditDraftDsl>
OrderEditDraft.| Modifier and Type | Method and Description |
|---|---|
OrderEditDraftDsl |
build()
Creates a new instance of
OrderEditDraftDsl with the values of this builder. |
OrderEditDraftBuilder |
comment(String comment)
Sets the
comment property of this builder. |
OrderEditDraftBuilder |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
OrderEditDraftBuilder |
dryRun(Boolean dryRun)
Sets the
dryRun property of this builder. |
String |
getComment() |
CustomFieldsDraft |
getCustom() |
String |
getKey() |
Reference<Order> |
getResource() |
List<StagedUpdateAction<OrderEdit>> |
getStagedActions() |
Boolean |
isDryRun() |
OrderEditDraftBuilder |
isDryRun(Boolean dryRun)
Sets the
dryRun property of this builder. |
OrderEditDraftBuilder |
key(String key)
Sets the
key property of this builder. |
static OrderEditDraftBuilder |
of(OrderEditDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static OrderEditDraftBuilder |
of(Reference<Order> resource,
List<StagedUpdateAction<OrderEdit>> stagedActions)
Creates a new object initialized with the given values.
|
static OrderEditDraftBuilder |
of(String key,
Reference<Order> resource,
List<StagedUpdateAction<OrderEdit>> stagedActions,
CustomFieldsDraft custom,
String comment,
Boolean dryRun)
Creates a new object initialized with the given values.
|
OrderEditDraftBuilder |
plusStagedActions(List<StagedUpdateAction<OrderEdit>> stagedActions)
Concatenate
stagedActions parameter to the stagedActions list property of this builder. |
OrderEditDraftBuilder |
plusStagedActions(StagedUpdateAction<OrderEdit> stagedActions)
Adds
stagedActions parameter to the stagedActions list property of this builder. |
OrderEditDraftBuilder |
resource(Referenceable<Order> resource)
Sets the
resource property of this builder. |
OrderEditDraftBuilder |
stagedActions(List<StagedUpdateAction<OrderEdit>> stagedActions)
Sets the
stagedActions property of this builder. |
public OrderEditDraftBuilder comment(@Nullable String comment)
comment property of this builder.comment - the value for OrderEditDraft.getComment()public OrderEditDraftBuilder custom(@Nullable CustomFieldsDraft custom)
custom property of this builder.custom - the value for OrderEditDraft.getCustom()public OrderEditDraftBuilder dryRun(@Nullable Boolean dryRun)
dryRun property of this builder.dryRun - the value for OrderEditDraft.isDryRun()public OrderEditDraftBuilder isDryRun(@Nullable Boolean dryRun)
dryRun property of this builder.dryRun - the value for OrderEditDraft.isDryRun()public OrderEditDraftBuilder key(@Nullable String key)
key property of this builder.key - the value for OrderEditDraft.getKey()public OrderEditDraftBuilder resource(Referenceable<Order> resource)
resource property of this builder.resource - the value for OrderEditDraft.getResource()public OrderEditDraftBuilder stagedActions(List<StagedUpdateAction<OrderEdit>> stagedActions)
stagedActions property of this builder.stagedActions - the value for OrderEditDraft.getStagedActions()@Nullable public CustomFieldsDraft getCustom()
public List<StagedUpdateAction<OrderEdit>> getStagedActions()
public OrderEditDraftBuilder plusStagedActions(List<StagedUpdateAction<OrderEdit>> stagedActions)
stagedActions parameter to the stagedActions list property of this builder.stagedActions - the value for OrderEditDraft.getStagedActions()public OrderEditDraftBuilder plusStagedActions(StagedUpdateAction<OrderEdit> stagedActions)
stagedActions parameter to the stagedActions list property of this builder.stagedActions - the value of the element to add to OrderEditDraft.getStagedActions()public OrderEditDraftDsl build()
OrderEditDraftDsl with the values of this builder.build in interface Builder<OrderEditDraftDsl>public static OrderEditDraftBuilder of(@Nullable String key, Reference<Order> resource, List<StagedUpdateAction<OrderEdit>> stagedActions, @Nullable CustomFieldsDraft custom, @Nullable String comment, @Nullable Boolean dryRun)
key - initial value for the OrderEditDraft.getKey() propertyresource - initial value for the OrderEditDraft.getResource() propertystagedActions - initial value for the OrderEditDraft.getStagedActions() propertycustom - initial value for the OrderEditDraft.getCustom() propertycomment - initial value for the OrderEditDraft.getComment() propertydryRun - initial value for the OrderEditDraft.isDryRun() propertypublic static OrderEditDraftBuilder of(Reference<Order> resource, List<StagedUpdateAction<OrderEdit>> stagedActions)
resource - initial value for the OrderEditDraft.getResource() propertystagedActions - initial value for the OrderEditDraft.getStagedActions() propertypublic static OrderEditDraftBuilder of(OrderEditDraft template)
template - the template