Class ElementalChannelNodeWithType
-
- All Implemented Interfaces:
public final class ElementalChannelNodeWithTypeThe 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 classElementalChannelNodeWithType.BuilderA builder for ElementalChannelNodeWithType.
public final classElementalChannelNodeWithType.Type
-
Method Summary
Modifier and Type Method Description final ElementalChannelNodetoElementalChannelNode()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 Optional<ElementalChannelNodeWithType.Type>type()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 JsonField<ElementalChannelNodeWithType.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final ElementalChannelNodeWithType.BuildertoBuilder()final ElementalChannelNodeWithTypevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ElementalChannelNodeWithType.Builderbuilder()Returns a mutable builder for constructing an instance of ElementalChannelNodeWithType. -
-
Method Detail
-
toElementalChannelNode
final ElementalChannelNode toElementalChannelNode()
-
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.
-
type
final Optional<ElementalChannelNodeWithType.Type> type()
-
_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.
-
_type
final JsonField<ElementalChannelNodeWithType.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ElementalChannelNodeWithType.Builder toBuilder()
-
validate
final ElementalChannelNodeWithType validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ElementalChannelNodeWithType.Builder builder()
Returns a mutable builder for constructing an instance of ElementalChannelNodeWithType.
-
-
-
-