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

com.amazonaws.services.timestreamwrite.model.RejectedRecordsException Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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.timestreamwrite.model;

import javax.annotation.Generated;

/**
 * 

* WriteRecords would throw this exception in the following cases: *

*
    *
  • *

    * Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names * but: *

    *
      *
    • *

      * Measure values are different *

      *
    • *
    • *

      * Version is not present in the request or the value of version in the new record is equal to or lower than the * existing value *

      *
    • *
    *

    * In this case, if Timestream rejects data, the ExistingVersion field in the RejectedRecords * response will indicate the current record’s version. To force an update, you can resend the request with a version * for the record set to a value greater than the ExistingVersion. *

    *
  • *
  • *

    * Records with timestamps that lie outside the retention duration of the memory store. *

    *
  • *
  • *

    * Records with dimensions or measures that exceed the Timestream defined limits. *

    *
  • *
*

* For more information, see Quotas in the Amazon * Timestream Developer Guide. *

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

*

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

*

* * @return */ @com.fasterxml.jackson.annotation.JsonProperty("RejectedRecords") public java.util.List getRejectedRecords() { return rejectedRecords; } /** *

*

* * @param rejectedRecords */ @com.fasterxml.jackson.annotation.JsonProperty("RejectedRecords") public void setRejectedRecords(java.util.Collection rejectedRecords) { if (rejectedRecords == null) { this.rejectedRecords = null; return; } this.rejectedRecords = new java.util.ArrayList(rejectedRecords); } /** *

*

*

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

* * @param rejectedRecords * @return Returns a reference to this object so that method calls can be chained together. */ public RejectedRecordsException withRejectedRecords(RejectedRecord... rejectedRecords) { if (this.rejectedRecords == null) { setRejectedRecords(new java.util.ArrayList(rejectedRecords.length)); } for (RejectedRecord ele : rejectedRecords) { this.rejectedRecords.add(ele); } return this; } /** *

*

* * @param rejectedRecords * @return Returns a reference to this object so that method calls can be chained together. */ public RejectedRecordsException withRejectedRecords(java.util.Collection rejectedRecords) { setRejectedRecords(rejectedRecords); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy