Package io.voucherify.client.model
Class ManagementProjectsWebhooksCreateResponseBody
java.lang.Object
io.voucherify.client.model.ManagementProjectsWebhooksCreateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsWebhooksCreateResponseBody
extends Object
Response body schema for **POST** `/management/v1/projects/{projectId}/webhooks`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets eventsstatic enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanCreate an instance of ManagementProjectsWebhooksCreateResponseBody given an JSON stringDetermines if the webhook configuration is active.Timestamp representing the date and time when the webhook configuration was created.Lists the events that trigger webhook sendout.getId()Unique identifier of the webhook.The type of the object represented by JSON.URL address that receives webhooks.inthashCode()voidvoidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidvoidsetTargetUrl(String targetUrl) toJson()Convert an instance of ManagementProjectsWebhooksCreateResponseBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_TARGET_URL
- See Also:
-
SERIALIZED_NAME_EVENTS
- See Also:
-
SERIALIZED_NAME_ACTIVE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManagementProjectsWebhooksCreateResponseBody
public ManagementProjectsWebhooksCreateResponseBody()
-
-
Method Details
-
id
-
getId
Unique identifier of the webhook.- Returns:
- id
-
setId
-
_object
public ManagementProjectsWebhooksCreateResponseBody _object(ManagementProjectsWebhooksCreateResponseBody.ObjectEnum _object) -
getObject
The type of the object represented by JSON.- Returns:
- _object
-
setObject
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the webhook configuration was created. The value for this parameter is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
targetUrl
-
getTargetUrl
URL address that receives webhooks.- Returns:
- targetUrl
-
setTargetUrl
-
events
-
addEventsItem
public ManagementProjectsWebhooksCreateResponseBody addEventsItem(ManagementProjectsWebhooksCreateResponseBody.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 ManagementProjectsWebhooksCreateResponseBody fromJson(String jsonString) throws IOException Create an instance of ManagementProjectsWebhooksCreateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsWebhooksCreateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsWebhooksCreateResponseBody
-
toJson
Convert an instance of ManagementProjectsWebhooksCreateResponseBody to an JSON string- Returns:
- JSON string
-