Name | Type | Description | Notes |
---|---|---|---|
Url | string | The webhook endpoint URL. | |
SubscribedEvents | []WebhookEventType | The event types you want to subscribe to for this webhook endpoint. You can call Get webhook event types to retrieve all available event types. | |
Description | Pointer to string | The description of the webhook endpoint. | [optional] |
func NewCreateWebhookEndpointRequest(url string, subscribedEvents []WebhookEventType, ) *CreateWebhookEndpointRequest
NewCreateWebhookEndpointRequest instantiates a new CreateWebhookEndpointRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCreateWebhookEndpointRequestWithDefaults() *CreateWebhookEndpointRequest
NewCreateWebhookEndpointRequestWithDefaults instantiates a new CreateWebhookEndpointRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *CreateWebhookEndpointRequest) GetUrl() string
GetUrl returns the Url field if non-nil, zero value otherwise.
func (o *CreateWebhookEndpointRequest) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateWebhookEndpointRequest) SetUrl(v string)
SetUrl sets Url field to given value.
func (o *CreateWebhookEndpointRequest) GetSubscribedEvents() []WebhookEventType
GetSubscribedEvents returns the SubscribedEvents field if non-nil, zero value otherwise.
func (o *CreateWebhookEndpointRequest) GetSubscribedEventsOk() (*[]WebhookEventType, bool)
GetSubscribedEventsOk returns a tuple with the SubscribedEvents field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateWebhookEndpointRequest) SetSubscribedEvents(v []WebhookEventType)
SetSubscribedEvents sets SubscribedEvents field to given value.
func (o *CreateWebhookEndpointRequest) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *CreateWebhookEndpointRequest) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateWebhookEndpointRequest) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *CreateWebhookEndpointRequest) HasDescription() bool
HasDescription returns a boolean if a field has been set.