public class IncreaseStreamRetentionPeriodRequest extends AmazonWebServiceRequest implements java.io.Serializable
Increases the Kinesis data stream's retention period, which is the length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 168 hours (7 days).
If you choose a longer stream retention period, this operation increases the time period during which records that have not yet expired are accessible. However, it does not make previous, expired data (older than the stream's previous retention period) accessible after the operation has been called. For example, if a stream's retention period is set to 24 hours and is increased to 168 hours, any data that is older than 24 hours remains inaccessible to consumer applications.
Constructor and Description |
---|
IncreaseStreamRetentionPeriodRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getRetentionPeriodHours()
The new retention period of the stream, in hours.
|
java.lang.String |
getStreamName()
The name of the stream to modify.
|
int |
hashCode() |
void |
setRetentionPeriodHours(java.lang.Integer retentionPeriodHours)
The new retention period of the stream, in hours.
|
void |
setStreamName(java.lang.String streamName)
The name of the stream to modify.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IncreaseStreamRetentionPeriodRequest |
withRetentionPeriodHours(java.lang.Integer retentionPeriodHours)
The new retention period of the stream, in hours.
|
IncreaseStreamRetentionPeriodRequest |
withStreamName(java.lang.String streamName)
The name of the stream to modify.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public IncreaseStreamRetentionPeriodRequest()
public java.lang.String getStreamName()
The name of the stream to modify.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The name of the stream to modify.
public void setStreamName(java.lang.String streamName)
The name of the stream to modify.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
streamName
- The name of the stream to modify.
public IncreaseStreamRetentionPeriodRequest withStreamName(java.lang.String streamName)
The name of the stream to modify.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
streamName
- The name of the stream to modify.
public java.lang.Integer getRetentionPeriodHours()
The new retention period of the stream, in hours. Must be more than the current retention period.
Constraints:
Range: 1 - 168
The new retention period of the stream, in hours. Must be more than the current retention period.
public void setRetentionPeriodHours(java.lang.Integer retentionPeriodHours)
The new retention period of the stream, in hours. Must be more than the current retention period.
Constraints:
Range: 1 - 168
retentionPeriodHours
- The new retention period of the stream, in hours. Must be more than the current retention period.
public IncreaseStreamRetentionPeriodRequest withRetentionPeriodHours(java.lang.Integer retentionPeriodHours)
The new retention period of the stream, in hours. Must be more than the current retention period.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 168
retentionPeriodHours
- The new retention period of the stream, in hours. Must be more than the current retention period.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.