Class ElementalChannelNode
-
- All Implemented Interfaces:
public final class ElementalChannelNodeThe channel element allows a notification to be customized based on which channel it is sent through. For example, you may want to display a detailed message when the notification is sent through email, and a more concise message in a push notification. Channel elements are only valid as top-level elements; you cannot nest channel elements. If there is a channel element specified at the top-level of the document, all sibling elements must be channel elements. Note: As an alternative, most elements support a
channelproperty. Which allows you to selectively display an individual element on a per channel basis. See the control flow docs for more details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classElementalChannelNode.BuilderA builder for ElementalChannelNode.
public final classElementalChannelNode.RawRaw data to apply to the channel. If
elementshas not been specified,rawis required.
-
Method Summary
Modifier and Type Method Description final ElementalBaseNodetoElementalBaseNode()final Optional<List<String>>channels()final Optional<String>if_()final Optional<String>loop()final Optional<String>ref()final Optional<String>channel()The channel the contents of this element should be applied to. final Optional<ElementalChannelNode.Raw>raw()Raw data to apply to the channel. final JsonField<List<String>>_channels()Returns the raw JSON value of channels. final JsonField<String>_if_()Returns the raw JSON value of if_. final JsonField<String>_loop()Returns the raw JSON value of loop. final JsonField<String>_ref()Returns the raw JSON value of ref. final JsonField<String>_channel()Returns the raw JSON value of channel. final JsonField<ElementalChannelNode.Raw>_raw()Returns the raw JSON value of raw. final Map<String, JsonValue>_additionalProperties()final ElementalChannelNode.BuildertoBuilder()final ElementalChannelNodevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ElementalChannelNode.Builderbuilder()Returns a mutable builder for constructing an instance of ElementalChannelNode. -
-
Method Detail
-
toElementalBaseNode
final ElementalBaseNode toElementalBaseNode()
-
channel
final Optional<String> channel()
The channel the contents of this element should be applied to. Can be
email,push,direct_message,smsor a provider such as slack
-
raw
final Optional<ElementalChannelNode.Raw> raw()
Raw data to apply to the channel. If
elementshas not been specified,rawis required.
-
_channels
final JsonField<List<String>> _channels()
Returns the raw JSON value of channels.
Unlike channels, this method doesn't throw if the JSON field has an unexpected type.
-
_if_
final JsonField<String> _if_()
Returns the raw JSON value of if_.
Unlike if_, this method doesn't throw if the JSON field has an unexpected type.
-
_loop
final JsonField<String> _loop()
Returns the raw JSON value of loop.
Unlike loop, this method doesn't throw if the JSON field has an unexpected type.
-
_ref
final JsonField<String> _ref()
Returns the raw JSON value of ref.
Unlike ref, this method doesn't throw if the JSON field has an unexpected type.
-
_channel
final JsonField<String> _channel()
Returns the raw JSON value of channel.
Unlike channel, this method doesn't throw if the JSON field has an unexpected type.
-
_raw
final JsonField<ElementalChannelNode.Raw> _raw()
Returns the raw JSON value of raw.
Unlike raw, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ElementalChannelNode.Builder toBuilder()
-
validate
final ElementalChannelNode validate()
-
builder
final static ElementalChannelNode.Builder builder()
Returns a mutable builder for constructing an instance of ElementalChannelNode.
-
-
-
-