@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MessageReviewHandler extends Object implements Serializable, Cloneable, StructuredPojo
Configuration information for optional message review.
| Constructor and Description |
|---|
MessageReviewHandler() |
| Modifier and Type | Method and Description |
|---|---|
MessageReviewHandler |
clone() |
boolean |
equals(Object obj) |
String |
getFallbackResult()
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid
response, encounters an error, or times out.
|
String |
getUri()
Identifier of the message review handler.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFallbackResult(String fallbackResult)
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid
response, encounters an error, or times out.
|
void |
setUri(String uri)
Identifier of the message review handler.
|
String |
toString()
Returns a string representation of this object.
|
MessageReviewHandler |
withFallbackResult(FallbackResult fallbackResult)
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid
response, encounters an error, or times out.
|
MessageReviewHandler |
withFallbackResult(String fallbackResult)
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid
response, encounters an error, or times out.
|
MessageReviewHandler |
withUri(String uri)
Identifier of the message review handler.
|
public void setUri(String uri)
Identifier of the message review handler. Currently this must be an ARN of a lambda function.
uri - Identifier of the message review handler. Currently this must be an ARN of a lambda function.public String getUri()
Identifier of the message review handler. Currently this must be an ARN of a lambda function.
public MessageReviewHandler withUri(String uri)
Identifier of the message review handler. Currently this must be an ARN of a lambda function.
uri - Identifier of the message review handler. Currently this must be an ARN of a lambda function.public void setFallbackResult(String fallbackResult)
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid
response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If allowed, the
message is delivered with returned content to all users connected to the room. If denied, the message is not
delivered to any user. Default: ALLOW.
fallbackResult - Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return
a valid response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If
allowed, the message is delivered with returned content to all users connected to the room. If denied, the
message is not delivered to any user. Default: ALLOW.FallbackResultpublic String getFallbackResult()
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid
response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If allowed, the
message is delivered with returned content to all users connected to the room. If denied, the message is not
delivered to any user. Default: ALLOW.
ALLOW.FallbackResultpublic MessageReviewHandler withFallbackResult(String fallbackResult)
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid
response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If allowed, the
message is delivered with returned content to all users connected to the room. If denied, the message is not
delivered to any user. Default: ALLOW.
fallbackResult - Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return
a valid response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If
allowed, the message is delivered with returned content to all users connected to the room. If denied, the
message is not delivered to any user. Default: ALLOW.FallbackResultpublic MessageReviewHandler withFallbackResult(FallbackResult fallbackResult)
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid
response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If allowed, the
message is delivered with returned content to all users connected to the room. If denied, the message is not
delivered to any user. Default: ALLOW.
fallbackResult - Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return
a valid response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If
allowed, the message is delivered with returned content to all users connected to the room. If denied, the
message is not delivered to any user. Default: ALLOW.FallbackResultpublic String toString()
toString in class ObjectObject.toString()public MessageReviewHandler clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.