Package com.boldsign.model
Class WebhookEventData
- java.lang.Object
-
- com.boldsign.model.AbstractOpenApiSchema
-
- com.boldsign.model.WebhookEventData
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.8.0") public class WebhookEventData extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookEventData.CustomTypeAdapterFactory
-
Constructor Summary
Constructors Constructor Description WebhookEventData()WebhookEventData(Object o)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebhookEventDatafromJson(String jsonString)Create an instance of WebhookEventData given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: DocumentEvent, IdentityVerificationEvent, SenderIdentityEvent, TemplateEventDocumentEventgetDocumentEvent()Get the actual instance of `DocumentEvent`.IdentityVerificationEventgetIdentityVerificationEvent()Get the actual instance of `IdentityVerificationEvent`.Map<String,Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectSenderIdentityEventgetSenderIdentityEvent()Get the actual instance of `SenderIdentityEvent`.TemplateEventgetTemplateEvent()Get the actual instance of `TemplateEvent`.voidsetActualInstance(Object instance)Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: DocumentEvent, IdentityVerificationEvent, SenderIdentityEvent, TemplateEvent It could be an instance of the 'oneOf' schemas.StringtoJson()Convert an instance of WebhookEventData to an JSON stringstatic voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found-
Methods inherited from class com.boldsign.model.AbstractOpenApiSchema
equals, getActualInstanceRecursively, getSchemaType, hashCode, isNullable, toString
-
-
-
-
Constructor Detail
-
WebhookEventData
public WebhookEventData()
-
WebhookEventData
public WebhookEventData(Object o)
-
-
Method Detail
-
getSchemas
public Map<String,Class<?>> getSchemas()
Description copied from class:AbstractOpenApiSchemaGet the list of oneOf/anyOf composed schemas allowed to be stored in this object- Specified by:
getSchemasin classAbstractOpenApiSchema- Returns:
- an instance of the actual schema/object
-
setActualInstance
public void setActualInstance(Object instance)
Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: DocumentEvent, IdentityVerificationEvent, SenderIdentityEvent, TemplateEvent It could be an instance of the 'oneOf' schemas.- Overrides:
setActualInstancein classAbstractOpenApiSchema- Parameters:
instance- the actual instance of the schema/object
-
getActualInstance
public Object getActualInstance()
Get the actual instance, which can be the following: DocumentEvent, IdentityVerificationEvent, SenderIdentityEvent, TemplateEvent- Overrides:
getActualInstancein classAbstractOpenApiSchema- Returns:
- The actual instance (DocumentEvent, IdentityVerificationEvent, SenderIdentityEvent, TemplateEvent)
-
getDocumentEvent
public DocumentEvent getDocumentEvent() throws ClassCastException
Get the actual instance of `DocumentEvent`. If the actual instance is not `DocumentEvent`, the ClassCastException will be thrown.- Returns:
- The actual instance of `DocumentEvent`
- Throws:
ClassCastException- if the instance is not `DocumentEvent`
-
getTemplateEvent
public TemplateEvent getTemplateEvent() throws ClassCastException
Get the actual instance of `TemplateEvent`. If the actual instance is not `TemplateEvent`, the ClassCastException will be thrown.- Returns:
- The actual instance of `TemplateEvent`
- Throws:
ClassCastException- if the instance is not `TemplateEvent`
-
getSenderIdentityEvent
public SenderIdentityEvent getSenderIdentityEvent() throws ClassCastException
Get the actual instance of `SenderIdentityEvent`. If the actual instance is not `SenderIdentityEvent`, the ClassCastException will be thrown.- Returns:
- The actual instance of `SenderIdentityEvent`
- Throws:
ClassCastException- if the instance is not `SenderIdentityEvent`
-
getIdentityVerificationEvent
public IdentityVerificationEvent getIdentityVerificationEvent() throws ClassCastException
Get the actual instance of `IdentityVerificationEvent`. If the actual instance is not `IdentityVerificationEvent`, the ClassCastException will be thrown.- Returns:
- The actual instance of `IdentityVerificationEvent`
- Throws:
ClassCastException- if the instance is not `IdentityVerificationEvent`
-
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 WebhookEventData
-
fromJson
public static WebhookEventData fromJson(String jsonString) throws IOException
Create an instance of WebhookEventData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WebhookEventData
- Throws:
IOException- if the JSON string is invalid with respect to WebhookEventData
-
toJson
public String toJson()
Convert an instance of WebhookEventData to an JSON string- Returns:
- JSON string
-
-