Package io.voucherify.client.model
Class ManagementProjectsWebhooksCreateRequestBody
java.lang.Object
io.voucherify.client.model.ManagementProjectsWebhooksCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsWebhooksCreateRequestBody
extends Object
Request body schema for **POST** `/management/v1/projects/{projectId}/webhooks/{webhookId}`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets events -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ManagementProjectsWebhooksCreateRequestBody given an JSON stringDetermines if the webhook configuration is active.Lists the events that trigger webhook sendout.URL address that receives webhooks.inthashCode()voidvoidvoidsetTargetUrl(String targetUrl) toJson()Convert an instance of ManagementProjectsWebhooksCreateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_TARGET_URL
- See Also:
-
SERIALIZED_NAME_EVENTS
- See Also:
-
SERIALIZED_NAME_ACTIVE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManagementProjectsWebhooksCreateRequestBody
public ManagementProjectsWebhooksCreateRequestBody()
-
-
Method Details
-
targetUrl
-
getTargetUrl
URL address that receives webhooks.- Returns:
- targetUrl
-
setTargetUrl
-
events
-
addEventsItem
public ManagementProjectsWebhooksCreateRequestBody addEventsItem(ManagementProjectsWebhooksCreateRequestBody.EventsEnum eventsItem) -
getEvents
Lists the events that trigger webhook sendout.- Returns:
- events
-
setEvents
-
active
-
getActive
Determines if the webhook configuration is active.- Returns:
- active
-
setActive
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ManagementProjectsWebhooksCreateRequestBody fromJson(String jsonString) throws IOException Create an instance of ManagementProjectsWebhooksCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsWebhooksCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsWebhooksCreateRequestBody
-
toJson
Convert an instance of ManagementProjectsWebhooksCreateRequestBody to an JSON string- Returns:
- JSON string
-