/* * 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 pipes-2015-10-07.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.Pipes.Model { /// /// The parameters for using a Kinesis stream as a source. /// public partial class PipeSourceKinesisStreamParameters { private int? _batchSize; private DeadLetterConfig _deadLetterConfig; private int? _maximumBatchingWindowInSeconds; private int? _maximumRecordAgeInSeconds; private int? _maximumRetryAttempts; private OnPartialBatchItemFailureStreams _onPartialBatchItemFailure; private int? _parallelizationFactor; private KinesisStreamStartPosition _startingPosition; private DateTime? _startingPositionTimestamp; /// /// Gets and sets the property BatchSize. /// /// The maximum number of records to include in each batch. /// /// [AWSProperty(Min=1, Max=10000)] public int BatchSize { get { return this._batchSize.GetValueOrDefault(); } set { this._batchSize = value; } } // Check to see if BatchSize property is set internal bool IsSetBatchSize() { return this._batchSize.HasValue; } /// /// Gets and sets the property DeadLetterConfig. /// /// Define the target queue to send dead-letter queue events to. /// /// public DeadLetterConfig DeadLetterConfig { get { return this._deadLetterConfig; } set { this._deadLetterConfig = value; } } // Check to see if DeadLetterConfig property is set internal bool IsSetDeadLetterConfig() { return this._deadLetterConfig != null; } /// /// Gets and sets the property MaximumBatchingWindowInSeconds. /// /// The maximum length of a time to wait for events. /// /// [AWSProperty(Min=0, Max=300)] public int MaximumBatchingWindowInSeconds { get { return this._maximumBatchingWindowInSeconds.GetValueOrDefault(); } set { this._maximumBatchingWindowInSeconds = value; } } // Check to see if MaximumBatchingWindowInSeconds property is set internal bool IsSetMaximumBatchingWindowInSeconds() { return this._maximumBatchingWindowInSeconds.HasValue; } /// /// Gets and sets the property MaximumRecordAgeInSeconds. /// /// (Streams only) Discard records older than the specified age. The default value is /// -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge /// never discards old records. /// /// [AWSProperty(Min=-1, Max=604800)] public int MaximumRecordAgeInSeconds { get { return this._maximumRecordAgeInSeconds.GetValueOrDefault(); } set { this._maximumRecordAgeInSeconds = value; } } // Check to see if MaximumRecordAgeInSeconds property is set internal bool IsSetMaximumRecordAgeInSeconds() { return this._maximumRecordAgeInSeconds.HasValue; } /// /// Gets and sets the property MaximumRetryAttempts. /// /// (Streams only) Discard records after the specified number of retries. The default /// value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts /// is infinite, EventBridge retries failed records until the record expires in the event /// source. /// /// [AWSProperty(Min=-1, Max=10000)] public int MaximumRetryAttempts { get { return this._maximumRetryAttempts.GetValueOrDefault(); } set { this._maximumRetryAttempts = value; } } // Check to see if MaximumRetryAttempts property is set internal bool IsSetMaximumRetryAttempts() { return this._maximumRetryAttempts.HasValue; } /// /// Gets and sets the property OnPartialBatchItemFailure. /// /// (Streams only) Define how to handle item process failures. AUTOMATIC_BISECT /// halves each batch and retry each half until all the records are processed or there /// is one failed message left in the batch. /// /// public OnPartialBatchItemFailureStreams OnPartialBatchItemFailure { get { return this._onPartialBatchItemFailure; } set { this._onPartialBatchItemFailure = value; } } // Check to see if OnPartialBatchItemFailure property is set internal bool IsSetOnPartialBatchItemFailure() { return this._onPartialBatchItemFailure != null; } /// /// Gets and sets the property ParallelizationFactor. /// /// (Streams only) The number of batches to process concurrently from each shard. The /// default value is 1. /// /// [AWSProperty(Min=1, Max=10)] public int ParallelizationFactor { get { return this._parallelizationFactor.GetValueOrDefault(); } set { this._parallelizationFactor = value; } } // Check to see if ParallelizationFactor property is set internal bool IsSetParallelizationFactor() { return this._parallelizationFactor.HasValue; } /// /// Gets and sets the property StartingPosition. /// /// (Streams only) The position in a stream from which to start reading. /// /// [AWSProperty(Required=true)] public KinesisStreamStartPosition StartingPosition { get { return this._startingPosition; } set { this._startingPosition = value; } } // Check to see if StartingPosition property is set internal bool IsSetStartingPosition() { return this._startingPosition != null; } /// /// Gets and sets the property StartingPositionTimestamp. /// /// With StartingPosition set to AT_TIMESTAMP, the time from /// which to start reading, in Unix time seconds. /// /// public DateTime StartingPositionTimestamp { get { return this._startingPositionTimestamp.GetValueOrDefault(); } set { this._startingPositionTimestamp = value; } } // Check to see if StartingPositionTimestamp property is set internal bool IsSetStartingPositionTimestamp() { return this._startingPositionTimestamp.HasValue; } } }