All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.dynamodbv2.model.TransactionCanceledException Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DynamoDB module holds the client classes that are used for communicating with Amazon DynamoDB Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2014-2019 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 javax.annotation.Generated;

/**
 * 

* The entire transaction request was rejected. *

*

* DynamoDB rejects a TransactWriteItems request under the following circumstances: *

*
    *
  • *

    * A condition in one of the condition expressions is not met. *

    *
  • *
  • *

    * A table in the TransactWriteItems request is in a different account or region. *

    *
  • *
  • *

    * More than one action in the TransactWriteItems operation targets the same item. *

    *
  • *
  • *

    * There is insufficient provisioned capacity for the transaction to be completed. *

    *
  • *
  • *

    * An item size becomes too large (larger than 400 KB), or a local secondary index (LSI) becomes too large, or a similar * validation error occurs because of changes made by the transaction. *

    *
  • *
  • *

    * There is a user error, such as an invalid data format. *

    *
  • *
*

* DynamoDB rejects a TransactGetItems request under the following circumstances: *

*
    *
  • *

    * There is an ongoing TransactGetItems operation that conflicts with a concurrent PutItem, * UpdateItem, DeleteItem or TransactWriteItems request. In this case the * TransactGetItems operation fails with a TransactionCanceledException. *

    *
  • *
  • *

    * A table in the TransactGetItems request is in a different account or region. *

    *
  • *
  • *

    * There is insufficient provisioned capacity for the transaction to be completed. *

    *
  • *
  • *

    * There is a user error, such as an invalid data format. *

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

* A list of cancellation reasons. *

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

* A list of cancellation reasons. *

* * @return A list of cancellation reasons. */ @com.fasterxml.jackson.annotation.JsonProperty("CancellationReasons") public java.util.List getCancellationReasons() { return cancellationReasons; } /** *

* A list of cancellation reasons. *

* * @param cancellationReasons * A list of cancellation reasons. */ @com.fasterxml.jackson.annotation.JsonProperty("CancellationReasons") public void setCancellationReasons(java.util.Collection cancellationReasons) { if (cancellationReasons == null) { this.cancellationReasons = null; return; } this.cancellationReasons = new java.util.ArrayList(cancellationReasons); } /** *

* A list of cancellation reasons. *

*

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

* * @param cancellationReasons * A list of cancellation reasons. * @return Returns a reference to this object so that method calls can be chained together. */ public TransactionCanceledException withCancellationReasons(CancellationReason... cancellationReasons) { if (this.cancellationReasons == null) { setCancellationReasons(new java.util.ArrayList(cancellationReasons.length)); } for (CancellationReason ele : cancellationReasons) { this.cancellationReasons.add(ele); } return this; } /** *

* A list of cancellation reasons. *

* * @param cancellationReasons * A list of cancellation reasons. * @return Returns a reference to this object so that method calls can be chained together. */ public TransactionCanceledException withCancellationReasons(java.util.Collection cancellationReasons) { setCancellationReasons(cancellationReasons); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy