@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()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCurrentVersion()
The version of the stream whose retention period you want to change.
|
Integer |
getDataRetentionChangeInHours()
The number of hours to adjust the current retention by.
|
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 number of hours to adjust the current retention by.
|
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 number of hours to adjust the current retention by.
|
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, 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 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.UpdateDataRetentionOperation
public String getOperation()
Indicates whether you want to increase or decrease the retention period.
UpdateDataRetentionOperation
public 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.UpdateDataRetentionOperation
public 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.UpdateDataRetentionOperation
public void setDataRetentionChangeInHours(Integer dataRetentionChangeInHours)
The number of hours to adjust the current retention by. The value you specify is added to or subtracted from the
current value, depending on the operation
.
The minimum value for data retention is 0 and the maximum value is 87600 (ten years).
dataRetentionChangeInHours
- The number of hours to adjust the current retention by. The value you specify is added to or subtracted
from the current value, depending on the operation
.
The minimum value for data retention is 0 and the maximum value is 87600 (ten years).
public Integer getDataRetentionChangeInHours()
The number of hours to adjust the current retention by. The value you specify is added to or subtracted from the
current value, depending on the operation
.
The minimum value for data retention is 0 and the maximum value is 87600 (ten years).
operation
.
The minimum value for data retention is 0 and the maximum value is 87600 (ten years).
public UpdateDataRetentionRequest withDataRetentionChangeInHours(Integer dataRetentionChangeInHours)
The number of hours to adjust the current retention by. The value you specify is added to or subtracted from the
current value, depending on the operation
.
The minimum value for data retention is 0 and the maximum value is 87600 (ten years).
dataRetentionChangeInHours
- The number of hours to adjust the current retention by. The value you specify is added to or subtracted
from the current value, depending on the operation
.
The minimum value for data retention is 0 and the maximum value is 87600 (ten years).
public String toString()
toString
in class Object
Object.toString()
public UpdateDataRetentionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()