Class BetaNewOrganizationWebhookEndpoint.Builder
-
- All Implemented Interfaces:
public final class BetaNewOrganizationWebhookEndpoint.BuilderA builder for BetaNewOrganizationWebhookEndpoint.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaNewOrganizationWebhookEndpoint.Builder id(String id)
ID of the webhook endpoint.
-
id
final BetaNewOrganizationWebhookEndpoint.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final BetaNewOrganizationWebhookEndpoint.Builder createdAt(OffsetDateTime createdAt)
When the endpoint was created, in RFC 3339 format.
-
createdAt
final BetaNewOrganizationWebhookEndpoint.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final BetaNewOrganizationWebhookEndpoint.Builder description(String description)
Notes about the endpoint. An empty string when none were given.
-
description
final BetaNewOrganizationWebhookEndpoint.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
disabledReason
final BetaNewOrganizationWebhookEndpoint.Builder disabledReason(String disabledReason)
Why Anthropic disabled the endpoint automatically. An empty string when the endpoint is enabled, or when you disabled it.
-
disabledReason
final BetaNewOrganizationWebhookEndpoint.Builder disabledReason(JsonField<String> disabledReason)
Sets Builder.disabledReason to an arbitrary JSON value.
You should usually call Builder.disabledReason with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
enabledEvents
final BetaNewOrganizationWebhookEndpoint.Builder enabledEvents(List<BetaNewOrganizationWebhookEndpoint.EnabledEvent> enabledEvents)
The event types delivered to the endpoint.
-
enabledEvents
final BetaNewOrganizationWebhookEndpoint.Builder enabledEvents(JsonField<List<BetaNewOrganizationWebhookEndpoint.EnabledEvent>> enabledEvents)
Sets Builder.enabledEvents to an arbitrary JSON value.
You should usually call Builder.enabledEvents with a well-typed
List<EnabledEvent>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final BetaNewOrganizationWebhookEndpoint.Builder name(String name)
A short label for the endpoint. An empty string when none was given.
-
name
final BetaNewOrganizationWebhookEndpoint.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
signingSecret
final BetaNewOrganizationWebhookEndpoint.Builder signingSecret(String signingSecret)
The secret Anthropic signs deliveries to the endpoint with (prefix
whsec_). No other response returns it, so store it now. To replace it, regenerate the signing secret.
-
signingSecret
final BetaNewOrganizationWebhookEndpoint.Builder signingSecret(JsonField<String> signingSecret)
Sets Builder.signingSecret to an arbitrary JSON value.
You should usually call Builder.signingSecret with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
state
final BetaNewOrganizationWebhookEndpoint.Builder state(BetaOrganizationWebhookEndpointState state)
Whether deliveries are sent to the endpoint.
-
state
final BetaNewOrganizationWebhookEndpoint.Builder state(JsonField<BetaOrganizationWebhookEndpointState> state)
Sets Builder.state to an arbitrary JSON value.
You should usually call Builder.state with a well-typed BetaOrganizationWebhookEndpointState value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final BetaNewOrganizationWebhookEndpoint.Builder updatedAt(OffsetDateTime updatedAt)
When the endpoint was last changed, in RFC 3339 format.
-
updatedAt
final BetaNewOrganizationWebhookEndpoint.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final BetaNewOrganizationWebhookEndpoint.Builder url(String url)
The HTTPS URL that deliveries are sent to.
-
url
final BetaNewOrganizationWebhookEndpoint.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaNewOrganizationWebhookEndpoint.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addEnabledEvent
final BetaNewOrganizationWebhookEndpoint.Builder addEnabledEvent(BetaNewOrganizationWebhookEndpoint.EnabledEvent enabledEvent)
Adds a single EnabledEvent to enabledEvents.
-
putAdditionalProperty
final BetaNewOrganizationWebhookEndpoint.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaNewOrganizationWebhookEndpoint.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaNewOrganizationWebhookEndpoint.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaNewOrganizationWebhookEndpoint.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaNewOrganizationWebhookEndpoint build()
Returns an immutable instance of BetaNewOrganizationWebhookEndpoint.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .description() .disabledReason() .enabledEvents() .name() .signingSecret() .state() .updatedAt() .url()
-
-
-
-