Package com.bandwidth.sdk.model
Class WebhookSubscription
java.lang.Object
com.bandwidth.sdk.model.WebhookSubscription
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.10.0")
public class WebhookSubscription
extends Object
Information about a webhook that Bandwidth should send upon the completion of event customer has subscribed to.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbasicAuthentication
(WebhookSubscriptionBasicAuthentication basicAuthentication) callbackUrl
(String callbackUrl) createdDate
(OffsetDateTime createdDate) boolean
static WebhookSubscription
Create an instance of WebhookSubscription given an JSON stringGet accountIdReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get basicAuthenticationCallback URL to receive status updates from Bandwidth.Get createdDategetId()
Get idGet modifiedDategetType()
Get typeint
hashCode()
modifiedDate
(OffsetDateTime modifiedDate) putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.void
setAccountId
(String accountId) void
setBasicAuthentication
(WebhookSubscriptionBasicAuthentication basicAuthentication) void
setCallbackUrl
(String callbackUrl) void
setCreatedDate
(OffsetDateTime createdDate) void
void
setModifiedDate
(OffsetDateTime modifiedDate) void
toJson()
Convert an instance of WebhookSubscription to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_CALLBACK_URL
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_BASIC_AUTHENTICATION
- See Also:
-
SERIALIZED_NAME_CREATED_DATE
- See Also:
-
SERIALIZED_NAME_MODIFIED_DATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
WebhookSubscription
public WebhookSubscription()
-
-
Method Details
-
id
-
getId
Get id- Returns:
- id
-
setId
-
accountId
-
getAccountId
Get accountId- Returns:
- accountId
-
setAccountId
-
callbackUrl
-
getCallbackUrl
Callback URL to receive status updates from Bandwidth. When a webhook subscription is registered with Bandwidth under a given account ID, it will be used to send status updates for all requests submitted under that account ID.- Returns:
- callbackUrl
-
setCallbackUrl
-
type
-
getType
Get type- Returns:
- type
-
setType
-
basicAuthentication
public WebhookSubscription basicAuthentication(@Nullable WebhookSubscriptionBasicAuthentication basicAuthentication) -
getBasicAuthentication
Get basicAuthentication- Returns:
- basicAuthentication
-
setBasicAuthentication
public void setBasicAuthentication(@Nullable WebhookSubscriptionBasicAuthentication basicAuthentication) -
createdDate
-
getCreatedDate
Get createdDate- Returns:
- createdDate
-
setCreatedDate
-
modifiedDate
-
getModifiedDate
Get modifiedDate- Returns:
- modifiedDate
-
setModifiedDate
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key
- name of the propertyvalue
- value of the property- Returns:
- the WebhookSubscription instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key
- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to WebhookSubscription
-
fromJson
Create an instance of WebhookSubscription given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of WebhookSubscription
- Throws:
IOException
- if the JSON string is invalid with respect to WebhookSubscription
-
toJson
Convert an instance of WebhookSubscription to an JSON string- Returns:
- JSON string
-