Class WebhookAuthentication.Builder
- java.lang.Object
-
- com.courier.api.resources.profiles.types.WebhookAuthentication.Builder
-
- All Implemented Interfaces:
WebhookAuthentication._FinalStage,WebhookAuthentication.ModeStage
- Enclosing class:
- WebhookAuthentication
public static final class WebhookAuthentication.Builder extends java.lang.Object implements WebhookAuthentication.ModeStage, WebhookAuthentication._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookAuthenticationbuild()WebhookAuthentication.Builderfrom(WebhookAuthentication other)WebhookAuthentication._FinalStagemode(WebhookAuthMode mode)The authentication mode to use.WebhookAuthentication._FinalStagepassword(java.lang.String password)Password for basic authentication.WebhookAuthentication._FinalStagepassword(java.util.Optional<java.lang.String> password)WebhookAuthentication._FinalStagetoken(java.lang.String token)Token for bearer authentication.WebhookAuthentication._FinalStagetoken(java.util.Optional<java.lang.String> token)WebhookAuthentication._FinalStageusername(java.lang.String username)Username for basic authentication.WebhookAuthentication._FinalStageusername(java.util.Optional<java.lang.String> username)
-
-
-
Method Detail
-
from
public WebhookAuthentication.Builder from(WebhookAuthentication other)
- Specified by:
fromin interfaceWebhookAuthentication.ModeStage
-
mode
public WebhookAuthentication._FinalStage mode(WebhookAuthMode mode)
The authentication mode to use. Defaults to 'none' if not specified.
- Specified by:
modein interfaceWebhookAuthentication.ModeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
token
public WebhookAuthentication._FinalStage token(java.lang.String token)
Token for bearer authentication.
- Specified by:
tokenin interfaceWebhookAuthentication._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
token
public WebhookAuthentication._FinalStage token(java.util.Optional<java.lang.String> token)
- Specified by:
tokenin interfaceWebhookAuthentication._FinalStage
-
password
public WebhookAuthentication._FinalStage password(java.lang.String password)
Password for basic authentication.
- Specified by:
passwordin interfaceWebhookAuthentication._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
password
public WebhookAuthentication._FinalStage password(java.util.Optional<java.lang.String> password)
- Specified by:
passwordin interfaceWebhookAuthentication._FinalStage
-
username
public WebhookAuthentication._FinalStage username(java.lang.String username)
Username for basic authentication.
- Specified by:
usernamein interfaceWebhookAuthentication._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
username
public WebhookAuthentication._FinalStage username(java.util.Optional<java.lang.String> username)
- Specified by:
usernamein interfaceWebhookAuthentication._FinalStage
-
build
public WebhookAuthentication build()
- Specified by:
buildin interfaceWebhookAuthentication._FinalStage
-
-