/* * Copyright 2018-2023 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. */ package com.amazonaws.services.kinesisanalyticsv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SourceSchema implements Serializable, Cloneable, StructuredPojo { /** ** Specifies the format of the records on the streaming source. *
*/ private RecordFormat recordFormat; /** ** Specifies the encoding of the records in the streaming source. For example, UTF-8. *
*/ private String recordEncoding; /** *
* A list of RecordColumn
objects.
*
* Specifies the format of the records on the streaming source. *
* * @param recordFormat * Specifies the format of the records on the streaming source. */ public void setRecordFormat(RecordFormat recordFormat) { this.recordFormat = recordFormat; } /** ** Specifies the format of the records on the streaming source. *
* * @return Specifies the format of the records on the streaming source. */ public RecordFormat getRecordFormat() { return this.recordFormat; } /** ** Specifies the format of the records on the streaming source. *
* * @param recordFormat * Specifies the format of the records on the streaming source. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceSchema withRecordFormat(RecordFormat recordFormat) { setRecordFormat(recordFormat); return this; } /** ** Specifies the encoding of the records in the streaming source. For example, UTF-8. *
* * @param recordEncoding * Specifies the encoding of the records in the streaming source. For example, UTF-8. */ public void setRecordEncoding(String recordEncoding) { this.recordEncoding = recordEncoding; } /** ** Specifies the encoding of the records in the streaming source. For example, UTF-8. *
* * @return Specifies the encoding of the records in the streaming source. For example, UTF-8. */ public String getRecordEncoding() { return this.recordEncoding; } /** ** Specifies the encoding of the records in the streaming source. For example, UTF-8. *
* * @param recordEncoding * Specifies the encoding of the records in the streaming source. For example, UTF-8. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceSchema withRecordEncoding(String recordEncoding) { setRecordEncoding(recordEncoding); return this; } /** *
* A list of RecordColumn
objects.
*
RecordColumn
objects.
*/
public java.util.List
* A list of RecordColumn
objects.
*
RecordColumn
objects.
*/
public void setRecordColumns(java.util.Collection
* A list of RecordColumn
objects.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setRecordColumns(java.util.Collection)} or {@link #withRecordColumns(java.util.Collection)} if you want * to override the existing values. *
* * @param recordColumns * A list ofRecordColumn
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SourceSchema withRecordColumns(RecordColumn... recordColumns) {
if (this.recordColumns == null) {
setRecordColumns(new java.util.ArrayList
* A list of RecordColumn
objects.
*
RecordColumn
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SourceSchema withRecordColumns(java.util.Collection