public static class SQSEvent.SQSMessage extends Object implements Serializable, Cloneable
Constructor and Description |
---|
SQSMessage()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
SQSEvent.SQSMessage |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
Gets the attributes associated with the queue
|
String |
getAwsRegion()
Gets the AWS Region
|
String |
getBody()
Gets the body
|
String |
getEventSource()
Gets the Event Source
|
String |
getEventSourceArn()
Gets the Event Source ARN
|
String |
getMd5OfBody()
Gets the md5 of body
|
String |
getMd5OfMessageAttributes()
Gets the md5 of message attributes
|
Map<String,SQSEvent.MessageAttribute> |
getMessageAttributes()
Gets the attributes associated with the message
|
String |
getMessageId()
Gets the message id
|
String |
getReceiptHandle()
Gets the receipt handle
|
int |
hashCode() |
void |
setAttributes(Map<String,String> attributes)
Sets the queue attributes associated with the queue
|
void |
setAwsRegion(String awsRegion)
Sets the AWS Region
|
void |
setBody(String body)
Sets the body
|
void |
setEventSource(String eventSource)
Sets the Event Source
|
void |
setEventSourceArn(String eventSourceArn)
Sets the Event Source ARN
|
void |
setMd5OfBody(String md5OfBody)
Sets the md5 of body
|
void |
setMd5OfMessageAttributes(String md5OfMessageAttributes)
Sets the md5 of message attributes
|
void |
setMessageAttributes(Map<String,SQSEvent.MessageAttribute> messageAttributes)
Sets the attributes associated with the message
|
void |
setMessageId(String messageId)
Sets the message id
|
void |
setReceiptHandle(String receiptHandle)
Sets the receipt handle
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
public String getMessageId()
public void setMessageId(String messageId)
messageId
- public String getReceiptHandle()
public void setReceiptHandle(String receiptHandle)
receiptHandle
- public String getBody()
public void setBody(String body)
body
- public String getMd5OfBody()
public void setMd5OfBody(String md5OfBody)
md5OfBody
- public String getMd5OfMessageAttributes()
public void setMd5OfMessageAttributes(String md5OfMessageAttributes)
md5OfMessageAttributes
- public String getEventSourceArn()
public void setEventSourceArn(String eventSourceArn)
eventSourceArn
- public String getEventSource()
public void setEventSource(String eventSource)
eventSource
- public String getAwsRegion()
public void setAwsRegion(String awsRegion)
awsRegion
- public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes
- public Map<String,SQSEvent.MessageAttribute> getMessageAttributes()
public void setMessageAttributes(Map<String,SQSEvent.MessageAttribute> messageAttributes)
messageAttributes
- A map object with string and message attribute key/value pairspublic String toString()
toString
in class Object
Object.toString()
public SQSEvent.SQSMessage clone()
Copyright © 2020. All rights reserved.