/* * 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.dynamodbv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A PartiQL batch statement response.. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BatchStatementResponse implements Serializable, Cloneable, StructuredPojo { /** ** The error associated with a failed PartiQL batch statement. *
*/ private BatchStatementError error; /** ** The table name associated with a failed PartiQL batch statement. *
*/ private String tableName; /** ** A DynamoDB item associated with a BatchStatementResponse *
*/ private java.util.Map* The error associated with a failed PartiQL batch statement. *
* * @param error * The error associated with a failed PartiQL batch statement. */ public void setError(BatchStatementError error) { this.error = error; } /** ** The error associated with a failed PartiQL batch statement. *
* * @return The error associated with a failed PartiQL batch statement. */ public BatchStatementError getError() { return this.error; } /** ** The error associated with a failed PartiQL batch statement. *
* * @param error * The error associated with a failed PartiQL batch statement. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchStatementResponse withError(BatchStatementError error) { setError(error); return this; } /** ** The table name associated with a failed PartiQL batch statement. *
* * @param tableName * The table name associated with a failed PartiQL batch statement. */ public void setTableName(String tableName) { this.tableName = tableName; } /** ** The table name associated with a failed PartiQL batch statement. *
* * @return The table name associated with a failed PartiQL batch statement. */ public String getTableName() { return this.tableName; } /** ** The table name associated with a failed PartiQL batch statement. *
* * @param tableName * The table name associated with a failed PartiQL batch statement. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchStatementResponse withTableName(String tableName) { setTableName(tableName); return this; } /** ** A DynamoDB item associated with a BatchStatementResponse *
* * @return A DynamoDB item associated with a BatchStatementResponse */ public java.util.Map* A DynamoDB item associated with a BatchStatementResponse *
* * @param item * A DynamoDB item associated with a BatchStatementResponse */ public void setItem(java.util.Map* A DynamoDB item associated with a BatchStatementResponse *
* * @param item * A DynamoDB item associated with a BatchStatementResponse * @return Returns a reference to this object so that method calls can be chained together. */ public BatchStatementResponse withItem(java.util.Map