@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.extensions.ExtensionDraft") public final class ExtensionDraftBuilder extends Base implements Builder<ExtensionDraftDsl>
ExtensionDraft
.Modifier and Type | Method and Description |
---|---|
ExtensionDraftDsl |
build()
Creates a new instance of
ExtensionDraftDsl with the values of this builder. |
ExtensionDraftBuilder |
destination(Destination destination)
Sets the
destination property of this builder. |
Destination |
getDestination() |
String |
getKey() |
Long |
getTimeoutInMs() |
List<Trigger> |
getTriggers() |
ExtensionDraftBuilder |
key(String key)
Sets the
key property of this builder. |
static ExtensionDraftBuilder |
of(Destination destination,
List<Trigger> triggers)
Creates a new object initialized with the given values.
|
static ExtensionDraftBuilder |
of(ExtensionDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ExtensionDraftBuilder |
of(String key,
Destination destination,
List<Trigger> triggers)
Creates a new object initialized with the given values.
|
static ExtensionDraftBuilder |
of(String key,
Destination destination,
List<Trigger> triggers,
Long timeoutInMs)
Creates a new object initialized with the given values.
|
ExtensionDraftBuilder |
plusTriggers(List<Trigger> triggers)
Concatenate
triggers parameter to the triggers list property of this builder. |
ExtensionDraftBuilder |
plusTriggers(Trigger triggers)
Adds
triggers parameter to the triggers list property of this builder. |
ExtensionDraftBuilder |
timeoutInMs(Long timeoutInMs)
Sets the
timeoutInMs property of this builder. |
ExtensionDraftBuilder |
triggers(List<Trigger> triggers)
Sets the
triggers property of this builder. |
public ExtensionDraftBuilder destination(Destination destination)
destination
property of this builder.destination
- the value for ExtensionDraft.getDestination()
public ExtensionDraftBuilder key(@Nullable String key)
key
property of this builder.key
- the value for ExtensionDraft.getKey()
public ExtensionDraftBuilder timeoutInMs(@Nullable Long timeoutInMs)
timeoutInMs
property of this builder.timeoutInMs
- the value for ExtensionDraft.getTimeoutInMs()
public ExtensionDraftBuilder triggers(List<Trigger> triggers)
triggers
property of this builder.triggers
- the value for ExtensionDraft.getTriggers()
public Destination getDestination()
public ExtensionDraftBuilder plusTriggers(List<Trigger> triggers)
triggers
parameter to the triggers
list property of this builder.triggers
- the value for ExtensionDraft.getTriggers()
public ExtensionDraftBuilder plusTriggers(Trigger triggers)
triggers
parameter to the triggers
list property of this builder.triggers
- the value of the element to add to ExtensionDraft.getTriggers()
public ExtensionDraftDsl build()
ExtensionDraftDsl
with the values of this builder.build
in interface Builder<ExtensionDraftDsl>
public static ExtensionDraftBuilder of(@Nullable String key, Destination destination, List<Trigger> triggers, @Nullable Long timeoutInMs)
key
- initial value for the ExtensionDraft.getKey()
propertydestination
- initial value for the ExtensionDraft.getDestination()
propertytriggers
- initial value for the ExtensionDraft.getTriggers()
propertytimeoutInMs
- initial value for the ExtensionDraft.getTimeoutInMs()
propertypublic static ExtensionDraftBuilder of(@Nullable String key, Destination destination, List<Trigger> triggers)
key
- initial value for the ExtensionDraft.getKey()
propertydestination
- initial value for the ExtensionDraft.getDestination()
propertytriggers
- initial value for the ExtensionDraft.getTriggers()
propertypublic static ExtensionDraftBuilder of(Destination destination, List<Trigger> triggers)
destination
- initial value for the ExtensionDraft.getDestination()
propertytriggers
- initial value for the ExtensionDraft.getTriggers()
propertypublic static ExtensionDraftBuilder of(ExtensionDraft template)
template
- the template