/*
* 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 reference data source
/// by providing the source information (Amazon S3 bucket name and object key name), the
/// resulting in-application table name that is created, and the necessary schema to map
/// the data elements in the Amazon S3 object to the in-application table.
///
public partial class ReferenceDataSource
{
private SourceSchema _referenceSchema;
private S3ReferenceDataSource _s3ReferenceDataSource;
private string _tableName;
///
/// Gets and sets the property ReferenceSchema.
///
/// 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.
///
///
[AWSProperty(Required=true)]
public SourceSchema ReferenceSchema
{
get { return this._referenceSchema; }
set { this._referenceSchema = value; }
}
// Check to see if ReferenceSchema property is set
internal bool IsSetReferenceSchema()
{
return this._referenceSchema != null;
}
///
/// Gets and sets the property S3ReferenceDataSource.
///
/// Identifies the S3 bucket and object that contains the reference data. A Kinesis Data
/// Analytics application loads reference data only once. If the data changes, you call
/// the UpdateApplication operation to trigger reloading of data into your application.
///
///
///
public S3ReferenceDataSource S3ReferenceDataSource
{
get { return this._s3ReferenceDataSource; }
set { this._s3ReferenceDataSource = value; }
}
// Check to see if S3ReferenceDataSource property is set
internal bool IsSetS3ReferenceDataSource()
{
return this._s3ReferenceDataSource != null;
}
///
/// Gets and sets the property TableName.
///
/// The name of the in-application table to create.
///
///
[AWSProperty(Required=true, Min=1, Max=32)]
public string TableName
{
get { return this._tableName; }
set { this._tableName = value; }
}
// Check to see if TableName property is set
internal bool IsSetTableName()
{
return this._tableName != null;
}
}
}