Class TopicPreference
-
- All Implemented Interfaces:
public final class TopicPreference
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTopicPreference.BuilderA builder for TopicPreference.
-
Method Summary
Modifier and Type Method Description final PreferenceStatusdefaultStatus()final PreferenceStatusstatus()final StringtopicId()final StringtopicName()final Optional<List<ChannelClassification>>customRouting()The Channels a user has chosen to receive notifications through for this topic final Optional<Boolean>hasCustomRouting()final JsonField<PreferenceStatus>_defaultStatus()Returns the raw JSON value of defaultStatus. final JsonField<PreferenceStatus>_status()Returns the raw JSON value of status. final JsonField<String>_topicId()Returns the raw JSON value of topicId. final JsonField<String>_topicName()Returns the raw JSON value of topicName. final JsonField<List<ChannelClassification>>_customRouting()Returns the raw JSON value of customRouting. final JsonField<Boolean>_hasCustomRouting()Returns the raw JSON value of hasCustomRouting. final Map<String, JsonValue>_additionalProperties()final TopicPreference.BuildertoBuilder()final TopicPreferencevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TopicPreference.Builderbuilder()Returns a mutable builder for constructing an instance of TopicPreference. -
-
Method Detail
-
defaultStatus
final PreferenceStatus defaultStatus()
-
status
final PreferenceStatus status()
-
customRouting
final Optional<List<ChannelClassification>> customRouting()
The Channels a user has chosen to receive notifications through for this topic
-
hasCustomRouting
final Optional<Boolean> hasCustomRouting()
-
_defaultStatus
final JsonField<PreferenceStatus> _defaultStatus()
Returns the raw JSON value of defaultStatus.
Unlike defaultStatus, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<PreferenceStatus> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_topicId
final JsonField<String> _topicId()
Returns the raw JSON value of topicId.
Unlike topicId, this method doesn't throw if the JSON field has an unexpected type.
-
_topicName
final JsonField<String> _topicName()
Returns the raw JSON value of topicName.
Unlike topicName, this method doesn't throw if the JSON field has an unexpected type.
-
_customRouting
final JsonField<List<ChannelClassification>> _customRouting()
Returns the raw JSON value of customRouting.
Unlike customRouting, this method doesn't throw if the JSON field has an unexpected type.
-
_hasCustomRouting
final JsonField<Boolean> _hasCustomRouting()
Returns the raw JSON value of hasCustomRouting.
Unlike hasCustomRouting, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TopicPreference.Builder toBuilder()
-
validate
final TopicPreference 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 TopicPreference.Builder builder()
Returns a mutable builder for constructing an instance of TopicPreference.
The following fields are required:
.defaultStatus() .status() .topicId() .topicName()
-
-
-
-