/* * 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 javax.annotation.Generated; /** *

* The data format is not valid. Kinesis Data Analytics cannot detect the schema for the given streaming source. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UnableToDetectSchemaException extends com.amazonaws.services.kinesisanalyticsv2.model.AmazonKinesisAnalyticsV2Exception { private static final long serialVersionUID = 1L; /** *

* Raw stream data that was sampled to infer the schema. *

*/ private java.util.List rawInputRecords; /** *

* Stream data that was modified by the processor specified in the InputProcessingConfiguration * parameter. *

*/ private java.util.List processedInputRecords; /** * Constructs a new UnableToDetectSchemaException with the specified error message. * * @param message * Describes the error encountered. */ public UnableToDetectSchemaException(String message) { super(message); } /** *

* Raw stream data that was sampled to infer the schema. *

* * @return Raw stream data that was sampled to infer the schema. */ @com.fasterxml.jackson.annotation.JsonProperty("RawInputRecords") public java.util.List getRawInputRecords() { return rawInputRecords; } /** *

* Raw stream data that was sampled to infer the schema. *

* * @param rawInputRecords * Raw stream data that was sampled to infer the schema. */ @com.fasterxml.jackson.annotation.JsonProperty("RawInputRecords") public void setRawInputRecords(java.util.Collection rawInputRecords) { if (rawInputRecords == null) { this.rawInputRecords = null; return; } this.rawInputRecords = new java.util.ArrayList(rawInputRecords); } /** *

* Raw stream data that was sampled to infer the schema. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setRawInputRecords(java.util.Collection)} or {@link #withRawInputRecords(java.util.Collection)} if you * want to override the existing values. *

* * @param rawInputRecords * Raw stream data that was sampled to infer the schema. * @return Returns a reference to this object so that method calls can be chained together. */ public UnableToDetectSchemaException withRawInputRecords(String... rawInputRecords) { if (this.rawInputRecords == null) { setRawInputRecords(new java.util.ArrayList(rawInputRecords.length)); } for (String ele : rawInputRecords) { this.rawInputRecords.add(ele); } return this; } /** *

* Raw stream data that was sampled to infer the schema. *

* * @param rawInputRecords * Raw stream data that was sampled to infer the schema. * @return Returns a reference to this object so that method calls can be chained together. */ public UnableToDetectSchemaException withRawInputRecords(java.util.Collection rawInputRecords) { setRawInputRecords(rawInputRecords); return this; } /** *

* Stream data that was modified by the processor specified in the InputProcessingConfiguration * parameter. *

* * @return Stream data that was modified by the processor specified in the InputProcessingConfiguration * parameter. */ @com.fasterxml.jackson.annotation.JsonProperty("ProcessedInputRecords") public java.util.List getProcessedInputRecords() { return processedInputRecords; } /** *

* Stream data that was modified by the processor specified in the InputProcessingConfiguration * parameter. *

* * @param processedInputRecords * Stream data that was modified by the processor specified in the InputProcessingConfiguration * parameter. */ @com.fasterxml.jackson.annotation.JsonProperty("ProcessedInputRecords") public void setProcessedInputRecords(java.util.Collection processedInputRecords) { if (processedInputRecords == null) { this.processedInputRecords = null; return; } this.processedInputRecords = new java.util.ArrayList(processedInputRecords); } /** *

* Stream data that was modified by the processor specified in the InputProcessingConfiguration * parameter. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setProcessedInputRecords(java.util.Collection)} or * {@link #withProcessedInputRecords(java.util.Collection)} if you want to override the existing values. *

* * @param processedInputRecords * Stream data that was modified by the processor specified in the InputProcessingConfiguration * parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public UnableToDetectSchemaException withProcessedInputRecords(String... processedInputRecords) { if (this.processedInputRecords == null) { setProcessedInputRecords(new java.util.ArrayList(processedInputRecords.length)); } for (String ele : processedInputRecords) { this.processedInputRecords.add(ele); } return this; } /** *

* Stream data that was modified by the processor specified in the InputProcessingConfiguration * parameter. *

* * @param processedInputRecords * Stream data that was modified by the processor specified in the InputProcessingConfiguration * parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public UnableToDetectSchemaException withProcessedInputRecords(java.util.Collection processedInputRecords) { setProcessedInputRecords(processedInputRecords); return this; } }