@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context.
|
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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public 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 Object
Object.toString()
public DecreaseStreamRetentionPeriodRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.