@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SourceSchema extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
SourceSchema() |
Modifier and Type | Method and Description |
---|---|
SourceSchema |
clone() |
boolean |
equals(Object obj) |
List<RecordColumn> |
getRecordColumns()
A list of
RecordColumn objects. |
String |
getRecordEncoding()
Specifies the encoding of the records in the streaming source.
|
RecordFormat |
getRecordFormat()
Specifies the format of the records on the streaming source.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRecordColumns(Collection<RecordColumn> recordColumns)
A list of
RecordColumn objects. |
void |
setRecordEncoding(String recordEncoding)
Specifies the encoding of the records in the streaming source.
|
void |
setRecordFormat(RecordFormat recordFormat)
Specifies the format of the records on the streaming source.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SourceSchema |
withRecordColumns(Collection<RecordColumn> recordColumns)
A list of
RecordColumn objects. |
SourceSchema |
withRecordColumns(RecordColumn... recordColumns)
A list of
RecordColumn objects. |
SourceSchema |
withRecordEncoding(String recordEncoding)
Specifies the encoding of the records in the streaming source.
|
SourceSchema |
withRecordFormat(RecordFormat recordFormat)
Specifies the format of the records on the streaming source.
|
public void setRecordFormat(RecordFormat recordFormat)
Specifies the format of the records on the streaming source.
recordFormat
- Specifies the format of the records on the streaming source.public RecordFormat getRecordFormat()
Specifies the format of the records on the streaming source.
public SourceSchema withRecordFormat(RecordFormat recordFormat)
Specifies the format of the records on the streaming source.
recordFormat
- Specifies the format of the records on the streaming source.public void setRecordEncoding(String recordEncoding)
Specifies the encoding of the records in the streaming source. For example, UTF-8.
recordEncoding
- Specifies the encoding of the records in the streaming source. For example, UTF-8.public String getRecordEncoding()
Specifies the encoding of the records in the streaming source. For example, UTF-8.
public SourceSchema withRecordEncoding(String recordEncoding)
Specifies the encoding of the records in the streaming source. For example, UTF-8.
recordEncoding
- Specifies the encoding of the records in the streaming source. For example, UTF-8.public List<RecordColumn> getRecordColumns()
A list of RecordColumn
objects.
RecordColumn
objects.public void setRecordColumns(Collection<RecordColumn> recordColumns)
A list of RecordColumn
objects.
recordColumns
- A list of RecordColumn
objects.public SourceSchema withRecordColumns(RecordColumn... recordColumns)
A list of RecordColumn
objects.
NOTE: This method appends the values to the existing list (if any). Use
setRecordColumns(java.util.Collection)
or withRecordColumns(java.util.Collection)
if you want
to override the existing values.
recordColumns
- A list of RecordColumn
objects.public SourceSchema withRecordColumns(Collection<RecordColumn> recordColumns)
A list of RecordColumn
objects.
recordColumns
- A list of RecordColumn
objects.public String toString()
toString
in class Object
Object.toString()
public SourceSchema clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.