Package com.courier.models
Class WebhookRecipient.Builder
-
- All Implemented Interfaces:
public final class WebhookRecipient.BuilderA builder for WebhookRecipient.
-
-
Method Summary
Modifier and Type Method Description final WebhookRecipient.Builderwebhook(WebhookProfile webhook)final WebhookRecipient.Builderwebhook(JsonField<WebhookProfile> webhook)Sets Builder.webhook to an arbitrary JSON value. final WebhookRecipient.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final WebhookRecipient.BuilderputAdditionalProperty(String key, JsonValue value)final WebhookRecipient.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final WebhookRecipient.BuilderremoveAdditionalProperty(String key)final WebhookRecipient.BuilderremoveAllAdditionalProperties(Set<String> keys)final WebhookRecipientbuild()Returns an immutable instance of WebhookRecipient. -
-
Method Detail
-
webhook
final WebhookRecipient.Builder webhook(WebhookProfile webhook)
-
webhook
final WebhookRecipient.Builder webhook(JsonField<WebhookProfile> webhook)
Sets Builder.webhook to an arbitrary JSON value.
You should usually call Builder.webhook with a well-typed WebhookProfile value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final WebhookRecipient.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WebhookRecipient.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebhookRecipient.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebhookRecipient.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebhookRecipient.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebhookRecipient build()
Returns an immutable instance of WebhookRecipient.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.webhook()
-
-
-
-