/* * 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; /** *
* Describes updates for an SQL-based Kinesis Data Analytics application's input schema. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InputSchemaUpdate implements Serializable, Cloneable, StructuredPojo { /** ** Specifies the format of the records on the streaming source. *
*/ private RecordFormat recordFormatUpdate; /** ** Specifies the encoding of the records in the streaming source; for example, UTF-8. *
*/ private String recordEncodingUpdate; /** *
* A list of RecordColumn
objects. Each object describes the mapping of the streaming source element to
* the corresponding column in the in-application stream.
*
* Specifies the format of the records on the streaming source. *
* * @param recordFormatUpdate * Specifies the format of the records on the streaming source. */ public void setRecordFormatUpdate(RecordFormat recordFormatUpdate) { this.recordFormatUpdate = recordFormatUpdate; } /** ** Specifies the format of the records on the streaming source. *
* * @return Specifies the format of the records on the streaming source. */ public RecordFormat getRecordFormatUpdate() { return this.recordFormatUpdate; } /** ** Specifies the format of the records on the streaming source. *
* * @param recordFormatUpdate * 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 InputSchemaUpdate withRecordFormatUpdate(RecordFormat recordFormatUpdate) { setRecordFormatUpdate(recordFormatUpdate); return this; } /** ** Specifies the encoding of the records in the streaming source; for example, UTF-8. *
* * @param recordEncodingUpdate * Specifies the encoding of the records in the streaming source; for example, UTF-8. */ public void setRecordEncodingUpdate(String recordEncodingUpdate) { this.recordEncodingUpdate = recordEncodingUpdate; } /** ** 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 getRecordEncodingUpdate() { return this.recordEncodingUpdate; } /** ** Specifies the encoding of the records in the streaming source; for example, UTF-8. *
* * @param recordEncodingUpdate * 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 InputSchemaUpdate withRecordEncodingUpdate(String recordEncodingUpdate) { setRecordEncodingUpdate(recordEncodingUpdate); return this; } /** *
* A list of RecordColumn
objects. Each object describes the mapping of the streaming source element to
* the corresponding column in the in-application stream.
*
RecordColumn
objects. Each object describes the mapping of the streaming source
* element to the corresponding column in the in-application stream.
*/
public java.util.List
* A list of RecordColumn
objects. Each object describes the mapping of the streaming source element to
* the corresponding column in the in-application stream.
*
RecordColumn
objects. Each object describes the mapping of the streaming source
* element to the corresponding column in the in-application stream.
*/
public void setRecordColumnUpdates(java.util.Collection
* A list of RecordColumn
objects. Each object describes the mapping of the streaming source element to
* the corresponding column in the in-application stream.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setRecordColumnUpdates(java.util.Collection)} or {@link #withRecordColumnUpdates(java.util.Collection)} * if you want to override the existing values. *
* * @param recordColumnUpdates * A list ofRecordColumn
objects. Each object describes the mapping of the streaming source
* element to the corresponding column in the in-application stream.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InputSchemaUpdate withRecordColumnUpdates(RecordColumn... recordColumnUpdates) {
if (this.recordColumnUpdates == null) {
setRecordColumnUpdates(new java.util.ArrayList
* A list of RecordColumn
objects. Each object describes the mapping of the streaming source element to
* the corresponding column in the in-application stream.
*
RecordColumn
objects. Each object describes the mapping of the streaming source
* element to the corresponding column in the in-application stream.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InputSchemaUpdate withRecordColumnUpdates(java.util.Collection