Package com.courier.models
Class ElementalContentSugar
-
- All Implemented Interfaces:
public final class ElementalContentSugarSyntactic sugar to provide a fast shorthand for Courier Elemental Blocks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classElementalContentSugar.BuilderA builder for ElementalContentSugar.
-
Method Summary
Modifier and Type Method Description final Stringbody()The text content displayed in the notification. final Stringtitle()Title/subject displayed by supported channels. final JsonField<String>_body()Returns the raw JSON value of body. final JsonField<String>_title()Returns the raw JSON value of title. final Map<String, JsonValue>_additionalProperties()final ElementalContentSugar.BuildertoBuilder()final ElementalContentSugarvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ElementalContentSugar.Builderbuilder()Returns a mutable builder for constructing an instance of ElementalContentSugar. -
-
Method Detail
-
_body
final JsonField<String> _body()
Returns the raw JSON value of body.
Unlike body, this method doesn't throw if the JSON field has an unexpected type.
-
_title
final JsonField<String> _title()
Returns the raw JSON value of title.
Unlike title, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ElementalContentSugar.Builder toBuilder()
-
validate
final ElementalContentSugar validate()
-
builder
final static ElementalContentSugar.Builder builder()
Returns a mutable builder for constructing an instance of ElementalContentSugar.
The following fields are required:
.body() .title()
-
-
-
-