/* * 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; /** *

* Represents all of the data describing a particular stream. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StreamDescription implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Resource Name (ARN) for the stream. *

*/ private String streamArn; /** *

* A timestamp, in ISO 8601 format, for this stream. *

*

* Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a * stream from another table might have the same timestamp. However, the combination of the following three elements * is guaranteed to be unique: *

* */ private String streamLabel; /** *

* Indicates the current status of the stream: *

* */ private String streamStatus; /** *

* Indicates the format of the records within this stream: *

* */ private String streamViewType; /** *

* The date and time when the request to create this stream was issued. *

*/ private java.util.Date creationRequestDateTime; /** *

* The DynamoDB table with which the stream is associated. *

*/ private String tableName; /** *

* The key attribute(s) of the stream's DynamoDB table. *

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

* The shards that comprise the stream. *

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

* The shard ID of the item where the operation stopped, inclusive of the previous result set. Use this value to * start a new operation, excluding this value in the new request. *

*

* If LastEvaluatedShardId is empty, then the "last page" of results has been processed and there is * currently no more data to be retrieved. *

*

* If LastEvaluatedShardId is not empty, it does not necessarily mean that there is more data in the * result set. The only way to know when you have reached the end of the result set is when * LastEvaluatedShardId is empty. *

*/ private String lastEvaluatedShardId; /** *

* The Amazon Resource Name (ARN) for the stream. *

* * @param streamArn * The Amazon Resource Name (ARN) for the stream. */ public void setStreamArn(String streamArn) { this.streamArn = streamArn; } /** *

* The Amazon Resource Name (ARN) for the stream. *

* * @return The Amazon Resource Name (ARN) for the stream. */ public String getStreamArn() { return this.streamArn; } /** *

* The Amazon Resource Name (ARN) for the stream. *

* * @param streamArn * The Amazon Resource Name (ARN) for the stream. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamDescription withStreamArn(String streamArn) { setStreamArn(streamArn); return this; } /** *

* A timestamp, in ISO 8601 format, for this stream. *

*

* Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a * stream from another table might have the same timestamp. However, the combination of the following three elements * is guaranteed to be unique: *

* * * @param streamLabel * A timestamp, in ISO 8601 format, for this stream.

*

* Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible * that a stream from another table might have the same timestamp. However, the combination of the following * three elements is guaranteed to be unique: *

*