/*
* Copyright 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 System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SQS.Model
{
///
/// The user-specified message system attribute value. For string data types, the Value
/// attribute has the same restrictions on the content as the message body. For more information,
/// see SendMessage.
///
///
///
/// Name
, type
, value
and the message body must
/// not be empty or null.
///
///
public partial class MessageSystemAttributeValue
{
private List _binaryListValues = new List();
private MemoryStream _binaryValue;
private string _dataType;
private List _stringListValues = new List();
private string _stringValue;
///
/// Gets and sets the property BinaryListValues.
///
/// Not implemented. Reserved for future use.
///
///
public List BinaryListValues
{
get { return this._binaryListValues; }
set { this._binaryListValues = value; }
}
// Check to see if BinaryListValues property is set
internal bool IsSetBinaryListValues()
{
return this._binaryListValues != null && this._binaryListValues.Count > 0;
}
///
/// Gets and sets the property BinaryValue.
///
/// Binary type attributes can store any binary data, such as compressed data, encrypted
/// data, or images.
///
///
public MemoryStream BinaryValue
{
get { return this._binaryValue; }
set { this._binaryValue = value; }
}
// Check to see if BinaryValue property is set
internal bool IsSetBinaryValue()
{
return this._binaryValue != null;
}
///
/// Gets and sets the property DataType.
///
/// Amazon SQS supports the following logical data types: String
, Number
,
/// and Binary
. For the Number
data type, you must use StringValue
.
///
///
///
/// You can also append custom labels. For more information, see Amazon
/// SQS Message Attributes in the Amazon SQS Developer Guide.
///
///
[AWSProperty(Required=true)]
public string DataType
{
get { return this._dataType; }
set { this._dataType = value; }
}
// Check to see if DataType property is set
internal bool IsSetDataType()
{
return this._dataType != null;
}
///
/// Gets and sets the property StringListValues.
///
/// Not implemented. Reserved for future use.
///
///
public List StringListValues
{
get { return this._stringListValues; }
set { this._stringListValues = value; }
}
// Check to see if StringListValues property is set
internal bool IsSetStringListValues()
{
return this._stringListValues != null && this._stringListValues.Count > 0;
}
///
/// Gets and sets the property StringValue.
///
/// Strings are Unicode with UTF-8 binary encoding. For a list of code values, see ASCII Printable
/// Characters.
///
///
public string StringValue
{
get { return this._stringValue; }
set { this._stringValue = value; }
}
// Check to see if StringValue property is set
internal bool IsSetStringValue()
{
return this._stringValue != null;
}
}
}