@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateDataRetentionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
UpdateDataRetentionRequest() |
| Modifier and Type | Method and Description |
|---|---|
UpdateDataRetentionRequest |
clone() |
boolean |
equals(Object obj) |
String |
getCurrentVersion()
The version of the stream whose retention period you want to change.
|
Integer |
getDataRetentionChangeInHours()
The retention period, in hours.
|
String |
getOperation()
Indicates whether you want to increase or decrease the retention period.
|
String |
getStreamARN()
The Amazon Resource Name (ARN) of the stream whose retention period you want to change.
|
String |
getStreamName()
The name of the stream whose retention period you want to change.
|
int |
hashCode() |
void |
setCurrentVersion(String currentVersion)
The version of the stream whose retention period you want to change.
|
void |
setDataRetentionChangeInHours(Integer dataRetentionChangeInHours)
The retention period, in hours.
|
void |
setOperation(String operation)
Indicates whether you want to increase or decrease the retention period.
|
void |
setStreamARN(String streamARN)
The Amazon Resource Name (ARN) of the stream whose retention period you want to change.
|
void |
setStreamName(String streamName)
The name of the stream whose retention period you want to change.
|
String |
toString()
Returns a string representation of this object.
|
UpdateDataRetentionRequest |
withCurrentVersion(String currentVersion)
The version of the stream whose retention period you want to change.
|
UpdateDataRetentionRequest |
withDataRetentionChangeInHours(Integer dataRetentionChangeInHours)
The retention period, in hours.
|
UpdateDataRetentionRequest |
withOperation(String operation)
Indicates whether you want to increase or decrease the retention period.
|
UpdateDataRetentionRequest |
withOperation(UpdateDataRetentionOperation operation)
Indicates whether you want to increase or decrease the retention period.
|
UpdateDataRetentionRequest |
withStreamARN(String streamARN)
The Amazon Resource Name (ARN) of the stream whose retention period you want to change.
|
UpdateDataRetentionRequest |
withStreamName(String streamName)
The name of the stream whose retention period you want to change.
|
addHandlerContext, copyBaseTo, 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, withSdkRequestTimeoutpublic void setStreamName(String streamName)
The name of the stream whose retention period you want to change.
streamName - The name of the stream whose retention period you want to change.public String getStreamName()
The name of the stream whose retention period you want to change.
public UpdateDataRetentionRequest withStreamName(String streamName)
The name of the stream whose retention period you want to change.
streamName - The name of the stream whose retention period you want to change.public void setStreamARN(String streamARN)
The Amazon Resource Name (ARN) of the stream whose retention period you want to change.
streamARN - The Amazon Resource Name (ARN) of the stream whose retention period you want to change.public String getStreamARN()
The Amazon Resource Name (ARN) of the stream whose retention period you want to change.
public UpdateDataRetentionRequest withStreamARN(String streamARN)
The Amazon Resource Name (ARN) of the stream whose retention period you want to change.
streamARN - The Amazon Resource Name (ARN) of the stream whose retention period you want to change.public void setCurrentVersion(String currentVersion)
The version of the stream whose retention period you want to change. To get the version, call either the
DescribeStream or the ListStreams API.
currentVersion - The version of the stream whose retention period you want to change. To get the version, call either the
DescribeStream or the ListStreams API.public String getCurrentVersion()
The version of the stream whose retention period you want to change. To get the version, call either the
DescribeStream or the ListStreams API.
DescribeStream or the ListStreams API.public UpdateDataRetentionRequest withCurrentVersion(String currentVersion)
The version of the stream whose retention period you want to change. To get the version, call either the
DescribeStream or the ListStreams API.
currentVersion - The version of the stream whose retention period you want to change. To get the version, call either the
DescribeStream or the ListStreams API.public void setOperation(String operation)
Indicates whether you want to increase or decrease the retention period.
operation - Indicates whether you want to increase or decrease the retention period.UpdateDataRetentionOperationpublic String getOperation()
Indicates whether you want to increase or decrease the retention period.
UpdateDataRetentionOperationpublic UpdateDataRetentionRequest withOperation(String operation)
Indicates whether you want to increase or decrease the retention period.
operation - Indicates whether you want to increase or decrease the retention period.UpdateDataRetentionOperationpublic UpdateDataRetentionRequest withOperation(UpdateDataRetentionOperation operation)
Indicates whether you want to increase or decrease the retention period.
operation - Indicates whether you want to increase or decrease the retention period.UpdateDataRetentionOperationpublic void setDataRetentionChangeInHours(Integer dataRetentionChangeInHours)
The retention period, in hours. The value you specify replaces the current value. The maximum value for this parameter is 87600 (ten years).
dataRetentionChangeInHours - The retention period, in hours. The value you specify replaces the current value. The maximum value for
this parameter is 87600 (ten years).public Integer getDataRetentionChangeInHours()
The retention period, in hours. The value you specify replaces the current value. The maximum value for this parameter is 87600 (ten years).
public UpdateDataRetentionRequest withDataRetentionChangeInHours(Integer dataRetentionChangeInHours)
The retention period, in hours. The value you specify replaces the current value. The maximum value for this parameter is 87600 (ten years).
dataRetentionChangeInHours - The retention period, in hours. The value you specify replaces the current value. The maximum value for
this parameter is 87600 (ten years).public String toString()
toString in class ObjectObject.toString()public UpdateDataRetentionRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2023. All rights reserved.