Package app.knock.api.models.objects
Class ObjectAddSubscriptionsParams.Body
-
- All Implemented Interfaces:
public final class ObjectAddSubscriptionsParams.BodyA request to upsert subscriptions for a set of recipients.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classObjectAddSubscriptionsParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final List<RecipientRequest>recipients()The recipients of the subscription. final Optional<ObjectAddSubscriptionsParams.Properties>properties()The custom properties associated with the subscription relationship. final JsonField<List<RecipientRequest>>_recipients()Returns the raw JSON value of recipients. final JsonField<ObjectAddSubscriptionsParams.Properties>_properties()Returns the raw JSON value of properties. final Map<String, JsonValue>_additionalProperties()final ObjectAddSubscriptionsParams.Body.BuildertoBuilder()final ObjectAddSubscriptionsParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ObjectAddSubscriptionsParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
recipients
final List<RecipientRequest> recipients()
The recipients of the subscription. You can subscribe up to 100 recipients to an object at a time.
-
properties
final Optional<ObjectAddSubscriptionsParams.Properties> properties()
The custom properties associated with the subscription relationship.
-
_recipients
final JsonField<List<RecipientRequest>> _recipients()
Returns the raw JSON value of recipients.
Unlike recipients, this method doesn't throw if the JSON field has an unexpected type.
-
_properties
final JsonField<ObjectAddSubscriptionsParams.Properties> _properties()
Returns the raw JSON value of properties.
Unlike properties, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ObjectAddSubscriptionsParams.Body.Builder toBuilder()
-
validate
final ObjectAddSubscriptionsParams.Body validate()
-
builder
final static ObjectAddSubscriptionsParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.recipients()
-
-
-
-