Class ElementalContentSugar.Builder
- java.lang.Object
-
- com.courier.api.resources.send.types.ElementalContentSugar.Builder
-
- All Implemented Interfaces:
ElementalContentSugar._FinalStage,ElementalContentSugar.BodyStage,ElementalContentSugar.TitleStage
- Enclosing class:
- ElementalContentSugar
public static final class ElementalContentSugar.Builder extends java.lang.Object implements ElementalContentSugar.TitleStage, ElementalContentSugar.BodyStage, ElementalContentSugar._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementalContentSugar._FinalStagebody(java.lang.String body)The text content displayed in the notification.ElementalContentSugarbuild()ElementalContentSugar.Builderfrom(ElementalContentSugar other)ElementalContentSugar.BodyStagetitle(java.lang.String title)The title to be displayed by supported channels i.e.
-
-
-
Method Detail
-
from
public ElementalContentSugar.Builder from(ElementalContentSugar other)
- Specified by:
fromin interfaceElementalContentSugar.TitleStage
-
title
public ElementalContentSugar.BodyStage title(java.lang.String title)
The title to be displayed by supported channels i.e. push, email (as subject)
- Specified by:
titlein interfaceElementalContentSugar.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public ElementalContentSugar._FinalStage body(java.lang.String body)
The text content displayed in the notification.
- Specified by:
bodyin interfaceElementalContentSugar.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public ElementalContentSugar build()
- Specified by:
buildin interfaceElementalContentSugar._FinalStage
-
-