-
Notifications
You must be signed in to change notification settings - Fork 863
/
MessageAttributeValue.cs
153 lines (139 loc) · 5.32 KB
/
MessageAttributeValue.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*
* 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;
#pragma warning disable CS0612,CS0618,CS1570
namespace Amazon.SQS.Model
{
/// <summary>
/// The user-specified message attribute value. For string data types, the <c>Value</c>
/// attribute has the same restrictions on the content as the message body. For more information,
/// see <c> <a>SendMessage</a>.</c>
///
///
/// <para>
/// <c>Name</c>, <c>type</c>, <c>value</c> and the message body must not be empty or
/// null. All parts of the message attribute, including <c>Name</c>, <c>Type</c>, and
/// <c>Value</c>, are part of the message size restriction (256 KiB or 262,144 bytes).
/// </para>
/// </summary>
public partial class MessageAttributeValue
{
private List<MemoryStream> _binaryListValues = AWSConfigs.InitializeCollections ? new List<MemoryStream>() : null;
private MemoryStream _binaryValue;
private string _dataType;
private List<string> _stringListValues = AWSConfigs.InitializeCollections ? new List<string>() : null;
private string _stringValue;
/// <summary>
/// Gets and sets the property BinaryListValues.
/// <para>
/// Not implemented. Reserved for future use.
/// </para>
/// </summary>
public List<MemoryStream> 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 || !AWSConfigs.InitializeCollections);
}
/// <summary>
/// Gets and sets the property BinaryValue.
/// <para>
/// Binary type attributes can store any binary data, such as compressed data, encrypted
/// data, or images.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property DataType.
/// <para>
/// Amazon SQS supports the following logical data types: <c>String</c>, <c>Number</c>,
/// and <c>Binary</c>. For the <c>Number</c> data type, you must use <c>StringValue</c>.
/// </para>
///
/// <para>
/// You can also append custom labels. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon
/// SQS Message Attributes</a> in the <i>Amazon SQS Developer Guide</i>.
/// </para>
/// </summary>
[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;
}
/// <summary>
/// Gets and sets the property StringListValues.
/// <para>
/// Not implemented. Reserved for future use.
/// </para>
/// </summary>
public List<string> 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 || !AWSConfigs.InitializeCollections);
}
/// <summary>
/// Gets and sets the property StringValue.
/// <para>
/// Strings are Unicode with UTF-8 binary encoding. For a list of code values, see <a
/// href="http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters">ASCII Printable
/// Characters</a>.
/// </para>
/// </summary>
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;
}
}
}