public class CreatePromptRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_APPROVE_TEXT |
static String |
SERIALIZED_NAME_BODY |
static String |
SERIALIZED_NAME_EXPIRES_IN |
static String |
SERIALIZED_NAME_LONG_POLL |
static String |
SERIALIZED_NAME_METADATA |
static String |
SERIALIZED_NAME_REJECT_TEXT |
static String |
SERIALIZED_NAME_TITLE |
static String |
SERIALIZED_NAME_USER |
| Constructor and Description |
|---|
CreatePromptRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreatePromptRequest |
approveText(String approveText) |
CreatePromptRequest |
body(String body) |
boolean |
equals(Object o) |
CreatePromptRequest |
expiresIn(BigDecimal expiresIn) |
String |
getApproveText()
The approve action text.
|
String |
getBody()
The body of the approval request to show the user.
|
BigDecimal |
getExpiresIn()
The number of seconds until this request can no longer be answered.
|
Boolean |
getLongPoll()
If true, the request waits (long-polls) until the user responds to the prompt or more than 10 minutes pass.
|
PromptMetadata |
getMetadata()
Get metadata
|
String |
getRejectText()
The reject action text.
|
String |
getTitle()
The title of an approval request.
|
String |
getUser()
The user to send the approval request to.
|
int |
hashCode() |
CreatePromptRequest |
longPoll(Boolean longPoll) |
CreatePromptRequest |
metadata(PromptMetadata metadata) |
CreatePromptRequest |
rejectText(String rejectText) |
void |
setApproveText(String approveText) |
void |
setBody(String body) |
void |
setExpiresIn(BigDecimal expiresIn) |
void |
setLongPoll(Boolean longPoll) |
void |
setMetadata(PromptMetadata metadata) |
void |
setRejectText(String rejectText) |
void |
setTitle(String title) |
void |
setUser(String user) |
CreatePromptRequest |
title(String title) |
String |
toString() |
CreatePromptRequest |
user(String user) |
public static final String SERIALIZED_NAME_BODY
public static final String SERIALIZED_NAME_TITLE
public static final String SERIALIZED_NAME_REJECT_TEXT
public static final String SERIALIZED_NAME_EXPIRES_IN
public static final String SERIALIZED_NAME_LONG_POLL
public static final String SERIALIZED_NAME_USER
public static final String SERIALIZED_NAME_APPROVE_TEXT
public static final String SERIALIZED_NAME_METADATA
public CreatePromptRequest body(String body)
public String getBody()
public void setBody(String body)
public CreatePromptRequest title(String title)
public String getTitle()
public void setTitle(String title)
public CreatePromptRequest rejectText(String rejectText)
public String getRejectText()
public void setRejectText(String rejectText)
public CreatePromptRequest expiresIn(BigDecimal expiresIn)
public BigDecimal getExpiresIn()
public void setExpiresIn(BigDecimal expiresIn)
public CreatePromptRequest longPoll(Boolean longPoll)
public Boolean getLongPoll()
public void setLongPoll(Boolean longPoll)
public CreatePromptRequest user(String user)
public String getUser()
public void setUser(String user)
public CreatePromptRequest approveText(String approveText)
public String getApproveText()
public void setApproveText(String approveText)
public CreatePromptRequest metadata(PromptMetadata metadata)
public PromptMetadata getMetadata()
public void setMetadata(PromptMetadata metadata)
Copyright © 2019. All rights reserved.