Class AutomationAddToBatchStep
- java.lang.Object
-
- com.courier.api.resources.automations.types.AutomationAddToBatchStep
-
- All Implemented Interfaces:
IAutomationStep
public final class AutomationAddToBatchStep extends java.lang.Object implements IAutomationStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutomationAddToBatchStep._FinalStagestatic classAutomationAddToBatchStep.Builderstatic interfaceAutomationAddToBatchStep.MaxWaitPeriodStagestatic interfaceAutomationAddToBatchStep.RetainStagestatic interfaceAutomationAddToBatchStep.WaitPeriodStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutomationAddToBatchStep.WaitPeriodStagebuilder()booleanequals(java.lang.Object other)java.lang.StringgetAction()java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.String>getBatchId()java.util.Optional<java.lang.String>getBatchKey()java.util.Optional<java.lang.String>getCategoryKey()java.util.Optional<java.lang.String>getIf()java.util.Optional<AutomationAddToBatchMaxItemsType>getMaxItems()java.lang.StringgetMaxWaitPeriod()java.util.Optional<java.lang.String>getRef()AutomationAddToBatchRetaingetRetain()java.util.Optional<AutomationAddToBatchScope>getScope()java.lang.StringgetWaitPeriod()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getIf
public java.util.Optional<java.lang.String> getIf()
- Specified by:
getIfin interfaceIAutomationStep
-
getRef
public java.util.Optional<java.lang.String> getRef()
- Specified by:
getRefin interfaceIAutomationStep
-
getAction
public java.lang.String getAction()
-
getWaitPeriod
public java.lang.String getWaitPeriod()
- Returns:
- Defines the period of inactivity before the batch is released. Specified as an ISO 8601 duration
-
getMaxWaitPeriod
public java.lang.String getMaxWaitPeriod()
- Returns:
- 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
-
getMaxItems
public java.util.Optional<AutomationAddToBatchMaxItemsType> getMaxItems()
- Returns:
- If specified, the batch will release as soon as this number is reached
-
getRetain
public AutomationAddToBatchRetain getRetain()
-
getScope
public java.util.Optional<AutomationAddToBatchScope> getScope()
- Returns:
- 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
-
getBatchKey
public java.util.Optional<java.lang.String> getBatchKey()
- Returns:
- If using scope=dynamic, provide the key or a reference (e.g., refs.data.batch_key)
-
getBatchId
public java.util.Optional<java.lang.String> getBatchId()
-
getCategoryKey
public java.util.Optional<java.lang.String> getCategoryKey()
- Returns:
- Defines the field of the data object the batch is set to when complete. Defaults to
batch
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static AutomationAddToBatchStep.WaitPeriodStage builder()
-
-