@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
.FallbackResult
public 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
.FallbackResult
public 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
.FallbackResult
public 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
.FallbackResult
public String toString()
toString
in class Object
Object.toString()
public MessageReviewHandler clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.