Package so.prelude.sdk.models
Class WatchSendEventsParams.Event.Target
-
- All Implemented Interfaces:
public final class WatchSendEventsParams.Event.Target
The event target. Only supports phone numbers for now.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
WatchSendEventsParams.Event.Target.Builder
A builder for Target.
public final class
WatchSendEventsParams.Event.Target.Type
The type of the target. Either "phone_number" or "email_address".
-
Method Summary
Modifier and Type Method Description final WatchSendEventsParams.Event.Target.Type
type()
The type of the target. final String
value()
An E.164 formatted phone number or an email address. final JsonField<WatchSendEventsParams.Event.Target.Type>
_type()
Returns the raw JSON value of type. final JsonField<String>
_value()
Returns the raw JSON value of value. final Map<String, JsonValue>
_additionalProperties()
final WatchSendEventsParams.Event.Target.Builder
toBuilder()
final WatchSendEventsParams.Event.Target
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static WatchSendEventsParams.Event.Target.Builder
builder()
Returns a mutable builder for constructing an instance of Target. -
-
Method Detail
-
type
final WatchSendEventsParams.Event.Target.Type type()
The type of the target. Either "phone_number" or "email_address".
-
_type
final JsonField<WatchSendEventsParams.Event.Target.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_value
final JsonField<String> _value()
Returns the raw JSON value of value.
Unlike value, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final WatchSendEventsParams.Event.Target.Builder toBuilder()
-
validate
final WatchSendEventsParams.Event.Target validate()
-
builder
final static WatchSendEventsParams.Event.Target.Builder builder()
Returns a mutable builder for constructing an instance of Target.
The following fields are required:
.type() .value()
-
-
-
-