EventInner Class

public final class EventInner
extends EventInfoInner

The event for a webhook.

Constructor Summary

Constructor Description
EventInner()

Creates an instance of EventInner class.

Method Summary

Modifier and Type Method and Description
EventRequestMessage eventRequestMessage()

Get the eventRequestMessage property: The event request message sent to the service URI.

EventResponseMessage eventResponseMessage()

Get the eventResponseMessage property: The event response message received from the service URI.

static EventInner fromJson(JsonReader jsonReader)

Reads an instance of EventInner from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EventInner withEventRequestMessage(EventRequestMessage eventRequestMessage)

Set the eventRequestMessage property: The event request message sent to the service URI.

EventInner withEventResponseMessage(EventResponseMessage eventResponseMessage)

Set the eventResponseMessage property: The event response message received from the service URI.

EventInner withId(String id)

Set the id property: The event ID.

Methods inherited from EventInfoInner

Methods inherited from java.lang.Object

Constructor Details

EventInner

public EventInner()

Creates an instance of EventInner class.

Method Details

eventRequestMessage

public EventRequestMessage eventRequestMessage()

Get the eventRequestMessage property: The event request message sent to the service URI.

Returns:

the eventRequestMessage value.

eventResponseMessage

public EventResponseMessage eventResponseMessage()

Get the eventResponseMessage property: The event response message received from the service URI.

Returns:

the eventResponseMessage value.

fromJson

public static EventInner fromJson(JsonReader jsonReader)

Reads an instance of EventInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EventInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the EventInner.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

EventInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

EventInner.validate()

withEventRequestMessage

public EventInner withEventRequestMessage(EventRequestMessage eventRequestMessage)

Set the eventRequestMessage property: The event request message sent to the service URI.

Parameters:

eventRequestMessage - the eventRequestMessage value to set.

Returns:

the EventInner object itself.

withEventResponseMessage

public EventInner withEventResponseMessage(EventResponseMessage eventResponseMessage)

Set the eventResponseMessage property: The event response message received from the service URI.

Parameters:

eventResponseMessage - the eventResponseMessage value to set.

Returns:

the EventInner object itself.

withId

public EventInner withId(String id)

Set the id property: The event ID.

Overrides:

EventInner.withId(String id)

Parameters:

id

Applies to