/*
* 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 kinesis-2013-12-02.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.Kinesis.Model
{
///
/// PutRecords
results.
///
public partial class PutRecordsResponse : AmazonWebServiceResponse
{
private EncryptionType _encryptionType;
private int? _failedRecordCount;
private List _records = new List();
///
/// Gets and sets the property EncryptionType.
///
/// The encryption type used on the records. This parameter can be one of the following
/// values:
///
/// -
///
///
NONE
: Do not encrypt the records.
///
/// -
///
///
KMS
: Use server-side encryption on the records using a customer-managed
/// AWS KMS key.
///
///
///
public EncryptionType EncryptionType
{
get { return this._encryptionType; }
set { this._encryptionType = value; }
}
// Check to see if EncryptionType property is set
internal bool IsSetEncryptionType()
{
return this._encryptionType != null;
}
///
/// Gets and sets the property FailedRecordCount.
///
/// The number of unsuccessfully processed records in a PutRecords
request.
///
///
[AWSProperty(Min=1, Max=100000)]
public int FailedRecordCount
{
get { return this._failedRecordCount.GetValueOrDefault(); }
set { this._failedRecordCount = value; }
}
// Check to see if FailedRecordCount property is set
internal bool IsSetFailedRecordCount()
{
return this._failedRecordCount.HasValue;
}
///
/// Gets and sets the property Records.
///
/// An array of successfully and unsuccessfully processed record results, correlated with
/// the request by natural ordering. A record that is successfully added to a stream includes
/// SequenceNumber
and ShardId
in the result. A record that
/// fails to be added to a stream includes ErrorCode
and ErrorMessage
/// in the result.
///
///
[AWSProperty(Required=true, Min=1, Max=500)]
public List Records
{
get { return this._records; }
set { this._records = value; }
}
// Check to see if Records property is set
internal bool IsSetRecords()
{
return this._records != null && this._records.Count > 0;
}
}
}