Class ElementalActionNode.Builder
- java.lang.Object
-
- com.courier.api.resources.send.types.ElementalActionNode.Builder
-
- All Implemented Interfaces:
ElementalActionNode._FinalStage,ElementalActionNode.ContentStage,ElementalActionNode.HrefStage
- Enclosing class:
- ElementalActionNode
public static final class ElementalActionNode.Builder extends java.lang.Object implements ElementalActionNode.ContentStage, ElementalActionNode.HrefStage, ElementalActionNode._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementalActionNode._FinalStageactionId(java.lang.String actionId)A unique id used to identify the action when it is executed.ElementalActionNode._FinalStageactionId(java.util.Optional<java.lang.String> actionId)ElementalActionNode._FinalStagealign(IAlignment align)The alignment of the action button.ElementalActionNode._FinalStagealign(java.util.Optional<IAlignment> align)ElementalActionNode._FinalStagebackgroundColor(java.lang.String backgroundColor)The background color of the action button.ElementalActionNode._FinalStagebackgroundColor(java.util.Optional<java.lang.String> backgroundColor)ElementalActionNodebuild()ElementalActionNode._FinalStagechannels(java.util.List<java.lang.String> channels)ElementalActionNode._FinalStagechannels(java.util.Optional<java.util.List<java.lang.String>> channels)ElementalActionNode.HrefStagecontent(java.lang.String content)The text content of the action shown to the user.ElementalActionNode.Builderfrom(ElementalActionNode other)ElementalActionNode._FinalStagehref(java.lang.String href)The target URL of the action.ElementalActionNode._FinalStageif_(java.lang.String if_)ElementalActionNode._FinalStageif_(java.util.Optional<java.lang.String> if_)ElementalActionNode._FinalStagelocales(java.util.Map<java.lang.String,Locale> locales)Region specific content.ElementalActionNode._FinalStagelocales(java.util.Optional<java.util.Map<java.lang.String,Locale>> locales)ElementalActionNode._FinalStageloop(java.lang.String loop)ElementalActionNode._FinalStageloop(java.util.Optional<java.lang.String> loop)ElementalActionNode._FinalStageref(java.lang.String ref)ElementalActionNode._FinalStageref(java.util.Optional<java.lang.String> ref)ElementalActionNode._FinalStagestyle(IActionButtonStyle style)Defaults tobutton.ElementalActionNode._FinalStagestyle(java.util.Optional<IActionButtonStyle> style)
-
-
-
Method Detail
-
from
public ElementalActionNode.Builder from(ElementalActionNode other)
- Specified by:
fromin interfaceElementalActionNode.ContentStage
-
content
public ElementalActionNode.HrefStage content(java.lang.String content)
The text content of the action shown to the user.
- Specified by:
contentin interfaceElementalActionNode.ContentStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
href
public ElementalActionNode._FinalStage href(java.lang.String href)
The target URL of the action.
- Specified by:
hrefin interfaceElementalActionNode.HrefStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
locales
public ElementalActionNode._FinalStage locales(java.util.Map<java.lang.String,Locale> locales)
Region specific content. See locales docs for more details.
- Specified by:
localesin interfaceElementalActionNode._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
locales
public ElementalActionNode._FinalStage locales(java.util.Optional<java.util.Map<java.lang.String,Locale>> locales)
- Specified by:
localesin interfaceElementalActionNode._FinalStage
-
style
public ElementalActionNode._FinalStage style(IActionButtonStyle style)
Defaults to
button.- Specified by:
stylein interfaceElementalActionNode._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
style
public ElementalActionNode._FinalStage style(java.util.Optional<IActionButtonStyle> style)
- Specified by:
stylein interfaceElementalActionNode._FinalStage
-
backgroundColor
public ElementalActionNode._FinalStage backgroundColor(java.lang.String backgroundColor)
The background color of the action button.
- Specified by:
backgroundColorin interfaceElementalActionNode._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
backgroundColor
public ElementalActionNode._FinalStage backgroundColor(java.util.Optional<java.lang.String> backgroundColor)
- Specified by:
backgroundColorin interfaceElementalActionNode._FinalStage
-
align
public ElementalActionNode._FinalStage align(IAlignment align)
The alignment of the action button. Defaults to "center".
- Specified by:
alignin interfaceElementalActionNode._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
align
public ElementalActionNode._FinalStage align(java.util.Optional<IAlignment> align)
- Specified by:
alignin interfaceElementalActionNode._FinalStage
-
actionId
public ElementalActionNode._FinalStage actionId(java.lang.String actionId)
A unique id used to identify the action when it is executed.
- Specified by:
actionIdin interfaceElementalActionNode._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
actionId
public ElementalActionNode._FinalStage actionId(java.util.Optional<java.lang.String> actionId)
- Specified by:
actionIdin interfaceElementalActionNode._FinalStage
-
loop
public ElementalActionNode._FinalStage loop(java.lang.String loop)
- Specified by:
loopin interfaceElementalActionNode._FinalStage
-
loop
public ElementalActionNode._FinalStage loop(java.util.Optional<java.lang.String> loop)
- Specified by:
loopin interfaceElementalActionNode._FinalStage
-
if_
public ElementalActionNode._FinalStage if_(java.lang.String if_)
- Specified by:
if_in interfaceElementalActionNode._FinalStage
-
if_
public ElementalActionNode._FinalStage if_(java.util.Optional<java.lang.String> if_)
- Specified by:
if_in interfaceElementalActionNode._FinalStage
-
ref
public ElementalActionNode._FinalStage ref(java.lang.String ref)
- Specified by:
refin interfaceElementalActionNode._FinalStage
-
ref
public ElementalActionNode._FinalStage ref(java.util.Optional<java.lang.String> ref)
- Specified by:
refin interfaceElementalActionNode._FinalStage
-
channels
public ElementalActionNode._FinalStage channels(java.util.List<java.lang.String> channels)
- Specified by:
channelsin interfaceElementalActionNode._FinalStage
-
channels
public ElementalActionNode._FinalStage channels(java.util.Optional<java.util.List<java.lang.String>> channels)
- Specified by:
channelsin interfaceElementalActionNode._FinalStage
-
build
public ElementalActionNode build()
- Specified by:
buildin interfaceElementalActionNode._FinalStage
-
-