/* * 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 sns-2010-03-31.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.SimpleNotificationService.Model { /// /// The user-specified message attribute value. For string data types, the value attribute /// has the same restrictions on the content as the message body. For more information, /// see Publish. /// /// /// /// Name, type, and value must not be empty or null. In addition, the message body should /// not be empty or null. All parts of the message attribute, including name, type, and /// value, are included in the message size restriction, which is currently 256 KB (262,144 /// bytes). For more information, see Using /// Amazon SNS Message Attributes. /// /// public partial class MessageAttributeValue { private MemoryStream _binaryValue; private string _dataType; private string _stringValue; /// /// Gets and sets the property BinaryValue. /// /// Binary type attributes can store any binary data, for example, 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 SNS supports the following logical data types: String, String.Array, Number, /// and Binary. For more information, see Message /// Attribute Data Types. /// /// [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 StringValue. /// /// Strings are Unicode with UTF8 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; } } }