/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the sqs-2012-11-05.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SQS.Model
{
///
/// An Amazon SQS message.
///
public partial class Message
{
private Dictionary _attributes = new Dictionary();
private string _body;
private string _md5OfBody;
private string _md5OfMessageAttributes;
private Dictionary _messageAttributes = new Dictionary();
private string _messageId;
private string _receiptHandle;
///
/// Empty constructor used to set properties independently even when a simple constructor is available
///
public Message() { }
///
/// Gets and sets the property Attributes.
///
/// A map of the attributes requested in ReceiveMessage
to their
/// respective values. Supported attributes:
///
/// -
///
///
ApproximateReceiveCount
///
/// -
///
///
ApproximateFirstReceiveTimestamp
///
/// -
///
///
MessageDeduplicationId
///
/// -
///
///
MessageGroupId
///
/// -
///
///
SenderId
///
/// -
///
///
SentTimestamp
///
/// -
///
///
SequenceNumber
///
///
///
/// ApproximateFirstReceiveTimestamp
and SentTimestamp
are
/// each returned as an integer representing the epoch
/// time in milliseconds.
///
///
public Dictionary Attributes
{
get { return this._attributes; }
set { this._attributes = value; }
}
// Check to see if Attributes property is set
internal bool IsSetAttributes()
{
return this._attributes != null && this._attributes.Count > 0;
}
///
/// Gets and sets the property Body.
///
/// The message's contents (not URL-encoded).
///
///
public string Body
{
get { return this._body; }
set { this._body = value; }
}
// Check to see if Body property is set
internal bool IsSetBody()
{
return this._body != null;
}
///
/// Gets and sets the property MD5OfBody.
///
/// An MD5 digest of the non-URL-encoded message body string.
///
///
public string MD5OfBody
{
get { return this._md5OfBody; }
set { this._md5OfBody = value; }
}
// Check to see if MD5OfBody property is set
internal bool IsSetMD5OfBody()
{
return this._md5OfBody != null;
}
///
/// Gets and sets the property MD5OfMessageAttributes.
///
/// An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute
/// to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the
/// message before creating the MD5 digest. For information about MD5, see RFC1321.
///
///
public string MD5OfMessageAttributes
{
get { return this._md5OfMessageAttributes; }
set { this._md5OfMessageAttributes = value; }
}
// Check to see if MD5OfMessageAttributes property is set
internal bool IsSetMD5OfMessageAttributes()
{
return this._md5OfMessageAttributes != null;
}
///
/// Gets and sets the property MessageAttributes.
///
/// Each message attribute consists of a Name
, Type
, and Value
.
/// For more information, see Amazon
/// SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.
///
///
public Dictionary MessageAttributes
{
get { return this._messageAttributes; }
set { this._messageAttributes = value; }
}
// Check to see if MessageAttributes property is set
internal bool IsSetMessageAttributes()
{
return this._messageAttributes != null && this._messageAttributes.Count > 0;
}
///
/// Gets and sets the property MessageId.
///
/// A unique identifier for the message. A MessageId
is considered unique
/// across all AWS accounts for an extended period of time.
///
///
public string MessageId
{
get { return this._messageId; }
set { this._messageId = value; }
}
// Check to see if MessageId property is set
internal bool IsSetMessageId()
{
return this._messageId != null;
}
///
/// Gets and sets the property ReceiptHandle.
///
/// An identifier associated with the act of receiving the message. A new receipt handle
/// is returned every time you receive a message. When deleting a message, you provide
/// the last received receipt handle to delete the message.
///
///
public string ReceiptHandle
{
get { return this._receiptHandle; }
set { this._receiptHandle = value; }
}
// Check to see if ReceiptHandle property is set
internal bool IsSetReceiptHandle()
{
return this._receiptHandle != null;
}
}
}