/* * 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 timestream-write-2018-11-01.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.TimestreamWrite.Model { /// /// Represents records that were not successfully inserted into Timestream due to data /// validation issues that must be resolved before reinserting time-series data into the /// system. /// public partial class RejectedRecord { private long? _existingVersion; private string _reason; private int? _recordIndex; /// /// Gets and sets the property ExistingVersion. /// /// The existing version of the record. This value is populated in scenarios where an /// identical record exists with a higher version than the version in the write request. /// /// public long ExistingVersion { get { return this._existingVersion.GetValueOrDefault(); } set { this._existingVersion = value; } } // Check to see if ExistingVersion property is set internal bool IsSetExistingVersion() { return this._existingVersion.HasValue; } /// /// Gets and sets the property Reason. /// /// The reason why a record was not successfully inserted into Timestream. Possible causes /// of failure include: /// /// /// /// For more information, see Access /// Management in the Timestream Developer Guide. /// /// public string Reason { get { return this._reason; } set { this._reason = value; } } // Check to see if Reason property is set internal bool IsSetReason() { return this._reason != null; } /// /// Gets and sets the property RecordIndex. /// /// The index of the record in the input request for WriteRecords. Indexes begin with /// 0. /// /// public int RecordIndex { get { return this._recordIndex.GetValueOrDefault(); } set { this._recordIndex = value; } } // Check to see if RecordIndex property is set internal bool IsSetRecordIndex() { return this._recordIndex.HasValue; } } }