public class IncreaseStreamRetentionPeriodRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents the input for IncreaseStreamRetentionPeriod.
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 |
---|
IncreaseStreamRetentionPeriodRequest() |
Modifier and Type | Method and Description |
---|---|
IncreaseStreamRetentionPeriodRequest |
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.
|
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.
|
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 more than the current retention period.
public IncreaseStreamRetentionPeriodRequest()
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 IncreaseStreamRetentionPeriodRequest 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 more than the current retention period.
retentionPeriodHours
- The new retention period of the stream, in hours. Must be more
than the current retention period.public java.lang.Integer getRetentionPeriodHours()
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.
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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public IncreaseStreamRetentionPeriodRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()