public class DecreaseStreamRetentionPeriodRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input for DecreaseStreamRetentionPeriod.
NOOP| Constructor and Description |
|---|
DecreaseStreamRetentionPeriodRequest() |
| Modifier and Type | Method and Description |
|---|---|
DecreaseStreamRetentionPeriodRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Integer |
getRetentionPeriodHours()
The new retention period of the stream, in hours.
|
String |
getStreamName()
The name of the stream to modify.
|
int |
hashCode() |
void |
setRetentionPeriodHours(Integer retentionPeriodHours)
The new retention period of the stream, in hours.
|
void |
setStreamName(String streamName)
The name of the stream to modify.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DecreaseStreamRetentionPeriodRequest |
withRetentionPeriodHours(Integer retentionPeriodHours)
The new retention period of the stream, in hours.
|
DecreaseStreamRetentionPeriodRequest |
withStreamName(String streamName)
The name of the stream to modify.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic DecreaseStreamRetentionPeriodRequest()
public void setStreamName(String streamName)
The name of the stream to modify.
streamName - The name of the stream to modify.public String getStreamName()
The name of the stream to modify.
public DecreaseStreamRetentionPeriodRequest withStreamName(String streamName)
The name of the stream to modify.
streamName - The name of the stream to modify.public void setRetentionPeriodHours(Integer retentionPeriodHours)
The new retention period of the stream, in hours. Must be less than the current retention period.
retentionPeriodHours - The new retention period of the stream, in hours. Must be less
than the current retention period.public Integer getRetentionPeriodHours()
The new retention period of the stream, in hours. Must be less than the current retention period.
public DecreaseStreamRetentionPeriodRequest withRetentionPeriodHours(Integer retentionPeriodHours)
The new retention period of the stream, in hours. Must be less than the current retention period.
retentionPeriodHours - The new retention period of the stream, in hours. Must be less
than the current retention period.public String toString()
toString in class ObjectObject.toString()public DecreaseStreamRetentionPeriodRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.