Package ai.rev.topicextraction.models
Class TopicExtractionJobOptions
- java.lang.Object
-
- ai.rev.topicextraction.models.TopicExtractionJobOptions
-
public class TopicExtractionJobOptions extends Object
A TopicExtractionJobOptions object represents parameters that are submitted along a new job.
-
-
Constructor Summary
Constructors Constructor Description TopicExtractionJobOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetCallbackUrl()Deprecated.Use notificationConfig and getNotificationConfig insteadIntegergetDeleteAfterSeconds()Returns the value of deleteAfterSeconds.RevAiTranscriptgetJson()Returns the json.StringgetMetadata()Returns the metadata.CustomerUrlDatagetNotificationConfig()Returns the notification config object.StringgetText()Returns the text.voidsetCallbackUrl(String callbackUrl)Deprecated.Use setNotificationConfig insteadvoidsetDeleteAfterSeconds(Integer deleteAfterSeconds)Specifies the number of seconds to be waited until the job is auto-deleted after its completion.voidsetJson(RevAiTranscript json)Specifies a RevAiTranscript from the async api that will have topic extraction run on itvoidsetMetadata(String metadata)Optional metadata that is provided during job submission limited to 512 characters.voidsetNotificationConfig(String callbackUrl)Optional property to specify the callback url that Rev AI will POST to when job processing is completevoidsetNotificationConfig(String callbackUrl, Map<String,String> authHeaders)Optional property to specify the callback url that Rev AI will POST to when job processing is completevoidsetText(String text)Specifies plain text that will have topic extraction run on it
-
-
-
Method Detail
-
getText
public String getText()
Returns the text.- Returns:
- the text.
-
setText
public void setText(String text)
Specifies plain text that will have topic extraction run on it- Parameters:
text- plain text to be topic extracted.
-
getJson
public RevAiTranscript getJson()
Returns the json.- Returns:
- the json.
-
setJson
public void setJson(RevAiTranscript json)
Specifies a RevAiTranscript from the async api that will have topic extraction run on it- Parameters:
json- RevAiTranscript to be topic extracted.
-
getCallbackUrl
@Deprecated public String getCallbackUrl()
Deprecated.Use notificationConfig and getNotificationConfig insteadReturns the callback url.- Returns:
- the callback url.
-
setCallbackUrl
@Deprecated public void setCallbackUrl(String callbackUrl)
Deprecated.Use setNotificationConfig insteadSpecifies the callback url that Rev AI will POST to when job processing is complete. This property is optional.- Parameters:
callbackUrl- The url to POST to when job processing is complete.
-
getNotificationConfig
public CustomerUrlData getNotificationConfig()
Returns the notification config object.- Returns:
- the notification config.
-
setNotificationConfig
public void setNotificationConfig(String callbackUrl, Map<String,String> authHeaders)
Optional property to specify the callback url that Rev AI will POST to when job processing is complete- Parameters:
callbackUrl- The url to POST to when job processing is complete.authHeaders- Optional parameter to authenticate access to the callback url
-
setNotificationConfig
public void setNotificationConfig(String callbackUrl)
Optional property to specify the callback url that Rev AI will POST to when job processing is complete- Parameters:
callbackUrl- The url to POST to when job processing is complete.
-
getMetadata
public String getMetadata()
Returns the metadata.- Returns:
- A String that contains the metadata.
-
setMetadata
public void setMetadata(String metadata)
Optional metadata that is provided during job submission limited to 512 characters.- Parameters:
metadata- A String to set as the metadata.
-
getDeleteAfterSeconds
public Integer getDeleteAfterSeconds()
Returns the value of deleteAfterSeconds.- Returns:
- The deleteAfterSeconds value.
-
setDeleteAfterSeconds
public void setDeleteAfterSeconds(Integer deleteAfterSeconds)
Specifies the number of seconds to be waited until the job is auto-deleted after its completion.- Parameters:
deleteAfterSeconds- The number of seconds after job completion when job is auto-deleted.
-
-