/*
* 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 kinesisanalyticsv2-2018-05-23.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.KinesisAnalyticsV2.Model
{
///
/// For a SQL-based Kinesis Data Analytics application, describes the format of the data
/// in the streaming source, and how each data element maps to corresponding columns created
/// in the in-application stream.
///
public partial class SourceSchema
{
private List _recordColumns = new List();
private string _recordEncoding;
private RecordFormat _recordFormat;
///
/// Gets and sets the property RecordColumns.
///
/// A list of RecordColumn
objects.
///
///
[AWSProperty(Required=true, Min=1, Max=1000)]
public List RecordColumns
{
get { return this._recordColumns; }
set { this._recordColumns = value; }
}
// Check to see if RecordColumns property is set
internal bool IsSetRecordColumns()
{
return this._recordColumns != null && this._recordColumns.Count > 0;
}
///
/// Gets and sets the property RecordEncoding.
///
/// Specifies the encoding of the records in the streaming source. For example, UTF-8.
///
///
[AWSProperty(Min=5, Max=5)]
public string RecordEncoding
{
get { return this._recordEncoding; }
set { this._recordEncoding = value; }
}
// Check to see if RecordEncoding property is set
internal bool IsSetRecordEncoding()
{
return this._recordEncoding != null;
}
///
/// Gets and sets the property RecordFormat.
///
/// Specifies the format of the records on the streaming source.
///
///
[AWSProperty(Required=true)]
public RecordFormat RecordFormat
{
get { return this._recordFormat; }
set { this._recordFormat = value; }
}
// Check to see if RecordFormat property is set
internal bool IsSetRecordFormat()
{
return this._recordFormat != null;
}
}
}