Class WebhookProfile
- java.lang.Object
-
- com.courier.api.resources.profiles.types.WebhookProfile
-
public final class WebhookProfile extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWebhookProfile._FinalStagestatic classWebhookProfile.Builderstatic interfaceWebhookProfile.UrlStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebhookProfile.UrlStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<WebhookAuthentication>getAuthentication()java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>getHeaders()java.util.Optional<WebhookMethod>getMethod()java.util.Optional<WebhookProfileType>getProfile()java.lang.StringgetUrl()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
- Returns:
- The URL to send the webhook request to.
-
getMethod
public java.util.Optional<WebhookMethod> getMethod()
- Returns:
- The HTTP method to use for the webhook request. Defaults to POST if not specified.
-
getHeaders
public java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> getHeaders()
- Returns:
- Custom headers to include in the webhook request.
-
getAuthentication
public java.util.Optional<WebhookAuthentication> getAuthentication()
- Returns:
- Authentication configuration for the webhook request.
-
getProfile
public java.util.Optional<WebhookProfileType> getProfile()
- Returns:
- Specifies what profile information is included in the request payload. Defaults to 'limited' if not specified.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static WebhookProfile.UrlStage builder()
-
-