Partilhar via


Webhook.UpdateResourceStages.WithCustomHeaders<ParentT> Interface

Type Parameters

ParentT

the stage of the parent definition to return to after attaching this definition

public static interface Webhook.UpdateResourceStages.WithCustomHeaders<ParentT>

The stage of the webhook definition allowing to specify the custom headers that will be added to the notifications.

Method Summary

Modifier and Type Method and Description
abstract WithAttach<ParentT> withCustomHeader(String name, String value)

Specifies a custom header that will be added to notifications.

abstract WithAttach<ParentT> withCustomHeaders(Map<String,String> customHeaders)

Specifies the custom headers that will be added to the notifications.

Method Details

withCustomHeader

public abstract Webhook.UpdateResourceStages.WithAttach withCustomHeader(String name, String value)

Specifies a custom header that will be added to notifications.

Consecutive calls to this method will add additional headers.

Parameters:

name - of the optional header
value - of the optional header

Returns:

the next stage of the resource update

withCustomHeaders

public abstract Webhook.UpdateResourceStages.WithAttach withCustomHeaders(Map customHeaders)

Specifies the custom headers that will be added to the notifications.

Parameters:

customHeaders - the "Name=Value" custom headers.

Returns:

the next stage of the resource update

Applies to