Class WebhookProfile.Builder
- java.lang.Object
-
- com.courier.api.resources.profiles.types.WebhookProfile.Builder
-
- All Implemented Interfaces:
WebhookProfile._FinalStage,WebhookProfile.UrlStage
- Enclosing class:
- WebhookProfile
public static final class WebhookProfile.Builder extends java.lang.Object implements WebhookProfile.UrlStage, WebhookProfile._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookProfile._FinalStageauthentication(WebhookAuthentication authentication)Authentication configuration for the webhook request.WebhookProfile._FinalStageauthentication(java.util.Optional<WebhookAuthentication> authentication)WebhookProfilebuild()WebhookProfile.Builderfrom(WebhookProfile other)WebhookProfile._FinalStageheaders(java.util.Map<java.lang.String,java.lang.String> headers)Custom headers to include in the webhook request.WebhookProfile._FinalStageheaders(java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> headers)WebhookProfile._FinalStagemethod(WebhookMethod method)The HTTP method to use for the webhook request.WebhookProfile._FinalStagemethod(java.util.Optional<WebhookMethod> method)WebhookProfile._FinalStageprofile(WebhookProfileType profile)Specifies what profile information is included in the request payload.WebhookProfile._FinalStageprofile(java.util.Optional<WebhookProfileType> profile)WebhookProfile._FinalStageurl(java.lang.String url)The URL to send the webhook request to.
-
-
-
Method Detail
-
from
public WebhookProfile.Builder from(WebhookProfile other)
- Specified by:
fromin interfaceWebhookProfile.UrlStage
-
url
public WebhookProfile._FinalStage url(java.lang.String url)
The URL to send the webhook request to.
- Specified by:
urlin interfaceWebhookProfile.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
profile
public WebhookProfile._FinalStage profile(WebhookProfileType profile)
Specifies what profile information is included in the request payload. Defaults to 'limited' if not specified.
- Specified by:
profilein interfaceWebhookProfile._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
profile
public WebhookProfile._FinalStage profile(java.util.Optional<WebhookProfileType> profile)
- Specified by:
profilein interfaceWebhookProfile._FinalStage
-
authentication
public WebhookProfile._FinalStage authentication(WebhookAuthentication authentication)
Authentication configuration for the webhook request.
- Specified by:
authenticationin interfaceWebhookProfile._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
authentication
public WebhookProfile._FinalStage authentication(java.util.Optional<WebhookAuthentication> authentication)
- Specified by:
authenticationin interfaceWebhookProfile._FinalStage
-
headers
public WebhookProfile._FinalStage headers(java.util.Map<java.lang.String,java.lang.String> headers)
Custom headers to include in the webhook request.
- Specified by:
headersin interfaceWebhookProfile._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
headers
public WebhookProfile._FinalStage headers(java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> headers)
- Specified by:
headersin interfaceWebhookProfile._FinalStage
-
method
public WebhookProfile._FinalStage method(WebhookMethod method)
The HTTP method to use for the webhook request. Defaults to POST if not specified.
- Specified by:
methodin interfaceWebhookProfile._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
method
public WebhookProfile._FinalStage method(java.util.Optional<WebhookMethod> method)
- Specified by:
methodin interfaceWebhookProfile._FinalStage
-
build
public WebhookProfile build()
- Specified by:
buildin interfaceWebhookProfile._FinalStage
-
-