Class AutomationAddToBatchStep.Builder
- java.lang.Object
-
- com.courier.api.resources.automations.types.AutomationAddToBatchStep.Builder
-
- All Implemented Interfaces:
AutomationAddToBatchStep._FinalStage,AutomationAddToBatchStep.MaxWaitPeriodStage,AutomationAddToBatchStep.RetainStage,AutomationAddToBatchStep.WaitPeriodStage
- Enclosing class:
- AutomationAddToBatchStep
public static final class AutomationAddToBatchStep.Builder extends java.lang.Object implements AutomationAddToBatchStep.WaitPeriodStage, AutomationAddToBatchStep.MaxWaitPeriodStage, AutomationAddToBatchStep.RetainStage, AutomationAddToBatchStep._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutomationAddToBatchStep._FinalStagebatchId(java.lang.String batchId)AutomationAddToBatchStep._FinalStagebatchId(java.util.Optional<java.lang.String> batchId)AutomationAddToBatchStep._FinalStagebatchKey(java.lang.String batchKey)If using scope=dynamic, provide the key or a reference (e.g., refs.data.batch_key)AutomationAddToBatchStep._FinalStagebatchKey(java.util.Optional<java.lang.String> batchKey)AutomationAddToBatchStepbuild()AutomationAddToBatchStep._FinalStagecategoryKey(java.lang.String categoryKey)Defines the field of the data object the batch is set to when complete.AutomationAddToBatchStep._FinalStagecategoryKey(java.util.Optional<java.lang.String> categoryKey)AutomationAddToBatchStep.Builderfrom(AutomationAddToBatchStep other)AutomationAddToBatchStep._FinalStageif_(java.lang.String if_)AutomationAddToBatchStep._FinalStageif_(java.util.Optional<java.lang.String> if_)AutomationAddToBatchStep._FinalStagemaxItems(AutomationAddToBatchMaxItemsType maxItems)If specified, the batch will release as soon as this number is reachedAutomationAddToBatchStep._FinalStagemaxItems(java.util.Optional<AutomationAddToBatchMaxItemsType> maxItems)AutomationAddToBatchStep.RetainStagemaxWaitPeriod(java.lang.String maxWaitPeriod)Defines the maximum wait time before the batch should be released.AutomationAddToBatchStep._FinalStageref(java.lang.String ref)AutomationAddToBatchStep._FinalStageref(java.util.Optional<java.lang.String> ref)AutomationAddToBatchStep._FinalStageretain(AutomationAddToBatchRetain retain)AutomationAddToBatchStep._FinalStagescope(AutomationAddToBatchScope scope)Determine the scope of the batching.AutomationAddToBatchStep._FinalStagescope(java.util.Optional<AutomationAddToBatchScope> scope)AutomationAddToBatchStep.MaxWaitPeriodStagewaitPeriod(java.lang.String waitPeriod)Defines the period of inactivity before the batch is released.
-
-
-
Method Detail
-
from
public AutomationAddToBatchStep.Builder from(AutomationAddToBatchStep other)
- Specified by:
fromin interfaceAutomationAddToBatchStep.WaitPeriodStage
-
waitPeriod
public AutomationAddToBatchStep.MaxWaitPeriodStage waitPeriod(java.lang.String waitPeriod)
Defines the period of inactivity before the batch is released. Specified as an ISO 8601 duration
- Specified by:
waitPeriodin interfaceAutomationAddToBatchStep.WaitPeriodStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
maxWaitPeriod
public AutomationAddToBatchStep.RetainStage maxWaitPeriod(java.lang.String maxWaitPeriod)
Defines the maximum wait time before the batch should be released. Must be less than wait period. Maximum of 60 days. Specified as an ISO 8601 duration
- Specified by:
maxWaitPeriodin interfaceAutomationAddToBatchStep.MaxWaitPeriodStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
retain
public AutomationAddToBatchStep._FinalStage retain(AutomationAddToBatchRetain retain)
- Specified by:
retainin interfaceAutomationAddToBatchStep.RetainStage
-
categoryKey
public AutomationAddToBatchStep._FinalStage categoryKey(java.lang.String categoryKey)
Defines the field of the data object the batch is set to when complete. Defaults to
batch- Specified by:
categoryKeyin interfaceAutomationAddToBatchStep._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
categoryKey
public AutomationAddToBatchStep._FinalStage categoryKey(java.util.Optional<java.lang.String> categoryKey)
- Specified by:
categoryKeyin interfaceAutomationAddToBatchStep._FinalStage
-
batchId
public AutomationAddToBatchStep._FinalStage batchId(java.lang.String batchId)
- Specified by:
batchIdin interfaceAutomationAddToBatchStep._FinalStage
-
batchId
public AutomationAddToBatchStep._FinalStage batchId(java.util.Optional<java.lang.String> batchId)
- Specified by:
batchIdin interfaceAutomationAddToBatchStep._FinalStage
-
batchKey
public AutomationAddToBatchStep._FinalStage batchKey(java.lang.String batchKey)
If using scope=dynamic, provide the key or a reference (e.g., refs.data.batch_key)
- Specified by:
batchKeyin interfaceAutomationAddToBatchStep._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
batchKey
public AutomationAddToBatchStep._FinalStage batchKey(java.util.Optional<java.lang.String> batchKey)
- Specified by:
batchKeyin interfaceAutomationAddToBatchStep._FinalStage
-
scope
public AutomationAddToBatchStep._FinalStage scope(AutomationAddToBatchScope scope)
Determine the scope of the batching. If user, chosen in this order: recipient, profile.user_id, data.user_id, data.userId. If dynamic, then specify where the batch_key or a reference to the batch_key
- Specified by:
scopein interfaceAutomationAddToBatchStep._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
scope
public AutomationAddToBatchStep._FinalStage scope(java.util.Optional<AutomationAddToBatchScope> scope)
- Specified by:
scopein interfaceAutomationAddToBatchStep._FinalStage
-
maxItems
public AutomationAddToBatchStep._FinalStage maxItems(AutomationAddToBatchMaxItemsType maxItems)
If specified, the batch will release as soon as this number is reached
- Specified by:
maxItemsin interfaceAutomationAddToBatchStep._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
maxItems
public AutomationAddToBatchStep._FinalStage maxItems(java.util.Optional<AutomationAddToBatchMaxItemsType> maxItems)
- Specified by:
maxItemsin interfaceAutomationAddToBatchStep._FinalStage
-
ref
public AutomationAddToBatchStep._FinalStage ref(java.lang.String ref)
- Specified by:
refin interfaceAutomationAddToBatchStep._FinalStage
-
ref
public AutomationAddToBatchStep._FinalStage ref(java.util.Optional<java.lang.String> ref)
- Specified by:
refin interfaceAutomationAddToBatchStep._FinalStage
-
if_
public AutomationAddToBatchStep._FinalStage if_(java.lang.String if_)
- Specified by:
if_in interfaceAutomationAddToBatchStep._FinalStage
-
if_
public AutomationAddToBatchStep._FinalStage if_(java.util.Optional<java.lang.String> if_)
- Specified by:
if_in interfaceAutomationAddToBatchStep._FinalStage
-
build
public AutomationAddToBatchStep build()
- Specified by:
buildin interfaceAutomationAddToBatchStep._FinalStage
-
-