/* * Copyright 2012-2017 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.kinesisanalytics.model; import javax.annotation.Generated; /** * <p> * Data format is not valid, Kinesis Analytics is not able to detect schema for the given streaming source. * </p> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UnableToDetectSchemaException extends com.amazonaws.services.kinesisanalytics.model.AmazonKinesisAnalyticsException { private static final long serialVersionUID = 1L; private java.util.List<String> rawInputRecords; /** * Constructs a new UnableToDetectSchemaException with the specified error message. * * @param message * Describes the error encountered. */ public UnableToDetectSchemaException(String message) { super(message); } /** * @return */ @com.fasterxml.jackson.annotation.JsonProperty("RawInputRecords") public java.util.List<String> getRawInputRecords() { return rawInputRecords; } /** * @param rawInputRecords */ @com.fasterxml.jackson.annotation.JsonProperty("RawInputRecords") public void setRawInputRecords(java.util.Collection<String> rawInputRecords) { if (rawInputRecords == null) { this.rawInputRecords = null; return; } this.rawInputRecords = new java.util.ArrayList<String>(rawInputRecords); } /** * <p> * <b>NOTE:</b> 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. * </p> * * @param rawInputRecords * @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<String>(rawInputRecords.length)); } for (String ele : rawInputRecords) { this.rawInputRecords.add(ele); } return this; } /** * @param rawInputRecords * @return Returns a reference to this object so that method calls can be chained together. */ public UnableToDetectSchemaException withRawInputRecords(java.util.Collection<String> rawInputRecords) { setRawInputRecords(rawInputRecords); return this; } }