-
Notifications
You must be signed in to change notification settings - Fork 481
/
Copy pathKinesisAnalyticsInputPreprocessingResponse.cs
93 lines (84 loc) · 2.76 KB
/
KinesisAnalyticsInputPreprocessingResponse.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
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Amazon.Lambda.KinesisAnalyticsEvents
{
/// <summary>
/// This class represents the response from Lambda function for Kinesis Analytics input preprocessing.
/// </summary>
[DataContract]
public class KinesisAnalyticsInputPreprocessingResponse
{
/// <summary>
/// The record was preprocessed successfully.
/// </summary>
public const string OK = "Ok";
/// <summary>
/// The record was dropped intentionally by your processing logic.
/// </summary>
public const string DROPPED = "Dropped";
/// <summary>
/// The record could not be preprocessed.
/// </summary>
public const string PROCESSINGFAILED = "ProcessingFailed";
/// <summary>
/// Gets or sets the records.
/// </summary>
/// <value>
/// The records.
/// </value>
[DataMember(Name = "records")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("records")]
#endif
public IList<Record> Records { get; set; }
/// <summary>
///
/// </summary>
[DataContract]
public class Record
{
/// <summary>
/// Gets or sets the record identifier.
/// </summary>
/// <value>
/// The record identifier.
/// </value>
[DataMember(Name = "recordId")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("recordId")]
#endif
public string RecordId { get; set; }
/// <summary>
/// Gets or sets the result.
/// </summary>
/// <value>
/// The result.
/// </value>
[DataMember(Name = "result")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("result")]
#endif
public string Result { get; set; }
/// <summary>
/// Gets or sets the base64 encoded data.
/// </summary>
/// <value>
/// The base64 encoded data.
/// </value>
[DataMember(Name = "data")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("data")]
#endif
public string Base64EncodedData { get; set; }
/// <summary>
/// Encodes the data.
/// </summary>
/// <param name="data">The data.</param>
public void EncodeData(string data)
{
this.Base64EncodedData = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(data));
}
}
}
}