public class DecreaseStreamRetentionPeriodRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents the input for DecreaseStreamRetentionPeriod.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
retentionPeriodHours
The new retention period of the stream, in hours.
|
private java.lang.String |
streamName
The name of the stream to modify.
|
NOOP
Constructor and Description |
---|
DecreaseStreamRetentionPeriodRequest() |
Modifier and Type | Method and Description |
---|---|
DecreaseStreamRetentionPeriodRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
DecreaseStreamRetentionPeriodRequest |
withRetentionPeriodHours(java.lang.Integer retentionPeriodHours)
The new retention period of the stream, in hours.
|
DecreaseStreamRetentionPeriodRequest |
withStreamName(java.lang.String streamName)
The name of the stream to modify.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String streamName
The name of the stream to modify.
private java.lang.Integer retentionPeriodHours
The new retention period of the stream, in hours. Must be less than the current retention period.
public DecreaseStreamRetentionPeriodRequest()
public void setStreamName(java.lang.String streamName)
The name of the stream to modify.
streamName
- The name of the stream to modify.public java.lang.String getStreamName()
The name of the stream to modify.
public DecreaseStreamRetentionPeriodRequest withStreamName(java.lang.String streamName)
The name of the stream to modify.
streamName
- The name of the stream to modify.public void setRetentionPeriodHours(java.lang.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 java.lang.Integer getRetentionPeriodHours()
The new retention period of the stream, in hours. Must be less than the current retention period.
public DecreaseStreamRetentionPeriodRequest withRetentionPeriodHours(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DecreaseStreamRetentionPeriodRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()