Class AutomationThrottleStep
- java.lang.Object
-
- com.courier.api.resources.automations.types.AutomationThrottleStep
-
- All Implemented Interfaces:
IAutomationStep
public final class AutomationThrottleStep extends java.lang.Object implements IAutomationStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutomationThrottleStep._FinalStagestatic classAutomationThrottleStep.Builderstatic interfaceAutomationThrottleStep.MaxAllowedStagestatic interfaceAutomationThrottleStep.OnThrottleStagestatic interfaceAutomationThrottleStep.PeriodStagestatic interfaceAutomationThrottleStep.ScopeStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutomationThrottleStep.MaxAllowedStagebuilder()booleanequals(java.lang.Object other)java.lang.StringgetAction()java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.String>getIf()intgetMaxAllowed()AutomationThrottleOnThrottlegetOnThrottle()java.lang.StringgetPeriod()java.util.Optional<java.lang.String>getRef()AutomationThrottleScopegetScope()java.lang.BooleangetShouldAlert()java.util.Optional<java.lang.String>getThrottleKey()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()
-
getMaxAllowed
public int getMaxAllowed()
- Returns:
- Maximum number of allowed notifications in that timeframe
-
getPeriod
public java.lang.String getPeriod()
- Returns:
- Defines the throttle period which corresponds to the max_allowed. Specified as an ISO 8601 duration, https://en.wikipedia.org/wiki/ISO_8601#Durations
-
getScope
public AutomationThrottleScope getScope()
-
getThrottleKey
public java.util.Optional<java.lang.String> getThrottleKey()
- Returns:
- If using scope=dynamic, provide the reference (e.g., refs.data.throttle_key) to the how the throttle should be identified
-
getShouldAlert
public java.lang.Boolean getShouldAlert()
- Returns:
- Value must be true
-
getOnThrottle
public AutomationThrottleOnThrottle getOnThrottle()
-
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 AutomationThrottleStep.MaxAllowedStage builder()
-
-