Package com.boldsign.model
Class WebhookContext
- java.lang.Object
-
- com.boldsign.model.WebhookContext
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.8.0") public class WebhookContext extends Object
WebhookContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookContext.CustomTypeAdapterFactorystatic classWebhookContext.EventTypeEnumGets or Sets eventType
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACTORstatic StringSERIALIZED_NAME_EVENT_TYPEstatic StringSERIALIZED_NAME_PREVIOUS_STATE
-
Constructor Summary
Constructors Constructor Description WebhookContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookContextactor(WebhookActorDetails actor)Map<String,Object>createFormData()booleanequals(Object o)WebhookContexteventType(WebhookContext.EventTypeEnum eventType)static WebhookContextfromJson(String jsonString)Create an instance of WebhookContext given an JSON stringWebhookActorDetailsgetActor()Get actorWebhookContext.EventTypeEnumgetEventType()Get eventTypeObjectgetPreviousState()Get previousStateinthashCode()WebhookContextpreviousState(Object previousState)voidsetActor(WebhookActorDetails actor)voidsetEventType(WebhookContext.EventTypeEnum eventType)voidsetPreviousState(Object previousState)StringtoJson()Convert an instance of WebhookContext to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_EVENT_TYPE
public static final String SERIALIZED_NAME_EVENT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACTOR
public static final String SERIALIZED_NAME_ACTOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PREVIOUS_STATE
public static final String SERIALIZED_NAME_PREVIOUS_STATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
eventType
public WebhookContext eventType(WebhookContext.EventTypeEnum eventType)
-
getEventType
@Nullable public WebhookContext.EventTypeEnum getEventType()
Get eventType- Returns:
- eventType
-
setEventType
public void setEventType(WebhookContext.EventTypeEnum eventType)
-
actor
public WebhookContext actor(WebhookActorDetails actor)
-
getActor
@Nullable public WebhookActorDetails getActor()
Get actor- Returns:
- actor
-
setActor
public void setActor(WebhookActorDetails actor)
-
previousState
public WebhookContext previousState(Object previousState)
-
getPreviousState
@Nullable public Object getPreviousState()
Get previousState- Returns:
- previousState
-
setPreviousState
public void setPreviousState(Object previousState)
-
createFormData
public Map<String,Object> createFormData() throws ApiException
- Throws:
ApiException
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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 WebhookContext
-
fromJson
public static WebhookContext fromJson(String jsonString) throws IOException
Create an instance of WebhookContext given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WebhookContext
- Throws:
IOException- if the JSON string is invalid with respect to WebhookContext
-
toJson
public String toJson()
Convert an instance of WebhookContext to an JSON string- Returns:
- JSON string
-
-